[Linux-HA] heartbeat with "exportfs -u"

Kian_Chang_Low at veritasdgc.com Kian_Chang_Low at veritasdgc.com
Tue Mar 8 01:46:42 MST 2005


Thanks.

That's works.

But, I did noticed that there must be a certain lapse between IPaddr and 
"exportfs -u ..." for the client to be "tricked". If the lapse is too 
short, the client will still have the same stale nfs problem.

Regards,
Kian Chang.



Dave Dykstra <dwdha at drdykstra.us> 
Sent by: <dwd at drdykstra.us>
03/08/2005 03:00 AM

To
General Linux-HA mailing list <linux-ha at lists.linux-ha.org>
cc
Kian_Chang_Low at veritasdgc.com
Subject
Re: [Linux-HA] heartbeat with "exportfs -u"






I've found that I need to put the IPaddr pretty much last in the
haresources list, so that when it is taken down (in reverse order) the
first thing that happens is that the clients stop having any communication
with the server.

- Dave

On Mon, Mar 07, 2005 at 05:27:04PM +0800, Kian_Chang_Low at veritasdgc.com 
wrote:
> Hi,
> 
> I'm trying to write a script (NFSserver) for exporting (or unexporting) 
a 
> filesystem. With this script in place in the resource.d directory, my 
> entry in the haresources will be something like this ...
> 
> nodeP  IPaddr::192.168.1.100  LVM::vg000 
> Filesystem::/dev/vg000/lvol1::/data::ext3  NFSserver
> 
> With the nfsd running, the NFSserver script basically use "exportfs ..." 

> to export the filesystem and "exportfs -u ..." to unexport the 
filesystem. 
> However, I notice that "exportfs -u" will always cause the client to 
> encounter a "Stale NFS file handle" problem, but without "exportfs -u", 
I 
> can not umount the filesystem!
> 
> I'm not too concern with NFS locking at the moment, or the various files 

> in the /var/lib/nfs directories. These will come later. And if the 
script 
> works, it will be a step closer to a rudimentary Active/Active NFS 
server.
> 
> I was wonder whether has anyone attempted such a script or any 
suggestion 
> to get around this problem?
> 
> Thanks,
> Kian Chang.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux-ha.org/pipermail/linux-ha/attachments/20050308/3ffe81e0/attachment.html>


More information about the Linux-HA mailing list