[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Title: Adding Service to Cluster through Command Line..

Hello Guys,

I am in verse to add service to cluster through only command line.

My Clustat output is:

[code]

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

[/code]

I have been provided with the script called cluster_python.sh which has the following options:

[code]

edwin2# python cluster.py

Syntax: 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

edwin2#

[/code]

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:

[code]



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.
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]