jgsedi
February 19, 2015, 11:08am
1
Hello,
i upgraded my system from 12.3 to 13.1 shown in http://linux.t-tietz.de/OpenSUSE_Upgrade_12_3__13_1 - all works fine but at reboot no swap partition is mounted. The boot sequence shows a Failed for mounting the swap.
What to do?
thanks in advance
Miuku
February 19, 2015, 11:17am
2
What do;
cat /var/log/messages | grep -i swap
and
systemctl status swap.target
say?
Please put the output in CODE tags
Like this!
jgsedi
February 19, 2015, 11:53am
3
thanks @miuku
the outputs are
# cat /var/log/messages | grep -i swap
2015-02-17T19:46:08.897569+01:00 newlap systemd[1]: Deactivating swap /dev/sda2...
2015-02-17T19:46:08.929063+01:00 newlap systemd[1]: Deactivating swap /dev/sda2...
2015-02-17T23:04:32.521263+01:00 newlap kernel: 13.730753] Adding 2104316k swap on /dev/sda2. Priority:-1 extents:1 across:2104316k
2015-02-18T02:12:29.067797+01:00 newlap systemd[1]: Deactivating swap /dev/sda2...
2015-02-18T12:43:23.005121+01:00 newlap kernel: 12.587022] Adding 2104316k swap on /dev/sda2. Priority:-1 extents:1 across:2104316k
2015-02-18T17:06:02.849687+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:06:24.108978+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:06:57.132470+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:07:18.120554+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:07:48.462172+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:08:20.587471+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:08:51.916556+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:16:09.572401+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:20:56.856050+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:31:11.982075+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:31:41.313998+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:33:23.858697+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T17:33:29.020753+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T19:31:22.050496+01:00 newlap kernel: 19.954435] Adding 2104316k swap on /dev/sda2. Priority:-1 extents:1 across:2104316k FS
2015-02-18T19:37:15.235037+01:00 newlap os-prober: debug: /dev/sda2: is active swap
2015-02-18T19:39:20.529998+01:00 newlap systemd[1]: Deactivating swap /dev/sda2...
2015-02-18T19:39:20.533054+01:00 newlap systemd[1]: message repeated 6 times: Deactivating swap /dev/sda2...]
2015-02-19T10:28:09.003360+01:00 newlap kernel: 14.791096] Adding 2104316k swap on /dev/sda2. Priority:-1 extents:1 across:2104316k FS
and systemctl wrote on console
# systemctl status swap.target
swap.target - Swap
Loaded: loaded (/usr/lib/systemd/system/swap.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
Feb 19 10:28:03 newlap systemd[1]: Dependency failed for Swap.
Miuku
February 19, 2015, 12:01pm
4
Please copy paste the output of: free
If you have “swap” showing active in free on the last line, please check /etc/fstab for a device with the line swap in it and remove that line as this is no longer required, swap gets probed by systemd. Make a backup of the fstab file first.
Then on the next boot, check if the issue persists.
jgsedi
February 19, 2015, 12:26pm
5
the output of free:
free
total used free shared buffers cached
Mem: 3934788 3481648 453140 91028 87120 2004924
-/+ buffers/cache: 1389604 2545184
Swap: 2104316 41712 2062604
seems the swap is in use or?
Miuku
February 19, 2015, 12:29pm
6
Yes, you should remove the swap from fstab and see the next time you reboot if the systemd still reports swap target as a failure.
It shouldn’t.
jgsedi
February 19, 2015, 12:58pm
7
many thanks @miuku no failure reported on system boot