[Linux-cluster] Basic 2 node NFS cluster setup help

Lon Hohberger lhh at redhat.com
Thu Jul 10 20:42:50 UTC 2008


On Wed, 2008-07-09 at 08:51 -0500, Brad Filipek wrote:
> I am a little unsure on how to properly setup an NFS export on my 2
> node cluster. I have 1 service in cluster manager called "cluster" and
> 4 resources:
>  
> 1) Virtual IP of 172.25.7.10 (which binds to eth0)
> 2) Virtual IP of 172.25.8.10 (which binds to eth1)
> 3) ext3 file system mount at /SAN/LogVol2 called "data"
> 4) ext3 file system mount at /SAN/LogVol3 called "shared"
>  
> When I start the cluster services using just these 4 resources assiged
> to my one service called "cluster", everything starts up and works
> fine. 
>  
> What I need to do is assign 3 NFS exports:
> /SAN/LogVol3/files             webserver(ro,sync)
> /SAN/LogVol3/webup          webserver(rw,sync)
> /SAN/LogVol2/webdown      webserver(ro,sync)
>  
> Do I need to create 3 new "NFS Export" resources for these? When I
> select the "NFS Export" option within cluster suite, I only have one
> field to fill in - Name. It does not let me select the path that I
> want to export and which options to allow such as the host, ro or rw,
> etc. I am just trying to make the above exports available on my
> cluster's virtual IP of 172.25.7.10 instead of setting it up on each
> of the two nodes and manually starting the NFS service on whichever
> node is active in the cluster. Do I still need to create
> an /etc/exports file with all 3 of these entries on each node? Or is
> there a config file somewhere else? I read the NFS cookbook but it
> explains how to setup NFS using multiple services (I only have one
> service) with active/active GFS (I am using EXT3 in active/passive). 

Typically, you add an NFSexport (which is mostly a placeholder).  Below
that, you attach nfsclients - which are actual hosts.

-- Lon




More information about the Linux-cluster mailing list