Skip to contentSkip to conversation

kernel 2.6: NFS problem---cannot rmmod nfsd

DISCUSSION Steve Dickson 1 participant 1 message Jul 5, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Xin Zhao

I compile kernel 2.6.11.10 and configure both nfs client and server as kernel modules. But after I reboot the machine and did "/etc/init.d/nfs start", the nfsd module is inserted. But when I tried to rmmod this module either with "/etc/init.d/nfs stop" or "umount /proc/fs/nfsd; rmmod nfsd", the nfsd reference count is always 1 and cannot be removed. Why?

Because you need to umount /proc/fs/nfsd.
Note: you'll also need to restart rpc.idmapd.

Try the following:

service nfs start # which load everything that's needed

service nfs stop
service rpcidmapd stop
umount /proc/fs/nfsd
rmmod nfsd

Then to (safely) reinstall the module

insmod /tmp/nfsd.ko
mount -t nfsd nfsd /proc/fs/nfsd
service nfs start (which also will start rpcidmapd on FC boxes)

steved.