[Linux-HA] HA-NFS and POSIX locks, unable to umount?
Guochun Shi
gshi at ncsa.uiuc.edu
Thu Jun 3 12:39:23 MDT 2004
At 01:37 PM 6/3/2004 -0400, Jeffrey Layton wrote:
>On Thu, 2004-06-03 at 13:17, Guochun Shi wrote:
>> Hi, Jeff
>>
>> I tested against 2.4.26 and 2.6.5-1.339, neither works :(.
>>
>> What client program are you running?
>>
>> A simple lock program that places a lock on a file does not always make umount fail on server as I tested it before,
>> however, Connectathon lock test always make the server umount fail.
>> Send a '9' signal to lockd does not seem to help( at least in my machines).
>> In my test machines, both the server and the client mounts home directory from another NFS server,
>> not sure if that will affect this test.
>>
>> thanks
>> -Guochun
>
>Hmm odd. I attached my locktest program to this email (most of it
>shamelessly copied from R. Stevens' book). It just opens and locks a
>file passed to it on the command line.
>
>I had problems too with the server mounting filesystems from itself as
>well. In my heartbeat setup, I unmount any NFS filesystems that are
>mounted on the floating IP address when stopping.
>
>I also attached my nfs-force-unmount script. I pass in this with the
>hostname of the floating IP address I'm using before shutting down any
>NFS stuff. e.g.:
>
>nfs-force-unmount::nfsserver
>
>With this and the kill -9 to lockd it works like a champ for me...
I tried your test program, it works for me too, even without kill -9.
Both the server and the client are in 2.4.26.
-Guochun
More information about the Linux-HA
mailing list