How to define an NFS share service using RHEL4 Cluster Suite 4
I have used RHEL3 & 4 for a few years now but am new to Cluster Suite 4. We need to setup 2 mysql services and 2 nfs share services within the cluster domain.
I have the mysql services setup and working great but am struggling with the NFS share services. I have the NFS share services setup and they appear to work fine but I am not abe to mount them from my web servers. It is not being blocked by any firewall and from reading around I think I need to add an nfs client resource to the nfs services I have created for each web server wanting to mount the NFS share but when I do I just get an error when the service trys to start and it fails. I suspect i have the details on the nfs client configuration incorrect but am not sure what details i should put in.
lets say my share is device /dev/sdd1 and is mounted as /share on the DB cluster server and the nfs service is setup to share this on the IP address 172.22.126.102. Now lets say the web server wanting to mount this has the IP address 172.22.126.150. How would i setup the nfs client resource to allow this as part of the NFS cluster service.
The cluster.conf file looks like this for the NFS service and it seems to work ok.
<service autostart="1" domain="DAT-CLUSTER" name="CYDAT-NFS-LIVE">
<fs ref="nfs_live_share"/>
<nfsexport ref="/share"/>
<ip ref="172.22.126.102"/>
</service>
I have tried adding an nfsclient resource such as the one below but it fails with the error show below.
<nfsclient name="web3" options="async,insecure,rw,no_root_squash" path="" target="172.22.126.150"/>
fails when added to the service above with the folowing error.
clurgmgrd: [6327]: <info> mounting /dev/sdd1 on /share
kernel: kjournald starting. Commit interval 5 seconds
kernel: EXT3 FS on sdd1, internal journal
kernel: EXT3-fs: mounted filesystem with ordered data mode.
clurgmgrd: [6327]: <err> No export path specified.
clurgmgrd[6327]: <notice> start on nfsclient:web3 returned 2 (invalid argument(s))
clurgmgrd[6327]: <warning> #68: Failed to start CYDAT-NFS-LIVE; return value: 1
clurgmgrd[6327]: <notice> Stopping service CYDAT-NFS-LIVE
clurgmgrd: [6327]: <info> unmounting /share
Any help in getting this working ASAP would be greatly appreciated.
|