Bug#788303: systemd hangs on shutdown, swap related

Greg Wooledge wooledg at eeg.ccf.org
Tue Aug 11 17:51:05 BST 2015


I am having what appears to be the same problem.  One of my i386
systems (a very old one) was upgraded to jessie, and whenever I do
a "shutdown -r now" or press Ctrl-Alt-Del on the console, it hangs
at "Reached target Shutdown".

I enabled the systemd debug shell, and systemctl list-jobs during the
hang gives this:

JOB UNIT                                                           TYPE  STATE  
525 reboot.target                                                  start waiting
526 systemd-reboot.service                                         start waiting
622 umount.target                                                  start waiting
624 dev-disk-by\x2did-wwn\x2d0x5000cca325f1d454\x2dpart2.swap      stop  running
625 dev-disk-by\x2did-at...1616PLAT80_PV6904Z23JM4LN\x2dpart2.swap stop  running
626 dev-sda2.swap                                                  stop  running
632 final.target                                                   start waiting

If I type "swapoff /dev/sda2" in the debug shell, the reboot continues
to completion, so the swap partition is definitely where it's getting
stuck.

There's nothing special about this computer, as far as I know.
No encrypted file systems, no LVM.  It has very limited RAM (64 MB),
so the swap is really used.  The disk is IDE, not SATA, because the
machine is just that old.

Here is the disk (there is only one):

# fdisk -l

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000849bc

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sda1             63  19535039  19534977   9.3G 83 Linux
/dev/sda2       19535040  21494969   1959930   957M 82 Linux swap / Solaris
/dev/sda3       21494970  60565049  39070080  18.6G 83 Linux
/dev/sda4       60565050 312576704 252011655 120.2G 83 Linux

Here's /etc/fstab:

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
UUID=a748f137-7898-4238-a1aa-7615d3c93932       /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda3       /var/qmail/queue  ext2        sync,noatime    0       2
UUID=33359184-c7f0-4986-919a-2bd976fd9d20       /var/qmail/queue  ext2  sync,noatime    0       2
# /dev/hda4       /home           ext3    defaults        0       2
UUID=f9c2e8fa-7e5a-4cbe-bc29-63813bfdaf67       /home           ext3    defaults        0       2
# /dev/hda2       none            swap    sw              0       0
UUID=29061e22-60fa-449a-a1c6-41e352b4f3d8       none            swap    sw              0       0
# /dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/cdrom        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0



More information about the Pkg-systemd-maintainers mailing list