View previous topic :: View next topic |
Author |
Message |
crocket Guru
Joined: 29 Apr 2017 Posts: 558
|
Posted: Fri Feb 09, 2018 11:48 pm Post subject: /etc/init.d/zfs-mount fails to unmount during shutdown. |
|
|
During every shutdown, I see the following messages.
Code: | zfs-mount |umount: /root: target is busy.
zfs-mount |cannot unmount '/root': umount failed
zfs-mount |umount: /mnt/data: target is busy.
zfs-mount |cannot unmount '/mnt/data': umount failed
zfs-mount |umount: /home: target is busy.
zfs-mount |cannot unmount '/home': umount failed
zfs-mount |umount: /: target is busy.
zfs-mount |cannot unmount '/': umount failed
[ !! ]
dhcpcd | * Stopping DHCP Client Daemon ...
[ ok ]
[ ok ]
[ ok ]
[ ok ]
[ ok ]
localmount | * Unmounting loop devices
localmount | * Unmounting filesystems
localmount | * Unmounting /tmp ...
[ ok ]
localmount | * Unmounting /boot/efi ...
[ ok ]
localmount | * Unmounting /var/tmp/portage ...
[ ok ]
localmount | * Unmounting /root ...
[ ok ]
localmount | * Unmounting /mnt/data ...
[ ok ]
localmount | * Unmounting /home ...
[ ok ]
|
How can I stop seeing those error messages during shutdown?
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sat Feb 10, 2018 5:42 am Post subject: |
|
|
I don't know why localmount would be trying to unmount zfs.
Was this system originally set up on zfs, or a conversion from another install? Perhaps you have something in /etc/fstab lingering around from an old setup. |
|
Back to top |
|
|
crocket Guru
Joined: 29 Apr 2017 Posts: 558
|
Posted: Sat Feb 10, 2018 10:45 am Post subject: |
|
|
bunder wrote: | I don't know why localmount would be trying to unmount zfs.
Was this system originally set up on zfs, or a conversion from another install? Perhaps you have something in /etc/fstab lingering around from an old setup. |
The system was originally set up on zfs. Below is my /etc/fstab
Code: | PARTUUID="some_uuid" none swap sw 0 0
PARTUUID="some_uuid" none swap sw 0 0
tmpfs /var/tmp/portage tmpfs size=14G,uid=portage,gid=portage,mode=775,noatime 0 0
PARTUUID="some_uuid" /boot/efi vfat defaults,noatime 0 0
tmpfs /tmp tmpfs size=8G,mode=1777,noatime 0 0
|
|
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Feb 11, 2018 4:27 am Post subject: |
|
|
Strange, all looks good there...
I wonder if you upgraded the userland tools without updating the kernel modules (or your initrd)... a mismatch can sometimes lead to the userland tools not working correctly. |
|
Back to top |
|
|
crocket Guru
Joined: 29 Apr 2017 Posts: 558
|
Posted: Mon Feb 12, 2018 4:01 am Post subject: |
|
|
bunder wrote: | Strange, all looks good there...
I wonder if you upgraded the userland tools without updating the kernel modules (or your initrd)... a mismatch can sometimes lead to the userland tools not working correctly. |
I executed the following commands, rebooted, and shut down my computer. But, I still see the same error messages during shutdown.
Quote: | emerge -q @module-rebuild
dracut --force --kver $(uname -r)
grub-mkconfig -o /boot/grub/grub.cfg |
|
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Feb 12, 2018 5:03 am Post subject: |
|
|
@module-rebuild would only rebuild zfs-kmod and spl, and skips the userland utilities.
give this a try, create a file called /etc/portage/sets/zfs with
Code: |
sys-fs/zfs
sys-fs/zfs-kmod
sys-kernel/spl
|
emerge @zfs, update initrd etc and reboot a couple times, if that doesn't work i'm guessing something else is at play and not zfs |
|
Back to top |
|
|
crocket Guru
Joined: 29 Apr 2017 Posts: 558
|
Posted: Mon Feb 12, 2018 1:16 pm Post subject: |
|
|
bunder wrote: | @module-rebuild would only rebuild zfs-kmod and spl, and skips the userland utilities.
give this a try, create a file called /etc/portage/sets/zfs with
Code: |
sys-fs/zfs
sys-fs/zfs-kmod
sys-kernel/spl
|
emerge @zfs, update initrd etc and reboot a couple times, if that doesn't work i'm guessing something else is at play and not zfs |
I did as you told. I'm still getting the same errors during reboot or shutdown. |
|
Back to top |
|
|
|