Fwd: [opensuse-factory] failed to unmount /home, /var/tmp, /tmp at shutdown
Hi Ian
here the log:
journalctl --since=13:40:49
Oct 17 13:40:49 linux-q5nf systemd[1]: Stopped target Local File Systems.
Oct 17 13:40:49 linux-q5nf systemd[1]: Unmounting /tmp...
Oct 17 13:40:49 linux-q5nf systemd[1]: Unmounting /sda2...
Oct 17 13:40:49 linux-q5nf systemd[1]: Unmounting /home...
Oct 17 13:40:49 linux-q5nf systemd[1]: Unmounting /var/tmp...
Oct 17 13:40:49 linux-q5nf systemd[1]: tmp.mount: Mount process
exited, code=exited status=32
Oct 17 13:40:49 linux-q5nf systemd[1]: Failed unmounting /tmp.
Oct 17 13:40:49 linux-q5nf systemd[1]: sda2.mount: Mount process
exited, code=exited status=32
Oct 17 13:40:49 linux-q5nf systemd[1]: Failed unmounting /sda2.
Oct 17 13:40:49 linux-q5nf systemd[1]: Stopped File System Check on
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part1.
Oct 17 13:40:49 linux-q5nf systemd[1]: home.mount: Mount process
exited, code=exited status=32
Oct 17 13:40:49 linux-q5nf systemd[1]: Failed unmounting /home.
Oct 17 13:40:49 linux-q5nf systemd[1]: Stopped File System Check on
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part2.
Oct 17 13:40:49 linux-q5nf systemd[1]: Removed slice
system-systemd\x2dfsck.slice.
Oct 17 13:40:49 linux-q5nf systemd[1]: Unmounted /var/tmp.
Oct 17 13:40:49 linux-q5nf systemd[1]: Reached target Unmount All Filesystems.
----------------------------------
Here my etc/fstab:
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part3 swap
swap defaults 0 0
/dev/disk/by-id/ata-SanDisk_SDSSDRC032G_123360400662-part1 /
ext4 acl,user_xattr,noatime,async,commit=100 1 1
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part2 /home
ext4 acl,user_xattr,noatime,async,commit=100 1 2
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part1 /sda2
ext4 acl,user_xattr,noatime,async,commit=100 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
tmpfs /tmp tmpfs
nodev,nosuid,noexec,mode=1777 0 0
tmpfs /var/tmp tmpfs
nodev,nosuid,noexec,mode=1777 0 0
----------------------------------
kernel is:
Linux linux-q5nf 4.13.5-1-default #1 SMP PREEMPT Thu Oct 5 18:28:26
UTC 2017 (3fd9659) x86_64 x86_64 x86_64 GNU/Linux
----------------------------------
cat /proc/cmdline:
BOOT_IMAGE=/boot/vmlinuz-4.13.5-1-default
root=UUID=df066082-7a21-466d-bd6a-8a5c94fd5750
resume=/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part3
plymouth.enable=0 i915.semaphores=1 splash=0 showopts
scsi_mod.use_blk_mq=1 elevator=bfq
----------------------------------
the first disk is a SDD 32GB samsung where I have put /
the second is a SATA 500GB where are /home /sda2 and swap space
----------------------------------
fdisk /dev/sdb (32 GB SSD):
Welcome to fdisk (util-linux 2.30.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 29.8 GiB, 32017047552 bytes, 62533296 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: 0x00087009
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 62533295 62531248 29.8G 83 Linux
Command (m for help): q
----------------------------------
fdisk /dev/sda (500 GB):
Welcome to fdisk (util-linux 2.30.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xbbd05cf6
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41945087 41943040 20G 83 Linux
/dev/sda2 41945088 964691967 922746880 440G 83 Linux
/dev/sda3 964691968 976773167 12081200 5.8G 82 Linux swap / Solaris
----------------------------------
/opt
/usr/src
/var/log
/var/spool
are links (ln -s)
to:
ilinty@linux-q5nf:/sda2> ll /opt
lrwxrwxrwx 1 root root 9 11 ago 14.37 /opt -> /sda2/opt
ilinty@linux-q5nf:/sda2> ll /usr/src
lrwxrwxrwx 1 root root 10 16 ott 11.00 /usr/src -> /sda2/src/
ilinty@linux-q5nf:/sda2> ll /var/log
lrwxrwxrwx 1 root root 14 16 ott 10.56 /var/log -> /sda2/var/log/
ilinty@linux-q5nf:/sda2> ll /var/spool
lrwxrwxrwx 1 root root 16 16 ott 10.56 /var/spool -> /sda2/var/spool/
to save space and writes on the SDD disk ...
2017-10-17 10:48 GMT+02:00 ianseeks
On Tuesday, 17 October 2017 08:08:28 BST Ivan Linty wrote:
Hello
Someone can help me ? After the latest updates, I have noticed the following errors at shutdown:
failed to unmount /home failed to unmount /var/tmp failed to unmount /tmp
etc... that change randomly...
(my system is opensuse tumbleweed 20171010)
Kind Regards
It might help if you can post more information about the errors i.e. Cut and paste the lines from the journal where you are getting this information from so it includes any error codes etc.
-- opensuse:tumbleweed:20171010 Qt: 5.9.1 KDE Frameworks: 5.38.0 KDE Plasma: 5.11.0 kwin 5.11.0 kmail2 5.6.1 akonadiserver 5.6.1 Kernel: 4.13.5-1-default Nouveau: 1.0.15_1.2
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2017-10-17 15:30, Ivan Linty wrote:
Here my etc/fstab:
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part3 swap swap defaults 0 0 /dev/disk/by-id/ata-SanDisk_SDSSDRC032G_123360400662-part1 / ext4 acl,user_xattr,noatime,async,commit=100 1 1 /dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part2 /home ext4 acl,user_xattr,noatime,async,commit=100 1 2 /dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part1 /sda2 ext4 acl,user_xattr,noatime,async,commit=100 1 2
proc /proc proc defaults 0 0
You don't need this one.
sysfs /sys sysfs noauto 0 0
Neither this.
debugfs /sys/kernel/debug debugfs noauto 0 0
Nor this.
usbfs /proc/bus/usb usbfs noauto 0 0
Nor this.
devpts /dev/pts devpts mode=0620,gid=5 0 0
Nor this.
tmpfs /tmp tmpfs nodev,nosuid,noexec,mode=1777 0 0 tmpfs /var/tmp tmpfs nodev,nosuid,noexec,mode=1777 0 0
/opt /usr/src /var/log /var/spool
are links (ln -s)
to:
ilinty@linux-q5nf:/sda2> ll /opt lrwxrwxrwx 1 root root 9 11 ago 14.37 /opt -> /sda2/opt
sda2 is precisely the partition that fails to umount, it is in use. Try use bind-mounts instead of symlinks, so that fstab list them. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
About, my problem of unmount errors at shutdown I have investigated
and I have found:
1) /var/log has to bee a directory because journald has to write in
the volume! So I have fixed this problem. You can also disable to
write to disk logs... in /etc/systemd/journald.conf with Storage=none
2) the errors are still presents but only if I do shutdown from KDE
environment!!! If I do a reboot or power off from command line--> no
errors!!
after some more investigations, I found that:
/sbin/reboot
/sbin/halt
/sbin/poweroff
are symlink to /usr/sbin/systemctl
KDE for some BUG launch systemctl n.2 times! :
/usr/bin/systemctl reboot
/usr/bin/systemctl --user set-environment
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
the first invocation is correct. The second cause the errors at
shutdown. So it's finally a KDE problem!
2017-10-18 14:10 GMT+02:00 Carlos E. R.
On 2017-10-17 15:30, Ivan Linty wrote:
Here my etc/fstab:
/dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part3 swap swap defaults 0 0 /dev/disk/by-id/ata-SanDisk_SDSSDRC032G_123360400662-part1 / ext4 acl,user_xattr,noatime,async,commit=100 1 1 /dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part2 /home ext4 acl,user_xattr,noatime,async,commit=100 1 2 /dev/disk/by-id/ata-ST500DM002-1SB10A_ZA4315ME-part1 /sda2 ext4 acl,user_xattr,noatime,async,commit=100 1 2
proc /proc proc defaults 0 0
You don't need this one.
sysfs /sys sysfs noauto 0 0
Neither this.
debugfs /sys/kernel/debug debugfs noauto 0 0
Nor this.
usbfs /proc/bus/usb usbfs noauto 0 0
Nor this.
devpts /dev/pts devpts mode=0620,gid=5 0 0
Nor this.
tmpfs /tmp tmpfs nodev,nosuid,noexec,mode=1777 0 0 tmpfs /var/tmp tmpfs nodev,nosuid,noexec,mode=1777 0 0
/opt /usr/src /var/log /var/spool
are links (ln -s)
to:
ilinty@linux-q5nf:/sda2> ll /opt lrwxrwxrwx 1 root root 9 11 ago 14.37 /opt -> /sda2/opt
sda2 is precisely the partition that fails to umount, it is in use. Try use bind-mounts instead of symlinks, so that fstab list them.
-- Cheers / Saludos,
Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Carlos E. R.
-
Ivan Linty