Re: kernel 2.6: NFS problem---cannot rmmod nfsd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux