[systemd-devel] Problems with SWAP in 204

Henrik /KaarPoSoft henrik at kaarposoft.dk
Tue Jun 18 15:16:50 PDT 2013


Dear all,

I am experiencing a strange problem with swap using systemd 204.
Any help in diagnosing this would be most appreciated.

I have 64 GB of physical memory,
and two 64 GB swap partitions.

My fstab is attached.

When booting, I get a few errors related to swap; in particular:
Failed to reread /proc/swaps: File exists
swapon: /dev/sda3: swapon failed: Device or resource busy

A full
journalctl -b | grep -i swap
is atached as swap1.txt

However, swapon seems to be happy:

swapon -s
Filename   Type        Size    Used    Priority
/dev/sda4  partition    67108860    0    1
/dev/sda3  partition    67108860    0    1

Every now and again, I get journal messages about swap; see
journalctl -b | grep -i swap
attached as swap2.txt

When executing
systemctl poweroff
most of the time the machine just powers off as expeced.

However, sometimes the poweroff gets stuck (hanging for at least 15 
minutes).
This happens very late in the poweroff, so there is nothing in the logs.
However, a screenshot is attached: swap.png

Your insights into what I might be doing wrong would be most appreciated

/Henrik

-------------- next part --------------
# file system  mount-point  type   options         dump  fsck
#                                                        order
UUID=879cc816-572e-48f3-a36e-7d8f59e2dac3  /            ext4  defaults        1     1
UUID=066af73a-d8fd-49b7-b806-05f625681d4d     swap         swap   pri=1           0     0
UUID=e84600d2-060e-4758-a0aa-e31a069f3ac8     swap         swap   pri=1           0     0
UUID=3237-3F65          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
UUID=05d6aee6-b258-4463-8db7-861fd9534bfc /big1                   ext4    defaults        1 3
UUID=d3cfeff4-3ae4-42db-b05e-69e0d5f58e35 /big2                   ext4    defaults        1 3
-------------- next part --------------
Jun 18 21:59:51 komplett-20 kernel: ALSA sound/pci/hda/patch_realtek.c:402 SKU: swap=0x0
Jun 18 21:59:52 komplett-20 systemd[1]: Activating swap /dev/disk/by-uuid/e84600d2-060e-4758-a0aa-e31a069f3ac8...
Jun 18 21:59:52 komplett-20 kernel: Adding 67108860k swap on /dev/sda4.  Priority:1 extents:1 across:67108860k 
Jun 18 21:59:52 komplett-20 systemd[1]: Activated swap /dev/disk/by-uuid/e84600d2-060e-4758-a0aa-e31a069f3ac8.
Jun 18 21:59:52 komplett-20 systemd[1]: Activating swap /dev/disk/by-uuid/066af73a-d8fd-49b7-b806-05f625681d4d...
Jun 18 21:59:52 komplett-20 kernel: Adding 67108860k swap on /dev/sda3.  Priority:1 extents:1 across:67108860k 
Jun 18 21:59:52 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 21:59:52 komplett-20 systemd[1]: Activated swap /dev/disk/by-uuid/066af73a-d8fd-49b7-b806-05f625681d4d.
Jun 18 21:59:52 komplett-20 systemd[1]: Starting Swap.
Jun 18 21:59:52 komplett-20 systemd[1]: Reached target Swap.
Jun 18 21:59:52 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 21:59:52 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:52 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:52 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:52 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:52 komplett-20 swapon[2598]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 21:59:52 komplett-20 swapon[2614]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 21:59:52 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 21:59:52 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 21:59:52 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 21:59:52 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 21:59:52 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 21:59:52 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 21:59:53 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:53 komplett-20 swapon[2691]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 21:59:53 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 21:59:53 komplett-20 systemd[1]: Failed to activate swap /dev/sda3.
Jun 18 21:59:53 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 21:59:53 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 21:59:53 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:53 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 21:59:53 komplett-20 systemd[1]: Failed to activate swap /dev/sda3.
Jun 18 21:59:53 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 21:59:53 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 21:59:53 komplett-20 swapon[2700]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 21:59:53 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 21:59:53 komplett-20 swapon[2715]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 21:59:53 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 21:59:53 komplett-20 systemd[1]: Failed to activate swap /dev/sda3.
Jun 18 21:59:53 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 21:59:53 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
-------------- next part --------------
Jun 18 22:04:35 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 22:04:35 komplett-20 swapon[2847]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 22:04:35 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 22:04:35 komplett-20 systemd[1]: Failed to activate swap /dev/sda3.
Jun 18 22:04:35 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 22:04:35 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 22:08:16 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 22:08:16 komplett-20 swapon[3166]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 22:08:16 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 22:08:16 komplett-20 systemd[1]: Failed to activate swap /dev/sda3.
Jun 18 22:08:16 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 22:08:16 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
Jun 18 22:54:28 komplett-20 systemd[1]: Activating swap /dev/sda3...
Jun 18 22:54:28 komplett-20 swapon[4612]: swapon: /dev/sda3: swapon failed: Device or resource busy
Jun 18 22:54:28 komplett-20 systemd[1]: dev-sda3.swap swap process exited, code=exited status=255
Jun 18 22:54:28 komplett-20 systemd[1]: Failed to activate swap /dev/sda3.
Jun 18 22:54:28 komplett-20 systemd[1]: Unit dev-sda3.swap entered failed state.
Jun 18 22:54:28 komplett-20 systemd[1]: Failed to reread /proc/swaps: File exists
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swap.png
Type: image/png
Size: 272558 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130619/65259c1d/attachment-0001.png>


More information about the systemd-devel mailing list