Messages in this thread | | | Date | Tue, 05 Jul 2005 15:59:34 -0400 | From | Steve Dickson <> | Subject | Re: kernel 2.6: NFS problem---cannot rmmod nfsd |
| |
Xin Zhao wrote: > 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |