FS#10484 - [initscripts] netfs fails to shutdown when NFS shares are automounted
Attached to Project:
Arch Linux
Opened by Christoper Daley (luciferin) - Saturday, 24 May 2008, 07:55 GMT
Last edited by Tom Gundersen (tomegun) - Monday, 06 June 2011, 00:05 GMT
Opened by Christoper Daley (luciferin) - Saturday, 24 May 2008, 07:55 GMT
Last edited by Tom Gundersen (tomegun) - Monday, 06 June 2011, 00:05 GMT
|
Details
Description:
On shutdown the following will occur due to network shares being mounted in fstab and not unmounted before shutdown. The same error occurs if you pass "/etc/rc.d/netfs stop" without unmounting first. ":: Unmounting Network Filesystems [FAIL]" Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Tom Gundersen (tomegun)
Monday, 06 June 2011, 00:05 GMT
Reason for closing: Duplicate
Additional comments about closing: See FS#20903 .
Monday, 06 June 2011, 00:05 GMT
Reason for closing: Duplicate
Additional comments about closing: See
stat_busy "Unmounting Network Filesystems"
umount -a -t nfs,smbfs,codafs,ncpfs,cifs,shfs,fuse,fuseblk
If unmounting your filesystems fails, you need to figure out WHY they fail.
Patch is attached.
I seems to me that the unmount in netfs is hanging a long time in netfs->unmount. Eventually it will continue here, but it takes nearly 5 minutes.
I added 'lsof | grep /home' in the netfs script (in the error handling part) and every time the problem happens, there is some kde daemon involved: akonadi, kded, etc.
I could investigate about this but I don't really known what should be the behaviour during the shutdown. Of course I suspect that every "user" process should be terminated before trying to unmount the NFS filesystems but I don't understand how the Arch shutdown scripts could guarantee that.
in /etc/rc.local.shutdown
umount -a -t nfs
Which consisted, apart from the new xorg, by syslog-ng and mdadm.
https://bugs.archlinux.org/task/20903
Workaround: place rpcbind before nfs-common in your MODULES array. If this does not fix the problem, please reopen.