[DRBD-user] Stale NFS file handle
Todd.Denniston at ssa.crane.navy.mil
Fri Dec 16 19:39:29 CET 2005
Andrés Cañada wrote:
> I've been reading about the Stale NFS file handle problem in this list.
> As far as I can see, this is a Debian/NFS problem, so that's my problem, and I
> haven't read the solution that works for me.
From the above and below text you wrote I think you may have one problem
If you kill nfsd it can not store needed data in drbd0 that would be needed
when a fall over so the other system can resume the nfs sessions.
you are telling us below that you are getting an error with your killnfsd
script, but you have not answered the question I also asked Raoul, 'WHY DO YOU
NEED TO KILL NFSD?'.
The reason for that question is simple,
1) nfsd service should not be started at boot so it should not be in the way
when heartbeat trys to start the nfs service scripts,
on Fedora chkconfig or system-config-services can be used,
on Debian I think one of the following will head you in the correct direction:
But you if you are not sure which one to use, you would be better to ask on a
But if you still need to kill your nfsd's you would be better to have your
killnfsd make calls to
`service nfs-kernel-server stop` and `service nfs-common stop`.
as these should make sure all related programs are taken down in an orderly
Once you get over the startup/shutdown problems, then we can come back to the
stale NFS handles. Granted I am making the assumption that you have either
mounted a drbd resource at /var/lib/nfs like Raoul, or have made softlinks
from /var/lib/nfs to a drbd resource directory. Note that Raoul indicated the
softlinks worked for him but the mounting did not, so I suggest sticking with
> I've added a 3 second delay before taking the VIP, but nothing.
> I also made "echo 'killall -9 nfsd' > /etc/heartbeat/resource.d/killnfsd" and
> added killnfsd to haresources but in this case I get " CRIT: Giving up
> resources due to failure of killnfsd".
> ¿Can anybody help me? ¿Why heartbeat can't run killnfsd and returns that
> Thanks in advance.
look at the other heartbeat scripts, your killnfsd script needs to
1) accept the options start|stop|restart|status.
2) return specific data for each of the options.
> **CONFIDENTIALITY NOTICE** This email <WAS SENT TO A MAILING LIST AND IS STORED IN MANY PLACES NOW>
More information about the drbd-user