[Linux-cluster] Adding Service to Cluster..

Singh Raina, Ajeet ajeet.singh.raina at logica.com
Thu Aug 14 05:33:34 UTC 2008


Hi Guys,

I want to add a service on already setup red hat cluster. Due to no X
window installed on my machine,I am working completely on text mode.
All My Clustat says:

[terminal]
edwin2# clustat
Member Status: Quorate

  Member Name                              Status
  ------ ----                              ------
  edwin1-cluster                           Online, rgmanager
  edwin2-cluster                           Online, Local, rgmanager

  Service Name         Owner (Last)                   State
  ------- ----         ----- ------                   -----
  bang                 edwin2-cluster                 started
[terminal]

I have been provided a script by cluster experts which will help me in
including service and script to the cluster.iT has the following
options:
{Terminal}

Syntax:  ../cluster/cluster.py <command> <args>
        getversion
        incrementversion
        setversion <version>
        listfodomains
        listservices
        listfodnodes <domain_name>
        addservice <service_name> <autostart> <domain>
        removeservice <service_name>
        addserviceip <service_name> <ip_address> <monitor_link>
        addservicescript <service_name> <script_name> <script_file>
        addservicefs <service_name> <device> <mountpoint>
<force_unmount=1/0> <fs_name> <fs_type>
        addfodomain <domain_name> <restricted/unrestricted>
<ordered/unordered>
        addfodnode <domain_name> <node_name> <node_priority>
        addquorumd <interval> <tko> <votes> <label> <log_level>
<log_facility> <device>
        changelogging <log_level> <log_facility>
        setfencedcleanstart
        addhardwarefencing
edwin1# ../cluster/cluster.py listservices
bang
nfs
edwin1# vi nfsdeamon.sh
edwin1# ../cluster/cluster.py addservicescript nfs nfscontrol
nfsdeamon.sh
Script has been added successfully.
edwin1# clustat


I added nfs script written ownself.
I too added the service before that.
Now When I run 
#../cluster/cluster.py listfoservices
Bang
Nfs

It means that service is successfully added with the script.

Now when I see clustat I acnt see NFS Service being displayed.
That's Why its difficult for me to run the following command instead:

[code]
edwin2# clusvcadm -r nfs -m edwin2-cluster
Trying to relocate nfs to edwin2-cluster...failed: Service does not
exist
[/code]


What should I do to include nfs in clustat.


Pls help



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20080814/1a040901/attachment.htm>


More information about the Linux-cluster mailing list