Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/init.d/zfs-mount fails to unmount during shutdown.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Fri Feb 09, 2018 11:48 pm    Post subject: /etc/init.d/zfs-mount fails to unmount during shutdown. Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sat Feb 10, 2018 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sat Feb 10, 2018 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sun Feb 11, 2018 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Mon Feb 12, 2018 4:01 am    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Feb 12, 2018 5:03 am    Post subject: Reply with quote

@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
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Mon Feb 12, 2018 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum