From: Steve Dickson <SteveD@redhat.com>
To: Xin Zhao <uszhaoxin@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: kernel 2.6: NFS problem---cannot rmmod nfsd
Date: Tue, 05 Jul 2005 15:59:34 -0400 [thread overview]
Message-ID: <42CAE6A6.8030100@RedHat.com> (raw)
In-Reply-To: <mailman.1120585560.25519.linux-kernel2news@redhat.com>
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.
next parent reply other threads:[~2005-07-05 19:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1120585560.25519.linux-kernel2news@redhat.com>
2005-07-05 19:59 ` Steve Dickson [this message]
2005-07-05 17:40 kernel 2.6: NFS problem---cannot rmmod nfsd Xin Zhao
2005-07-05 18:18 ` Xin Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42CAE6A6.8030100@RedHat.com \
--to=steved@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=uszhaoxin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox