1CCS(8)                      System Manager's Manual                     CCS(8)
2
3
4

NAME

6       ccs - Cluster Configuration System
7

SYNOPSIS

9       ccs [-h hostname | -f filename] [options]
10

DESCRIPTION

12       ccs  allows  an administrator to create, modify and view a cluster con‐
13       figuration file on a remote node through ricci or on a local file  sys‐
14       tem.  Using  ccs  an  administrator can also start and stop the cluster
15       services on one or all of the nodes in a configured cluster.
16

OPTIONS

18       Generally all command lines must specify either a hostname or  filename
19       to act upon.
20
21   MAIN OPTIONS
22       --help Display this help and exit
23
24       -h, --host host
25              Cluster node to perform actions on
26
27       -f, --file file
28              File to perform actions on
29
30       -p, --password
31              Ricci user password for node running ricci
32
33       --getconf
34              Print current cluster.conf file
35
36       --setconf
37              Use  the  file  specified  by '-f' to send to the host specified
38              with '-h'
39
40       --checkconf
41              If file is specified, verify that all the nodes in the file have
42              the  same cluster.conf as the file.  If a host is specified then
43              verify that all nodes in the host's cluster.conf file  have  the
44              identical
45
46       --sync Sync config file to all nodes
47
48       --activate
49              Activate config on node (use this option with --sync to activate
50              config on all nodes)
51
52       --debug
53              Display debugging information to  help  troubleshoot  connection
54              issues with ricci
55
56       --exp tag [location] [options]
57              Expert mode to add elements not currently defined in ccs
58
59       --exprm location
60              Expert mode to remove elements not currently defined in ccs
61
62   CLUSTER OPERATIONS
63       --createcluster cluster
64              Create a new cluster.conf (removing old one if it exists)
65
66       --getversion
67              Get the current cluster.conf version
68
69       --setversion <n>
70              Set the cluster.conf version
71
72       --incversion
73              Increment  the cluster.conf version by 1 scp and put them in the
74              current directory
75
76       --startall
77              Start cluster services on all nodes
78
79       --stopall
80              Stop cluster services on all nodes
81
82       --start
83              Start cluster services on host specified with -h
84
85       --stop Stop cluster services on host specified with -h
86
87   NODE OPERATIONS
88       --lsnodes
89              List all nodes in the cluster
90
91       --addnode <node>
92              Add node <node> to the cluster
93
94       --rmnode <node>
95              Remove a node from the cluster
96
97       --nodeid <nodeid>
98              Specify nodeid when adding a node
99
100       --votes <votes>
101              Specify number of votes for a node
102
103   FENCING OPERATIONS
104       --lsfencedev
105              List all of the fence devices configured
106
107       --lsfenceinst [<node>]
108              List all of the fence methods and  instances  on  the  specified
109              node or all nodes if no node is specified
110
111       --addmethod <method> <node>
112              Add a fence method to a specific node
113
114       --rmmethod <method> <node>
115              Remove a fence method from a specific node
116
117       --addfencedev <device name> [fence device options]
118              Add fence device
119
120       --rmfencedev <fence device name>
121              Remove fence device
122
123       --addfenceinst <fence device name> <node> <method> <options>
124              Add fence instance
125
126       --rmfenceinst <fence device name> <node> <method>
127              Remove  all  instances of the fence device listed from the given
128              method and node
129
130   FAILOVER DOMAIN OPERATIONS
131       --lsfailoverdomain
132              Lists all of the failover domains and failover domain nodes con‐
133              figured in the cluster
134
135       --addfailoverdomain <name> [restricted] [ordered] [nofailback]
136              Add failover domain
137
138       --rmfailoverdomain <name>
139              Remove failover domain
140
141       --addfailoverdomainnode <failover domain> <node> [priority=xx]
142              Add node to given failover domain
143
144       --rmfailoverdomainnode <failover domain> <node>
145              Remove node from failover domain
146
147   SERVICE OPERATIONS
148       --lsservices
149              List currently configured services and resources in the cluster
150
151       --addresource <resource type> [resource options] ...
152              Add resources to the cluster
153
154       --rmresource <resource type> [resource options]
155              Remove specified resource with resource options
156
157       --addservice <servicename> [service options] ...
158              Add service to cluster
159
160       --rmservice <servicename>
161              Removes a service and all of its subservices
162
163       --addsubservice <servicename> <subservice> [service options] ...
164              Add  individual  sub services, if adding services within a tree,
165              use ':' to separate elements and brackets  to  identify  subser‐
166              vices of the same type.
167              Example: --addsubservice service_a nfs[1]:nfs[2]:nfs
168
169       --rmsubservice <servicename> <subservice>
170              Removes a specific subservice specified by the subservice, using
171              ':' to separate elements and brackets to identify  between  sub‐
172              services of the same type.
173
174   QUORUM OPERATIONS
175       --lsquorum
176              List quorum options and heuristics
177
178       --setquorumd [quorumd options] ...
179              Add quorumd options
180
181       --addheuristic [heuristic options] ...
182              Add heuristics to quorumd
183
184       --rmheuristic [heuristic options] ...
185              Remove heuristic specified by heurstic options
186
187   MISC OPTIONS
188       --lsmisc
189              List all of the misc options
190
191       --settotem [totem options]
192              Set totem options
193
194       --setdlm [dlm options]
195              Set dlm options
196
197       --setrm [resource manager options]
198              Set resource manager options
199
200       --setcman [cman options]
201              Set cman options
202
203       --setmulticast [multicast address]
204              Set's  the  multicast address to use (or removes it if no multi‐
205              cast address is given)
206
207       --setfencedaemon [fence daemon options]
208              Set fence daemon options
209
210       --setlogging [logging options]
211              Set logging options
212
213       --addlogger [logger options]
214              Add a logger
215
216       --rmlogger [logger options]
217              Remove a logger
218

FILES

220       ~/.ccs/cacert.config ~/.ccs/cacert.pem ~/.ccs/privkey.pem
221              Automatically generated certificate files used  to  authenticate
222              with ricci.
223

EXAMPLES

225       Create and start a 3 node cluster with apc fencing:
226       ccs -h host1 --createcluster mycluster
227       ccs -h host1 --addnode host1
228       ccs -h host1 --addnode host2
229       ccs -h host1 --addnode host3
230       ccs -h host1 --addmethod primary host1
231       ccs -h host1 --addmethod primary host2
232       ccs -h host1 --addmethod primary host3
233       ccs -h host1 --addfencedev myfence ipaddr=192.168.0.200 login=apc pass‐
234       word=apc
235       ccs -h host1 --addfenceinst myfence host1 primary port=1
236       ccs -h host1 --addfenceinst myfence host2 primary port=2
237       ccs -h host1 --addfenceinst myfence host3 primary port=3
238       ccs -h host1 --sync --activate
239       ccs -h host1 --startall
240
241

AUTHOR

243       Chris Feist <cfeist@redhat.com>
244

SEE ALSO

246       ricci(8), cluster.conf(5), ccs_tool(8)
247
248
249
250                                                                        CCS(8)
Impressum