CCS - Online Linux Manual PageSection : 8

NAMEccs − Cluster Configuration System

SYNOPSISccs [-h hostname | -f filename] [options]

DESCRIPTIONccs allows an administrator to create, modify and view a cluster configuration file on a remote node through ricci or on a local file system. Using ccs an administrator can also start and stop the cluster services on one or all of the nodes in a configured cluster.

OPTIONSGenerally all command lines must specify either a hostname or filename to act upon.

MAIN OPTIONS--help Display this help and exit -h, --host host Cluster node to perform actions on --usealt If primary node name is unavailable, attempt to connect to ricci on the alt interface (only works from a cluster member) -f, --file file File to perform actions on -i, --ignore Ignore validation errors in cluster.conf file -p, --password Ricci user password for node running ricci --getconf Print current cluster.conf file --setconf Use the file specified by '-f' to send to the host specified with '-h' --checkconf If file is specified, verify that all the nodes in the file have the same cluster.conf as the file. If a host is specified then verify that all nodes in the host's cluster.conf file have the identical --getschema Print current cluster schema file (if using -h use schema from network, if using -f use local schema) .IP "--sync" ["--activate"] Sync config file to all nodes and optionally activating that configuration on all nodes --activate Activate config on node (use this option with --sync to activate config on all nodes) -b, --backup Backup cluster.conf file before changes in ~/.ccs/backup directory -d, --debug Display debugging information to help troubleshoot connection issues with ricci .IP "--exp tag [location] [options] Expert mode to add elements not currently defined in ccs .IP "--exprm location Expert mode to remove elements not currently defined in ccs

CLUSTER OPERATIONS--createcluster cluster Create a new cluster.conf (removing old one if it exists) --getversion Get the current cluster.conf version .IP "--setversion <n> Set the cluster.conf version "--incversion Increment the cluster.conf version by 1 .IP "--startall [--noenable|--nodisable] Start *AND* enable cluster services on reboot on all nodes (if --noenable or --nodisable is specified cluster services will only be started) .IP "--stopall [--noenable|--nodisable] Stop *AND* disable cluster services on reboot for all nodes (if --noenable or --nodisable is specified cluster services will only be stopped) .IP "--start [--noenable|--nodisable] Start *AND* enable cluster services on reboot for host specified with -h or localhost if no host is provided (if --noenable or --nodisable is specified cluster services will only be started) .IP "--stop [--noenable|--nodisable] Stop *AND* disable cluster services on reboot for host specified with -h or localhost if no host is provided (if --noenable or --nodisable is specified cluster services will only be stopped)

NODE OPERATIONS"--lsnodes List all nodes in the cluster .IP "--addnode <node> Add node <node> to the cluster .IP "--rmnode <node> Remove a node from the cluster .IP "--nodeid <nodeid> Specify nodeid when adding a node .IP "--votes <votes> Specify number of votes when adding a node .IP "--addalt <node name> <alt name> [alt options] Add an altname to a node for RRP .IP "--rmalt <node name> Remove an altname from a node for RRP

FENCING OPERATIONS.IP "--lsfenceopts [fence type] List available fence devices. If a fence type is specified, then list options for the specified fence type "--lsfencedev List all of the fence devices configured .IP "--lsfenceinst [<node>] List all of the fence methods and instances on the specified node or all nodes if no node is specified .IP "--addmethod <method> <node> Add a fence method to a specific node .IP "--rmmethod <method> <node> Remove a fence method from a specific node .IP "--addfencedev <device name> [fence device options] Add fence device. Fence devices and parameters can be found in online documentation in 'Fence Device Parameters' .IP "--rmfencedev <fence device name> Remove fence device .IP "--addfenceinst <fence device name> <node> <method> [options] [--nounfence] Add fence instance. Fence instance parameters can be found in online documentation in 'Fence Device Parameters'. Using --nounfence prevents ccs from automatically including an unfencing section for agents that require unfencing (ie. fence_scsi, fence_sanlock, etc.) .IP "--rmfenceinst <fence device name> <node> <method> Remove all instances of the fence device listed from the given method and node .IP "--addunfenceinst <fence device name> <node> [options] Add an unfence instance .IP "--rmunfenceinst <fence device name> <node> Remove all instances of the fence device listed from the unfence section of the node

FAILOVER DOMAIN OPERATIONS"--lsfailoverdomain Lists all of the failover domains and failover domain nodes configured in the cluster .IP "--addfailoverdomain <name> [restricted] [ordered] [nofailback] Add failover domain .IP "--rmfailoverdomain <name> Remove failover domain .IP "--addfailoverdomainnode <failover domain> <node> [priority] Add node to given failover domain .IP "--rmfailoverdomainnode <failover domain> <node> Remove node from failover domain

SERVICE OPERATIONS.IP "--lsserviceopts [service type] List available services. If a service type is specified, then list options for the specified service type .IP "--lsresourceopts [service type] An alias to --lsserviceopts "--lsservices List currently configured services and resources in the cluster .IP "--addresource <resource type> [resource options] ... Add global cluster resources to the cluster Resource types and variables can be found in the online documentation under 'HA Resource Parameters' .IP "--rmresource <resource type> [resource options] Remove specified resource with resource options .IP "--addservice <servicename> [service options] ... Add service to cluster .IP "--rmservice <servicename> Removes a service and all of its subservices .IP "--addaction <resource/name> <action_name> <action_option=val> Add an action to the specified resource. .IP "--rmaction <resource name> [<action_name> [action options]] Remove all actions from resource, or actions matching action name and options specified .IP "--addvm <virtual machine name> [vm options] ... Adds a virtual machine to the cluster .IP "--rmvm <virtual machine name> Removes named virtual machine from the cluster .IP "--addsubservice <servicename> <subservice> [service options] ... Add individual subservices, if adding child services, use ':' to separate parent and child subservices and brackets to identify subservices of the same type
Subservice types and variables can be found in the online documentation under 'HA Resource Parameters'
To add a nfsclient subservice as a child of the 2nd nfsclient subservice in the 'service_a' service use the following example:
ccs <...> --addsubservice service_a nfsclient[1]:nfsclient ref=/test .IP "--rmsubservice <servicename> <subservice> Removes a specific subservice specified by the subservice, using ':' to separate elements and brackets to identify between subservices of the same type.
To remove the 1st nfsclient child subservice of the 2nd nfsclient subservice in the 'service_a' service, use the following example:
ccs <...> --rmsubservice service_a nfsclient[1]:nfsclient

QUORUM OPERATIONS"--lsquorum List quorum options and heuristics .IP "--setquorumd [quorumd options] ... Add quorumd options .IP "--addheuristic [heuristic options] ... Add heuristics to quorumd .IP "--rmheuristic [heuristic options] ... Remove heuristic specified by heurstic options

MISC OPTIONS"--lsmisc List all of the misc options .IP "--settotem [totem options] Set totem options .IP "--setuidgid uid=<uid> gid=<gid> Set uidgid options .IP "--rmuidgid uid=<uid> gid=<gid> Remove uidgid entry matching specified uid/gid .IP "--setdlm [dlm options] Set dlm options .IP "--setrm [resource manager options] Set resource manager options .IP "--setcman [cman options] Set cman options .IP "--setmulticast [multicast address] [multicast options] Sets the multicast address to use (or removes it if no multicast address is given) .IP "--setaltmulticast [alt multicast address] [alt multicast options] Sets the alt multicast address to use (or removes it if no alt multicast address is given) .IP "--setfencedaemon [fence daemon options] Set fence daemon options .IP "--setlogging [logging options] Set logging options .IP "--addlogging [logging daemon options] Add a logging daemon (see cluster.conf for options) .IP "--rmlogging [logging daemon options] Remove the logging daemon with the specified options

FILES~/.ccs/cacert.config ~/.ccs/cacert.pem ~/.ccs/privkey.pem Automatically generated certificate files used to authenticate with ricci.

EXAMPLESCreate and start a 3 node cluster with apc fencing:
ccs -h host1 --createcluster mycluster
ccs -h host1 --addnode host1
ccs -h host1 --addnode host2
ccs -h host1 --addnode host3
ccs -h host1 --addmethod primary host1
ccs -h host1 --addmethod primary host2
ccs -h host1 --addmethod primary host3
ccs -h host1 --addfencedev myfence agent=fence_apc ipaddr=192.168.0.200 login=apc passwd=apc
ccs -h host1 --addfenceinst myfence host1 primary port=1
ccs -h host1 --addfenceinst myfence host2 primary port=2
ccs -h host1 --addfenceinst myfence host3 primary port=3
ccs -h host1 --sync --activate
ccs -h host1 --startall

AUTHORChris Feist <cfeist@redhat.com>

SEE ALSOricci(8), cluster.conf(5), ccs_tool(8)

NOTESFence Device Parameters http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ap-fence-device-param-CA.html
HA Resource Parameters
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ap-ha-resource-params-CA.html
0
Johanes Gumabo
Data Size   :   26,370 byte
man-ccs.8Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 238,890
Visitor ID   :     :  
Visitor IP   :   13.58.214.43   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_IP|5|ccs.8|42|5|.IP "--sync" ["--activate"] )         (rof_IP|5|ccs.8|51|5|.IP "--exp tag [location] [options] )         (rof_unit_scale_ch|24|ccs.8|53|ation|.IP "--exprm location )         (rof_IP|27|ccs.8|53|location|.IP "--exprm location )         (rof_unit_scale_ch|30|ccs.8|61|<*24/24>|.IP "--setversion )         (rof_IP|27|ccs.8|61||.IP "--setversion )         (rof_unit_scale_ch|22|ccs.8|65|sable]|.IP "--startall [--noenable|--nodisable] )         (rof_IP|27|ccs.8|65|[--noenable|--nodisable]|.IP "--startall [--noenable|--nodisable] )         (rof_unit_scale_ch|22|ccs.8|67|sable]|.IP "--stopall [--noenable|--nodisable] )         (rof_IP|27|ccs.8|67|[--noenable|--nodisable]|.IP "--stopall [--noenable|--nodisable] )         (rof_unit_scale_ch|22|ccs.8|69|sable]|.IP "--start [--noenable|--nodisable] )         (rof_IP|27|ccs.8|69|[--noenable|--nodisable]|.IP "--start [--noenable|--nodisable] )         (rof_unit_scale_ch|22|ccs.8|71|sable]|.IP "--stop [--noenable|--nodisable] )         (rof_IP|27|ccs.8|71|[--noenable|--nodisable]|.IP "--stop [--noenable|--nodisable] )         (rof_unit_scale_ch|24|ccs.8|76|ode>|.IP "--addnode )         (rof_IP|27|ccs.8|76||.IP "--addnode )         (rof_unit_scale_ch|24|ccs.8|78|ode>|.IP "--rmnode )         (rof_IP|27|ccs.8|78||.IP "--rmnode )         (rof_unit_scale_ch|22|ccs.8|80|d>|.IP "--nodeid )         (rof_IP|27|ccs.8|80||.IP "--nodeid )         (rof_unit_scale_ch|24|ccs.8|82|otes>|.IP "--votes )         (rof_IP|27|ccs.8|82||.IP "--votes )         (rof_IP|5|ccs.8|84|8|.IP "--addalt [alt options] )         (rof_IP|5|ccs.8|86|4|.IP "--rmalt )         (rof_IP|5|ccs.8|89|4|.IP "--lsfenceopts [fence type] )         (rof_unit_scale_ch|24|ccs.8|95|ode>]|.IP "--lsfenceinst [] )         (rof_IP|27|ccs.8|95|[]|.IP "--lsfenceinst [] )         (rof_IP|5|ccs.8|98|4|.IP "--addmethod )         (rof_IP|5|ccs.8|100|4|.IP "--rmmethod )         (rof_IP|5|ccs.8|102|7|.IP "--addfencedev [fence device options] )         (rof_IP|5|ccs.8|104|5|.IP "--rmfencedev )         (rof_IP|5|ccs.8|106|9|.IP "--addfenceinst [options] [--nounfence] )         (rof_IP|5|ccs.8|112|7|.IP "--rmfenceinst )         (rof_IP|5|ccs.8|115|7|.IP "--addunfenceinst [options] )         (rof_IP|5|ccs.8|117|6|.IP "--rmunfenceinst )         (rof_IP|5|ccs.8|124|6|.IP "--addfailoverdomain [restricted] [ordered] [nofailback] )         (rof_unit_scale_ch|24|ccs.8|126|e>|.IP "--rmfailoverdomain )         (rof_IP|27|ccs.8|126||.IP "--rmfailoverdomain )         (rof_IP|5|ccs.8|128|6|.IP "--addfailoverdomainnode [priority] )         (rof_IP|5|ccs.8|130|5|.IP "--rmfailoverdomainnode )         (rof_IP|5|ccs.8|133|4|.IP "--lsserviceopts [service type] )         (rof_IP|5|ccs.8|137|4|.IP "--lsresourceopts [service type] )         (rof_IP|5|ccs.8|142|7|.IP "--addresource [resource options] ... )         (rof_IP|5|ccs.8|147|6|.IP "--rmresource [resource options] )         (rof_IP|5|ccs.8|149|6|.IP "--addservice [service options] ... )         (rof_unit_scale_ch|24|ccs.8|151|ename>|.IP "--rmservice )         (rof_IP|27|ccs.8|151||.IP "--rmservice )         (rof_IP|5|ccs.8|153|5|.IP "--addaction )         (rof_IP|5|ccs.8|155|7|.IP "--rmaction [ [action options]] )         (rof_IP|5|ccs.8|157|8|.IP "--addvm [vm options] ... )         (rof_IP|5|ccs.8|159|5|.IP "--rmvm )         (rof_IP|5|ccs.8|161|7|.IP "--addsubservice [service options] ... )         (rof_IP|5|ccs.8|174|4|.IP "--rmsubservice )         (rof_IP|5|ccs.8|188|5|.IP "--setquorumd [quorumd options] ... )         (rof_IP|5|ccs.8|190|5|.IP "--addheuristic [heuristic options] ... )         (rof_IP|5|ccs.8|192|5|.IP "--rmheuristic [heuristic options] ... )         (rof_IP|5|ccs.8|197|4|.IP "--settotem [totem options] )         (rof_IP|5|ccs.8|199|4|.IP "--setuidgid uid= gid= )         (rof_IP|5|ccs.8|201|4|.IP "--rmuidgid uid= gid= )         (rof_IP|5|ccs.8|203|4|.IP "--setdlm [dlm options] )         (rof_IP|5|ccs.8|205|5|.IP "--setrm [resource manager options] )         (rof_IP|5|ccs.8|207|4|.IP "--setcman [cman options] )         (rof_IP|5|ccs.8|209|6|.IP "--setmulticast [multicast address] [multicast options] )         (rof_IP|5|ccs.8|212|8|.IP "--setaltmulticast [alt multicast address] [alt multicast options] )         (rof_IP|5|ccs.8|215|5|.IP "--setfencedaemon [fence daemon options] )         (rof_IP|5|ccs.8|217|4|.IP "--setlogging [logging options] )         (rof_IP|5|ccs.8|219|5|.IP "--addlogging [logging daemon options] )         (rof_IP|5|ccs.8|221|5|.IP "--rmlogging [logging daemon options] )