Skip to contentSkip to conversation

trying to unload nfsd

DISCUSSION Brian J. Murrell 3 participants 3 messages Jan 4, 2007 – Jan 8, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I have umounted all of my nfs filesystems and stopped the nfs services. I still can't unload the nfsd module:

$ sudo /sbin/lsmod | grep nfsd
nfsd                  277152  4 
exportfs                7680  1 nfsd
lockd                  77616  1 nfsd
nfs_acl                 5120  1 nfsd
sunrpc                174840  7 nfsd,lockd,nfs_acl

The only thing I can see that could be pinning it still is:

$ grep nfs /proc/mounts
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

But I can't seem to umount that:

$ sudo umount /var/lib/nfs/rpc_pipefs
umount: /var/lib/nfs/rpc_pipefs: device is busy
umount: /var/lib/nfs/rpc_pipefs: device is busy

What could be pinning that fs/mount-point?

b.

Signature · 3 lines
My other computer is your Microsoft Windows server.

Brian J. Murrell

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 15 lines · Brian J. Murrell

I have umounted all of my nfs filesystems and stopped the nfs services. I still can't unload the nfsd module:

$ sudo /sbin/lsmod | grep nfsd
nfsd                  277152  4 
exportfs                7680  1 nfsd
lockd                  77616  1 nfsd
nfs_acl                 5120  1 nfsd
sunrpc                174840  7 nfsd,lockd,nfs_acl

The only thing I can see that could be pinning it still is:

$ grep nfs /proc/mounts
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
Quoted 7 lines

But I can't seem to umount that:

$ sudo umount /var/lib/nfs/rpc_pipefs
umount: /var/lib/nfs/rpc_pipefs: device is busy
umount: /var/lib/nfs/rpc_pipefs: device is busy

What could be pinning that fs/mount-point?

Nothing in the sunrpc module depends on anything in nfsd as you can see from the above lsmod output.

I'd rather expect that you've forgotten to kill off rpc.mountd, rpc.idmapd and/or rpc.svcgssd.

Trond

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 2 lines · Trond Myklebust

I'd rather expect that you've forgotten to kill off rpc.mountd, rpc.idmapd and/or rpc.svcgssd.

Right... here is what I do to unload both nfsd and sunrpc service nfs stop && service rpcidmapd stop && umount /proc/fs/nfsd && rmmod nfsd
rmmod lockd && rmmod nfs_acl
umount /var/lib/nfs/rpc_pipefs && rmmod sunrpc

(Note: this assumes there are entires in /etc/fstab for both /proc/fs/nfsd and var/lib/nfs/rpc_pipefs. It also assumes the Secure NFS gssd daeamon are not running).

steved.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs