On 06/19/2012 10:48 AM, Andreas Kurz wrote:
> On 06/19/2012 04:00 AM, Martin Marji Cermak wrote:
>> Hello guys,
>> I have 3 questions if you please.
>>
>> I have a HA NFS cluster - Centos 6.2, pacemaker, corosync, two NFS nodes
>> plus 1 quorum node, in semi Active-Active configuration.
>> By "semi", I mean that both NFS nodes are active and each of them is under
>> normal circumstances exclusively responsible for one (out of two) Volume
>> Group - using the ocf:heartbeat:LVM RA.
>> Each LVM volume group lives on a dedicated multipath iscsi device, exported
>> from a shared SAN.
>>
>> I'm exporting a NFSv3/v4 export (/srv/nfs/software_repos directory). I need
>> to make it available for 2 separate /21 networks as read-only, and for 3
>> different servers as read-write.
>> I'm using the ocf:heartbeat:exportfs RA and it seems to me I have to use
>> the ocf:heartbeat:exportfs RA 5 times.
> 
> If you want to use NFSv4 you also need to export the virtual nfs
> file-system root with fsid=0.
> 
> In its current incarnation, the exportfs RA does not allow to summarize
> different clients with the same export options in one primitive
> configuration, though the exportfs command would support it ... patches
> are welcome ;-)
> 
>>
>>
>> The configuration (only IP addresses changed) is here:
>> http://pastebin.com/eHkgUv64
>>
>>
>> 1) is there a way how to export this directory 5 times without defining 5
>> ocf:heartbeat:exportfs primitives? It's a lot of duplications...
>> I search all the forums and I fear the ocf:heartbeat:exportfs simply
>> supports only one host / network range. But maybe someone has been working
>> on a patch?
> 
> see above ... you maybe can safe a little bit duplications by using
> id-refs ...
> 
>>
>>
>>
>> 2) while using the ocf:heartbeat:exportfs 5 times for the same directory,
>> do I have to use the _same_ FSID (201 in my config) for all these 5
>> primitives (as I"m exporting the _same_ filesystem / directory)?
>> I'm getting this warning when doing so
>>
>> WARNING: Resources
>> p_exportfs_software_repos_ae1,p_exportfs_software_repos_ae2,p_exportfs_software_repos_buller,p_exportfs_software_repos_iap-mgmt,p_exportfs_software_repos_youyangs
>> violate uniqueness for parameter "fsid": "201"
>> Do you still want to commit?
> 
> It is only a warning and as you said, it is the same filesystem.
> 
>>
>>
>>
>> 3) wait_for_leasetime_on_stop - I believe this must be set to true when
>> exporting NFSv4  with ocf:heartbeat:exportfs.
>> http://www.linux-ha.org/doc/man-pages/re-ra-exportfs.html
>>
>> My 5 exportfs primitives reside in the same group:
>>
>> group g_nas02 p_lvm02 p_exportfs_software_repos_youyangs
>> p_exportfs_software_repos_buller p_fs_software_repos
>> p_exportfs_software_repos_ae1 p_exportfs_software_repos_ae2
>> p_exportfs_software_repos_iap-mgmt p_ip02 \
>>         meta resource-stickiness="101"
>>
>>
>> Even though I have the /proc/fs/nfsd/nfsv4gracetime set to 10 seconds, a
>> failover of the NFS group from one NFS node to the second node would take
>> more than 50 seconds,
>> as it will be waiting for each ocf:heartbeat:exportfs resource sleeping 10
>> seconds 5 times.
>>
>> Is there any way of making them fail over / sleeping in parallel, instead
>> of sequential?
> 
> use resource sets like:
> 

small correction of myself ;-) ... filesystem-mount has to be before the
exports of course:

> order o_nas02 inf: p_lvm02 ( p_exportfs_software_repos_youyangs
>  p_exportfs_software_repos_buller p_fs_software_repos
>  p_exportfs_software_repos_ae1 p_exportfs_software_repos_ae2
>  p_exportfs_software_repos_iap-mgmt ) p_ip02

order o_nas02 inf: p_lvm02 p_fs_software_repos \
(p_exportfs_software_repos_youyangs p_exportfs_software_repos_buller \
  p_exportfs_software_repos_ae1 p_exportfs_software_repos_ae2 \
  p_exportfs_software_repos_iap-mgmt ) p_ip02

> 
> colocation co_nas02 inf: p_lvm02 p_exportfs_software_repos_youyangs
>  p_exportfs_software_repos_buller p_fs_software_repos
>  p_exportfs_software_repos_ae1 p_exportfs_software_repos_ae2
>  p_exportfs_software_repos_iap-mgmt p_ip02

colocation co_nas02 inf: p_lvm02 p_fs_software_repos \
p_exportfs_software_repos_youyangs p_exportfs_software_repos_buller \
p_exportfs_software_repos_ae1 p_exportfs_software_repos_ae2 \
p_exportfs_software_repos_iap-mgmt p_ip02

Regards,
Andreas

> 
> this allows a parallel start and stop of all exports
> 
> Regards,
> Andreas
> 



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to