[Linux-cluster] Adding Service to Cluster through Command Line..

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

Hello Guys,

I am in verse to add service to cluster through only command line.
My Clustat output is:
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


I have been provided with the script called cluster_python.sh which has
the following options:
edwin2# python cluster.py
Syntax: cluster.py <command> <args>
        setversion <version>
        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>
        addfodnode <domain_name> <node_name> <node_priority>
        addquorumd <interval> <tko> <votes> <label> <log_level>
<log_facility> <device>
        changelogging <log_level> <log_facility>

Now All I want is to include NFS Service be created for my project
work.I need 3 conditions- Status, Start and Stop process so I included
it in one script and ran the command:

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/e1f08357/attachment.htm>

More information about the Linux-cluster mailing list