You are not logged in.

#1 2013-12-30 15:48:09

Rexilion
Member
Registered: 2013-12-23
Posts: 784

SystemD hangs on shutdown at least 1 of /etc /var /tmp fails to umount

SystemD is nice, it just most of the time fails to do a clean shutdown. Causing really long hangs.

http://pastebin.com/raw.php?i=eqRRixQm

Scroll down to the end to see what is hapenning.

dec 30 15:23:28 Alpha umount[1522]: umount: /var: target is busy
dec 30 15:23:28 Alpha umount[1522]: (In some cases useful info about processes that
dec 30 15:23:28 Alpha umount[1522]: use the device is found by lsof(8) or fuser(1).)
dec 30 15:23:28 Alpha systemd[1]: Deactivated swap /dev/dm-10.
dec 30 15:23:28 Alpha systemd[1]: var.mount mount process exited, code=exited status=32
dec 30 15:23:28 Alpha systemd[1]: Failed unmounting /var.
dec 30 15:23:28 Alpha systemd[1]: Deactivated swap /dev/mapper/cryptswap.
dec 30 15:23:28 Alpha systemd[1]: Deactivated swap /dev/disk/by-uuid/17531b80-cb38-4620-97c7-a4a5b47444d7.
dec 30 15:23:28 Alpha systemd[1]: Deactivated swap /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-953ab4bfed8f41b8bb75643ced1642ca-cryptswap.
dec 30 15:23:28 Alpha systemd[1]: Deactivated swap /dev/disk/by-id/dm-name-cryptswap.
dec 30 15:23:28 Alpha systemd[1]: Unmounted /opt.
dec 30 15:23:28 Alpha systemd[1]: etc.mount mount process exited, code=exited status=32
dec 30 15:23:28 Alpha systemd[1]: Failed unmounting /etc.
dec 30 15:23:28 Alpha systemd[1]: Unmounted /tmp.
dec 30 15:23:28 Alpha umount[1528]: umount: /etc: target is busy
dec 30 15:23:28 Alpha umount[1528]: (In some cases useful info about processes that
dec 30 15:23:28 Alpha umount[1528]: use the device is found by lsof(8) or fuser(1).)

One cause seems to be the readahead?

dec 30 15:23:29 Alpha systemd[1]: Unit systemd-readahead-collect.service entered failed state.

Another suspect for /etc is systemd-udevd itself:

[root@Alpha ronald]# lsof /etc
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND   PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd-u 379    root   11r   REG   0,16  5866515  400 /etc/udev/hwdb.bin

I'm running a custom kernel, initrd and fstab. I hope this does not break warranty...


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#2 2013-12-31 12:11:39

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: SystemD hangs on shutdown at least 1 of /etc /var /tmp fails to umount

If I remove the quiet from cmdline, the following is observed:

- SystemD hangs on a stop job for User Manager <uid> with <uid> containing the userid of the logged in user. I have a simple guest user and another user for me which mounts a luks disk. Both exhibit this behaviour.
- If I logout to LightDM and then shutdown it hangs on a process with uid 620 (lightdm) and 0 (root).

Anyone?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-01-01 12:03:41

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: SystemD hangs on shutdown at least 1 of /etc /var /tmp fails to umount

I found a bug that mentions the same symptoms here. It should be fixed in 208-1, but apparently this is another issue since this box is currently running 208-3. ???


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

Board footer

Powered by FluxBB