[DRBD-user] Stale NFS file handle

Dr. Volker Jaenisch volker.jaenisch at inqbus.de
Sat Dec 17 21:08:30 CET 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello Andrés!

Andrés Cañada wrote:

>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.
>  
>
I'm not quite sure. But in one of my former posts to this list
http://archives.free.net.ph/message/20051209.000819.761f985f.en.html
I described a problem which can be related to this issue.
On debian /etc/ha.d/resource.d/Filesystem is broken!
In the filesystem script there is a call to "fuser" which should release
(kill)
processes residing on the mounted filesystem.
In its Debian Version "fuser" does effective nothing because it evaluates
the command line parameters in a wrong way (bug report filed).

Since you will have a haressource like the following

host-a  drbddisk::drbd-resource-0 \
        Filesystem::/dev/drbd0::/share/spool0/data::reiserfs \
        killnfsd \
        nfs-common \
        nfs-kernel-server \
        sleep::3 \
        IPaddr::10.0.0.30/24/eth0

prior to the execution of

killnfsd

the command

Filesystem::/dev/drbd0::/share/spool0/data::reiserfsis

is called. But due to its brokenness Filesystem does not release all the
processes pointing to the mounted  /dev/drbd device.
Maybe this causes the "stale filehandle" error.

Workaround :
In
/etc/ha.d/resource.d/Filesystem

change

"fuser -mk" to "fuser -m -k"

wich brings fuser to work right again.

Best regards,

Volker

-- 
====================================================
   inqbus it-consulting      +49 ( 341 )  5643800
   Dr.  Volker Jaenisch      http://www.inqbus.de
   Herloßsohnstr.    12      0 4 1 5 5    Leipzig
   N  O  T -  F Ä L L E      +49 ( 170 )  3113748
====================================================





More information about the drbd-user mailing list