[Bug 731601] New: Swap files which are not full partitions are not mounted at boot time
https://bugzilla.novell.com/show_bug.cgi?id=731601 https://bugzilla.novell.com/show_bug.cgi?id=731601#c0 Summary: Swap files which are not full partitions are not mounted at boot time Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: antoine.mechelynck@belgacom.net QAContact: qa@suse.de Found By: Community User Blocker: --- My /etc/fstab includes the following two lines: /dev/disk/by-id/ata-WDC_WD800JD-60LSA0_WD-WMAM9E273734-part2 swap swap defaults 0 0 /swapfile swap swap nofail 0 0 Under openSUSE 11.4, "swapon -s" showed that (with no explicit action by me) both were in use, with priorities -1 and -2 respectively. Under openSUSE 12.1, only /dev/sda2 is mentioned, and with priority 0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c1
--- Comment #1 from Tony Mechelynck
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c2
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c3
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c4
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c5
Tony Mechelynck
Tony, do you boot with systemd or sysvinit? Do you see this bug when booting with the other init system?
I used to boot with init until the update to openSUSE 12.1 changed it to systemd without asking me. Since then I've had many problems of all kinds with the new boot procedure and my take about it is: it weren't broke, so why the hell did they gone fixt it? I don't know how to go back to booting with init, inittab, etc., and if I did, I would. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c6
--- Comment #6 from Tony Mechelynck
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c7
Christian Boltz
I used to boot with init until the update to openSUSE 12.1 changed it to systemd without asking me. Since then I've had many problems of all kinds with the new boot procedure and my take about it is: it weren't broke, so why the hell did they gone fixt it?
It looks like the "old" sysvinit won't be maintained in the future. Nevertheless many people agree with you - the switch was too early. I also had some "fun" with systemd in the beta phase. OTOH, I'm using systemd (from the 12.1 update repo) without problems on some servers and my laptop, so it is definitely getting better.
I don't know how to go back to booting with init, inittab, etc., and if I did, I would.
For a temporary test, you can select sysvinit as init system in grub or use the additional boot parameter init=/sbin/sysvinit If you want to switch back to sysvinit permanently, run zypper in sysvinit-init It will suggest the removal of systemd-sysvinit. Does booting with sysvinit mount your swap files? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c8
--- Comment #8 from Tony Mechelynck
For a temporary test, you can select sysvinit as init system in grub or use the additional boot parameter init=/sbin/sysvinit
If you want to switch back to sysvinit permanently, run zypper in sysvinit-init It will suggest the removal of systemd-sysvinit.
Ah, thanks for the info.
Does booting with sysvinit mount your swap files?
I'll try at next boot (after making sure that I still have a swap file -- I cleared it away a few weeks ago to make room on the disk). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c9
--- Comment #9 from Tony Mechelynck
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c10
Tony Mechelynck
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c11
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c12
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c13
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c14
--- Comment #14 from Tony Mechelynck
please boot with under systemd with the following parameters systemd.log_level=debug systemd.log_target=kmsg
and attach dmesg output to this bug report.
Thanks.
Where do I specify those parameters? At the end of the kernel command-line in the grub menu (the same place as a nondefault runlevel)? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c15
--- Comment #15 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c16
Tony Mechelynck
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c17
--- Comment #17 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c18
--- Comment #18 from Tony Mechelynck
try replacing "nofail" with "defaults" in /etc/fstab. It should fix your issue.
Hm, I'll try; but the idea was to make the file "optional" without the need to edit the fstab every time I create or remove the file (which I don't really need except when running some extremely memory-expensive job such as compiling and _linking_ the latest SeaMonkey changeset). If systemd tries to enable the swap (with "defaults" rather than "nofail") before remounting the / filesystem read-write, won't I get a fatal message from swapon when trying to enable /swapfile as a mandatory swap device? We'll see: if it doesn't work I now know how to reboot /sbin/sysvinit or even /bin/bash to undo the change in "emergency repairs" mode. (IIUC under sysvinit swapon is run twice: once very early to enable swap "partitions" as soon as possible, and a second time after fstab devices are mounted to enable swap "files" once they can be reached. Note also that unlike systemd, sysvinit mounts swap with negative priorities.) Well, stay tuned for further flash news on this channel ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c19
--- Comment #19 from Tony Mechelynck
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c20
--- Comment #20 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c21
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c22
--- Comment #22 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c23
--- Comment #23 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c24
--- Comment #24 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=731601
https://bugzilla.novell.com/show_bug.cgi?id=731601#c25
--- Comment #25 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com