public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel 2.6: NFS problem---cannot rmmod nfsd
@ 2005-07-05 17:40 Xin Zhao
  2005-07-05 18:18 ` Xin Zhao
  0 siblings, 1 reply; 3+ messages in thread
From: Xin Zhao @ 2005-07-05 17:40 UTC (permalink / raw)
  To: linux-kernel

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?

Thanks in advance for your kind help!

-x

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel 2.6: NFS problem---cannot rmmod nfsd
  2005-07-05 17:40 Xin Zhao
@ 2005-07-05 18:18 ` Xin Zhao
  0 siblings, 0 replies; 3+ messages in thread
From: Xin Zhao @ 2005-07-05 18:18 UTC (permalink / raw)
  To: linux-kernel

Please discard the previous message.

I just noticed that something was wrong in the nfsd implementation
(slightly modified by me). After I fixed the problem, I can rmmod nfsd
now.

Sorry for the confusion.

-x

On 7/5/05, Xin Zhao <uszhaoxin@gmail.com> 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?
> 
> Thanks in advance for your kind help!
> 
> -x
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel 2.6: NFS problem---cannot rmmod nfsd
       [not found] <mailman.1120585560.25519.linux-kernel2news@redhat.com>
@ 2005-07-05 19:59 ` Steve Dickson
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2005-07-05 19:59 UTC (permalink / raw)
  To: Xin Zhao; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-05 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1120585560.25519.linux-kernel2news@redhat.com>
2005-07-05 19:59 ` kernel 2.6: NFS problem---cannot rmmod nfsd Steve Dickson
2005-07-05 17:40 Xin Zhao
2005-07-05 18:18 ` Xin Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox