kernel 2.6: NFS problem---cannot rmmod nfsd
A message that is not in the archive (sent off-list or not yet received): [email protected]
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/nfsstart", the nfsd module is inserted. But when I tried to rmmod this module either with "/etc/init.d/nfsstop" 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.