You are not logged in.

#1 2014-02-26 17:07:20

skwee
Member
Registered: 2013-08-15
Posts: 41

Failed to unmount /var and /home when shutting down

Hi there!

In the past days I started to notice shutdown errors. Here is the relevant journalctl from yesterday

Feb 25 22:30:08 fractal systemd[1]: Unmounting /home/skwee/.cache...
Feb 25 22:30:08 fractal systemd[1]: Unmounting /boot...
Feb 25 22:30:08 fractal systemd[1]: Unmounting /var...
Feb 25 22:30:08 fractal systemd[1]: Unmounting Temporary Directory...

Feb 25 22:30:08 fractal umount[15986]: umount: /var: target is busy
Feb 25 22:30:08 fractal umount[15986]: (In some cases useful info about processes that
Feb 25 22:30:08 fractal umount[15986]: use the device is found by lsof(8) or fuser(1).)
Feb 25 22:30:08 fractal systemd[1]: var.mount mount process exited, code=exited status=32
Feb 25 22:30:08 fractal systemd[1]: Failed unmounting /var.

Feb 25 22:30:08 fractal systemd[1]: Unmounted /home/skwee/.cache.
Feb 25 22:30:08 fractal systemd[1]: Unmounted /boot.
Feb 25 22:30:08 fractal systemd[1]: Unmounted Temporary Directory.
Feb 25 22:30:08 fractal systemd[1]: Unmounting /home...

Feb 25 22:30:08 fractal umount[15992]: umount: /home: target is busy
Feb 25 22:30:08 fractal umount[15992]: (In some cases useful info about processes that
Feb 25 22:30:08 fractal umount[15992]: use the device is found by lsof(8) or fuser(1).)
Feb 25 22:30:08 fractal systemd[1]: home.mount mount process exited, code=exited status=32
Feb 25 22:30:08 fractal systemd[1]: Failed unmounting /home.

Feb 25 22:30:08 fractal systemd[1]: Starting Unmount All Filesystems.
Feb 25 22:30:08 fractal systemd[1]: Reached target Unmount All Filesystems.
Feb 25 22:30:08 fractal systemd[1]: Stopping Local File Systems (Pre).
Feb 25 22:30:08 fractal systemd[1]: Stopped target Local File Systems (Pre).
Feb 25 22:30:08 fractal systemd[1]: Stopping Remount Root and Kernel File Systems...
Feb 25 22:30:08 fractal systemd[1]: Stopped Remount Root and Kernel File Systems.
Feb 25 22:30:08 fractal systemd[1]: Starting Shutdown.
Feb 25 22:30:08 fractal systemd[1]: Reached target Shutdown.
Feb 25 22:30:08 fractal systemd[1]: Starting Final Step.
Feb 25 22:30:08 fractal systemd[1]: Reached target Final Step.
Feb 25 22:30:08 fractal systemd[1]: Starting Power-Off...
Feb 25 22:30:08 fractal systemd[1]: Shutting down.

Here is my fstab:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda2
UUID=9314f149-91d9-46d6-b85c-77e5828ba7a3	/         	ext4      	defaults,noatime,discard	0 1

# /dev/sda3
UUID=d049f1a1-3d8d-48d5-8fbb-5a3c2ba54b5c	/home     	ext4      	defaults,noatime,discard	0 2

# /dev/sda4
UUID=fbffdb06-eab4-4e02-96cb-dd7fe4768c0d	/var      	ext4      	defaults,noatime,discard	0 2

# /dev/sda1
UUID=A6D4-39C7      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

tmpfs	/home/skwee/.cache	tmpfs	noatime,nodev,nosuid,size=500M	0	0

I have Samsung SSD 840 drive.

Thanks for the help in advance! smile


dotfiles
git pull strings master-of-puppets

Offline

#2 2014-02-26 18:34:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Failed to unmount /var and /home when shutting down

I have no idea why /home does this, but I have seen it too.  /var is where the journal writes to though, so if you have /var on a separate partition, it can't very well unmount it while it is still writing out logs.  If you use either the shutdown hook in mkiniptcio.conf or allow mkinitpcio to generate a shutdown initramfs on the fly (which is the default), then it will switch back to the initramfs and then proceed to unmount the last bits safely anyway.


Edit: BTW, I use [testing] and systemd 210 seems to have fixed my /home woes.

Last edited by WonderWoofy (2014-02-26 18:35:35)

Offline

#3 2014-02-26 18:53:53

skwee
Member
Registered: 2013-08-15
Posts: 41

Re: Failed to unmount /var and /home when shutting down

About /var - makes sense.
About /home - ok Ill wait for the new systemd then.

Thanks!


dotfiles
git pull strings master-of-puppets

Offline

#4 2014-02-27 09:53:54

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Failed to unmount /var and /home when shutting down

Despite the messages, the partitions actually get unmounted. After systemd killed all processes, it replaces itself with a shutdown tool that tries hard to unmount everything and (at least in my case) eventually succeeds (it's that thing that spams your console with many messages before shutting off - use 'halt' instead of 'shutdown' to see the messages).

Offline

#5 2014-02-27 15:54:58

skwee
Member
Registered: 2013-08-15
Posts: 41

Re: Failed to unmount /var and /home when shutting down

brain0, Thanks a lot for the explanation!


dotfiles
git pull strings master-of-puppets

Offline

Board footer

Powered by FluxBB