I think having looked at:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/netfs.sh?rev=1.11&content-type=text/x-cvsweb-markup&cvs
root=cluster

this:

        <netfs options="rw" mountpoint="/mnt/encoded/audio/wav" 
force_unmount="1" export="/export-path" fstype="nfs" host="hostname"
name="name-of-the-resource"/>

Will try to mount an nfs fs from the remote host and export <host="hostname" 
export="/export-path"> rather than just specify a
directory to be exported from a local fs.

I've now looked at the nfsclient.sh script and I think I can just specify the 
export path in that part of the file e.g. as follows:

<resources>
...

<nfsclient name="dmz" path="/mnt/encoded/audio/wav" target="10.0.40.0/24" 
options="ro,sync"/>

...

</resources>


Can anyone confirm if this is correct?   I'm not sure what will happen as there 
is no fsid to inherit?


Regards
Ben




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GS R
> Sent: 16 June 2008 11:30
> To: linux clustering
> Subject: Re: [Linux-cluster] Help with cluster.conf
> 
> 
> 
> On 6/16/08, GS R <[EMAIL PROTECTED]> wrote:
> 
> 
>       Hi Ben
> 
> 
> 
>               <resources>
> 
>                 <clusterfs fstype="gfs" name="wavfs-0" 
> mountpoint="/mnt/encoded/audio/wav-0"
> device="/dev/mapper/shared_disk-wav--0" options=""/>
>                 <clusterfs fstype="gfs" name="wavfs-4" 
> mountpoint="/mnt/encoded/audio/wav-4"
> device="/dev/mapper/shared_disk-wav--4" options=""/>
> 
>                 <clusterfs fstype="gfs" name="wavfs-8" 
> mountpoint="/mnt/encoded/audio/wav-8"
> device="/dev/mapper/shared_disk-wav--8" options=""/>
> 
>                 <clusterfs fstype="gfs" name="wavfs-C" 
> mountpoint="/mnt/encoded/audio/wav-C"
> device="/dev/mapper/shared_disk-wav--C" options=""/>
> 
>                 <nfsexport name="NFSexports"/>
>                 <nfsclient name="dmz" target="10.0.40.0/24" 
> options="ro,sync"/>
>                 <nfsclient name="data" target="10.0.20.0/24" 
> options="rw,sync,no_root_squash"/>
>                 <nfsclient name="web" target="10.0.1.0/24" options="ro,sync"/>
> 
> 
> <netfs options="rw" mountpoint="/mnt/encoded/audio/wav" force_unmount="1" 
> export="/export-path"
> fstype="nfs" host="hostname" name="name-of-the-resource"/>
> 
> 
> 
> 
>               </resources>
> 
>                 <service name="wav" domain="a-priority">
>                    <ip address="10.0.20.50 <http://10.0.20.50/> " 
> monitor_link="no"/>
>                    <ip address="10.0.1.50 <http://10.0.1.50/> " 
> monitor_link="no"/>
> 
>                    <clusterfs ref="wavfs-0"/>
>                    <clusterfs ref="wavfs-4"/>
>                      <clusterfs ref="wavfs-8"/>
>                      <clusterfs ref="wavfs-C"/>
> 
>                    .... I need to include something here to tell nfs what to 
> export! ....
>                    .... Along the lines of export directory 
> /mnt/encoded/audio/wav ....
> 
> 
>               <nfsexport ref="NFSexports">
>                  <nfsclient ref="dmz"/>
>                  <nfsclient ref="data"/>
>                  <nfsclient ref="web"/>
>               </nfsexport>
>              ..... And close it here ....
> 
>         </service>
> 
> 
>       Let me know if this works and correct me if I am wrong :)
> 
>       Thanks n Regards
>       Gowrishankar Rajaiyan
> 
> 
> 
> 
> Sorry!!! Those entries should to be in the resources section.



--
Linux-cluster mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-cluster

Reply via email to