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

Guochun Shi gshi at ncsa.uiuc.edu
Mon Mar 7 13:26:30 MST 2005


I assume you want to un-exportfs some filesystem but still have NFS service for other filesystems in the same machine.
Otherwise you can use nfs script in init.d directory to stop nfs service in stead of un-exportfs.

-Guochun

At 05:27 PM 3/7/2005 +0800, you 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/20050307/8184e588/attachment.html>


More information about the Linux-HA mailing list