[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 <antoine.mechelynck@belgacom.net> 2011-11-20 19:18:18 CET --- "swapon -av" displays the following: swapon on /swapfile swapon: /swapfile: insecure permissions 0644, 0600 suggested. swapon: /swapfile: found swap signature: version 1, page-size 4, same byte order swapon: /swapfile: pagesize=4096, swapsize=2147483648, devsize=2147483648 after which "swapon -s" shows not only /dev/sda2 (priority 0) but also /swapfile (priority -1). -- 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#c2 kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |kkzhang@novell.com Resolution| |NORESPONSE --- Comment #2 from kk zhang <kkzhang@novell.com> 2012-03-08 14:02:35 UTC --- Long time no response.So closed.Feel free to reopen it.Thanks. -- 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#c3 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED CC| |suse-beta@cboltz.de Resolution|NORESPONSE | AssignedTo|bnc-team-screening@forge.pr |suse-beta@cboltz.de |ovo.novell.com | --- Comment #3 from Christian Boltz <suse-beta@cboltz.de> 2012-03-14 00:27:16 CET --- Nobody reassigning the bug to the package maintainer is no reason to close a bug as "noresponse". Reopening (and temporarily assigning to me). -- 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#c4 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |antoine.mechelynck@belgacom | |.net --- Comment #4 from Christian Boltz <suse-beta@cboltz.de> 2012-03-14 00:29:46 CET --- Tony, do you boot with systemd or sysvinit? Do you see this bug when booting with the other init system? -- 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#c5 Tony Mechelynck <antoine.mechelynck@belgacom.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|antoine.mechelynck@belgacom | |.net | --- Comment #5 from Tony Mechelynck <antoine.mechelynck@belgacom.net> 2012-03-20 17:26:31 CET --- (In reply to comment #4)
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 <antoine.mechelynck@belgacom.net> 2012-03-20 17:28:45 CET --- P.S. Until openSUSE 11.4 (with init) I did not see this problem. -- 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#c7 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |antoine.mechelynck@belgacom | |.net --- Comment #7 from Christian Boltz <suse-beta@cboltz.de> 2012-03-20 21:42:43 CET --- (In reply to comment #5)
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 <antoine.mechelynck@belgacom.net> 2012-03-21 17:52:52 CET --- (In reply to comment #7) [...]
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 <antoine.mechelynck@belgacom.net> 2012-03-22 08:10:33 CET --- After selecting "System V" boot (F5 rolldown in the grub menu), both /dev/sda2 and /swapfile are listed by swapon -s (with priority -1 and -2 respectively). Now let's reboot with systemd (default)… -- 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#c10 Tony Mechelynck <antoine.mechelynck@belgacom.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|antoine.mechelynck@belgacom | |.net | --- Comment #10 from Tony Mechelynck <antoine.mechelynck@belgacom.net> 2012-03-22 08:31:12 CET --- …and swapon -s lists only /dev/sda2 (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#c11 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|suse-beta@cboltz.de |fcrozat@suse.com Severity|Major |Critical --- Comment #11 from Christian Boltz <suse-beta@cboltz.de> 2012-03-22 13:18:13 CET --- OK, then this is clearly a systemd issue. -- 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#c12 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |antoine.mechelynck@belgacom | |.net --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2012-03-22 12:37:05 UTC --- 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. -- 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#c13 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Critical |Major --- Comment #13 from Christian Boltz <suse-beta@cboltz.de> 2012-03-22 19:10:06 CET --- (reverting the severity to major - seems I accidently changed it with my last comment) -- 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#c14 --- Comment #14 from Tony Mechelynck <antoine.mechelynck@belgacom.net> 2012-03-23 02:13:25 CET --- (In reply to comment #12)
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 <fcrozat@suse.com> 2012-03-23 08:28:20 UTC --- yes, sorry, I forgot to tell you those are kernel commandline parameters. -- 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#c16 Tony Mechelynck <antoine.mechelynck@belgacom.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|antoine.mechelynck@belgacom | |.net | --- Comment #16 from Tony Mechelynck <antoine.mechelynck@belgacom.net> 2012-03-23 13:22:22 CET --- Created an attachment (id=482935) --> (http://bugzilla.novell.com/attachment.cgi?id=482935) dmesg output after booting with systemd.log_level=debug systemd.log_target=kmsg -- 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#c17 --- Comment #17 from Frederic Crozat <fcrozat@suse.com> 2012-03-23 12:51:26 UTC --- try replacing "nofail" with "defaults" in /etc/fstab. It should fix your issue. -- 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#c18 --- Comment #18 from Tony Mechelynck <antoine.mechelynck@belgacom.net> 2012-03-27 14:52:03 CEST --- (In reply to comment #17)
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 <antoine.mechelynck@belgacom.net> 2012-03-27 18:38:00 CEST --- With "defaults" instead of "nofail" /dev/sda2 and /swapfile appear both in the output of "swapon -s" but there is still a difference with what happens in sysvinit boot: - With sysvinit, /dev/sda2 has priority -1, /swapfile has -2 - With systemd, they both have priority 0 Does this mean that sysvinit will use sda2 in preference to swapfile and that sysvinit will use them both about equally? Here is the output of "swapon -s" soon after booting with systemd: Filename Type Size Used Priority /dev/sda2 partition 3148736 0 0 /swapfile file 3145724 0 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#c20 --- Comment #20 from Frederic Crozat <fcrozat@suse.com> 2012-03-27 16:49:58 UTC --- sysvinit just calls swapon -a, so it is possible the logic in swapon -a is different than the "simple" swapon /dev/sda2 | swapon /swapfile calls done by systemd -- 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#c21 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #21 from Frederic Crozat <fcrozat@suse.com> 2012-06-07 13:29:49 UTC --- fixed in systemd >= 37-3.165.1 package in home:fcrozat:systemd ( http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_12... ) for 12.1 and also in Factory. It will be part of next 12.1 maintenance update for systemd (although none is scheduled yet). Closing as fixed -- 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#c22 --- Comment #22 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-06-08 17:00:10 CEST --- This is an autogenerated message for OBS integration: This bug (731601) was mentioned in https://build.opensuse.org/request/show/124228 Factory / systemd -- 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#c23 --- Comment #23 from Frederic Crozat <fcrozat@suse.com> 2013-03-07 13:12:12 UTC --- mr #157832 for openSUSE 12.1 -- 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#c24 --- Comment #24 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-03-07 15:00:12 CET --- This is an autogenerated message for OBS integration: This bug (731601) was mentioned in https://build.opensuse.org/request/show/157832 Maintenance / -- 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#c25 --- Comment #25 from Swamp Workflow Management <swamp@suse.de> 2013-03-13 12:04:32 UTC --- openSUSE-RU-2013:0443-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 731601,751253,770182,801423 CVE References: Sources used: openSUSE 12.1 (src): systemd-37-3.17.1, systemd-gtk-37-3.17.1 -- 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.
participants (1)
-
bugzilla_noreply@novell.com