LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-13-2007, 05:08 PM   #1
enigma75
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
Wink 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.
 
Old 07-15-2007, 05:31 AM   #2
enigma75
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I have managed to get the NFS share service working for one client via cluster suite. The cluster.conf file looks as follows.

<service autostart="1" domain="DAT-CLUSTER" name="CYDAT-NFS-LIVE">
<fs ref="nfs_live_share">
<nfsexport ref="share">
<nfsclient ref="web3"/>
</nfsexport>
</fs>
<ip ref="172.19.226.102"/>
</service>

The secret appears to be in the nesting.

The only problem I have now is the fact that when you fail the service between nodes it does not un-mount the share and also if i try to add a second nfsclient intot eh above nfsexport the service stops working.

Does anyone know if you have to define a speperate nfsclient in a seperate nfsexport for each fs ref to allow mutiple clients to mount the share?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cluster suite 4.5 renegade7 Linux - Software 0 06-27-2007 09:25 AM
Redhat cluster suite syam_hundi Linux - Enterprise 0 02-27-2007 10:35 PM
Mounted NFS share service question tito2502 SUSE / openSUSE 1 12-15-2006 12:11 PM
Why cannot my Cluster Suite be installed ? vqthang Linux - Enterprise 2 06-06-2006 09:32 AM
Redhat Cluster suite magobin Linux - Enterprise 0 03-13-2006 06:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration