LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 08-29-2008, 12:06 AM   #1
nepenthes9
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Redhat Cluster Suite on CentOS 5.2 - NFS Service Problem


Hi erveryone,

i am using redhat cluster suite on CentOS 5.2, following is my cluster.conf:

<?xml version="1.0" ?>
<cluster config_version="7" name="cluster_tpe">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="tpe52.xxx.com" nodeid="1" votes="1">
<fence>
<method name="1">
<device name="NPS" nodename="tpe52.xxx.com"/>
</method>
</fence>
</clusternode>
<clusternode name="tpe51.xxx.com" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="NPS" nodename="tpe51.xxx.com"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="NPS"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="nfsha" ordered="1" restricted="0">
<failoverdomainnode name="tpe52.xxx.com" priority="1"/>
<failoverdomainnode name="tpe51.xxx.com" priority="2"/>
</failoverdomain>
</failoverdomains>
<resources>
<clusterfs device="/dev/sdb5" force_fsck="0" force_unmount="1" fsid="45793" fstype="ext3" mountpoint="/nfsdata" name="nfsdata" options="rw"/>
<nfsclient name="any_host" options="rw,async,no_root_squash" path="" target="192.168.1.0/24"/>
<nfsexport name="nfs_export"/>
<ip address="192.168.1.50" monitor_link="1"/>
</resources>
<service autostart="1" domain="nfsha" name="nfs1" nfslock="1">
<ip ref="192.168.1.50"/>
<clusterfs ref="nfsdata">
<nfsexport ref="nfs_export">
<nfsclient ref="any_host"/>
</nfsexport>
</clusterfs>
</service>
</rm>
</cluster>



and my log:


Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> Starting disabled service service:nfs1
Aug 29 12:31:39 tpe52 kernel: kjournald starting. Commit interval 5 seconds
Aug 29 12:31:39 tpe52 kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
Aug 29 12:31:39 tpe52 kernel: EXT3 FS on sdb5, internal journal
Aug 29 12:31:39 tpe52 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Aug 29 12:31:39 tpe52 clurgmgrd: [19155]: <err> No export path specified.
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> start on nfsclient "any_host" returned 2 (invalid argument(s))
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <warning> #68: Failed to start service:nfs1; return value: 1
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> Stopping service service:nfs1
Aug 29 12:31:39 tpe52 clurgmgrd: [19155]: <err> No export path specified.
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> stop on nfsclient "any_host" returned 2 (invalid argument(s))
Aug 29 12:31:40 tpe52 clurgmgrd[19155]: <crit> #12: RG service:nfs1 failed to stop; intervention required
Aug 29 12:31:40 tpe52 clurgmgrd[19155]: <notice> Service service:nfs1 is failed
Aug 29 12:31:40 tpe52 clurgmgrd[19155]: <crit> #13: Service service:nfs1 failed to stop cleanly
failed.


mount on /dev/sdb5 is ok, but the service is failed, why?

please help me...

thank you!!!

Ian

Last edited by nepenthes9; 08-29-2008 at 12:08 AM.
 
Old 09-14-2008, 10:35 PM   #2
WildPossum
Member
 
Registered: Feb 2004
Location: Sydney - Australia
Distribution: OpenSUSE, Ubuntu, Mythbuntu, iMedia, Embedded Linux
Posts: 44

Rep: Reputation: 18
NFS problem

Quote:
Originally Posted by nepenthes9 View Post

redhat cluster suite on CentOS 5.2, following is my cluster.conf:

<< BIG SNIP >>

<resources>
<clusterfs device="/dev/sdb5" force_fsck="0" force_unmount="1" fsid="45793" fstype="ext3" mountpoint="/nfsdata" name="nfsdata" options="rw"/>
<nfsclient name="any_host" options="rw,async,no_root_squash" path="" target="192.168.1.0/24"/>
<nfsexport name="nfs_export"/>
<ip address="192.168.1.50" monitor_link="1"/>
</resources>

<service autostart="1" domain="nfsha" name="nfs1" nfslock="1">

<ip ref="192.168.1.50"/><clusterfs ref="nfsdata">
<nfsexport ref="nfs_export"><nfsclient ref="any_host"/></nfsexport>


and my log:


Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> Starting disabled service service:nfs1

Aug 29 12:31:39 tpe52 clurgmgrd: [19155]: <err> No export path specified.
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> start on nfsclient "any_host" returned 2 (invalid argument(s))

Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <warning> #68: Failed to start service:nfs1; return value: 1
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> Stopping service service:nfs1

Aug 29 12:31:39 tpe52 clurgmgrd: [19155]: <err> No export path specified.
Aug 29 12:31:39 tpe52 clurgmgrd[19155]: <notice> stop on nfsclient "any_host" returned 2 (invalid argument(s))

Aug 29 12:31:40 tpe52 clurgmgrd[19155]: <crit> #12: RG service:nfs1 failed to stop; intervention required
Aug 29 12:31:40 tpe52 clurgmgrd[19155]: <notice> Service service:nfs1 is failed
Aug 29 12:31:40 tpe52 clurgmgrd[19155]: <crit> #13: Service service:nfs1 failed to stop cleanly
failed.

--------

<nfsclient name="any_host" options="rw,async,no_root_squash" path="" target="192.168.1.0/24"/>

I strongly suspect your problem(s) [as indictated by the error log entry above] is with the way you have configured the NFS service.

I have space out the error log so that you can see the reported issues clearly. XML is simple, each section is simply surronded by labels that start like: <resources> and always finish by the "/" preamble, as in </resources>. Seperating and spreading the xml configuration out helps you better see that is involved.

There are several issues reported, but you should always start with the first reported problem because most times, clearing the first issue resolves other outstanding errors.

So, given that the first reported error is: nfsclient adress is unresolvable. This is because the target address given is a network address rather than a specific machine address.

===/===

IMHO is best you learn about NFS first, so then you can better understand your clustering configuration.

Read "man nfs -k" information and simply set up a NFS share [looking and using all the tools used to ensure correct setup eg: rpcinfo -p, mount, showmount etc.] between a two machines.
Once your got this simple NFS setup configured, up and running, then you will know how to set the parameters correctly for what you need. Now go back to the cluser configuration and correct the NFS setup to the target your trying to use.

You can used the newly learnt tools to debug where-else you may have issues.

Hope this assists you.
 
Old 09-15-2008, 01:15 AM   #3
nepenthes9
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
hi WildPossum

thanks for your advice, now it works

I added a new parameter in resource "nfsclient",

<nfsclient name="nfs_client" options="rw" path="/nfsdata" target="*"/>

the export path should defined in nfsclient.

thanks again,

regards,

Ian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NFS and RH Cluster Suite; Problems relating services/resources to NFS l_long_island Linux - Server 5 08-30-2008 11:20 AM
How to define an NFS share service using RHEL4 Cluster Suite 4 enigma75 Red Hat 1 07-15-2007 05:31 AM
Redhat cluster suite syam_hundi Linux - Enterprise 0 02-27-2007 10:35 PM
Help! RedHat Cluster Suite, LVS, and SSL problem michael.wong Linux - Networking 1 01-22-2007 03:50 PM
Redhat Cluster suite magobin Linux - Enterprise 0 03-13-2006 06:00 AM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration