Revision 57d0151e scripts/gnt-node
b/scripts/gnt-node | ||
---|---|---|
295 | 295 |
default=False, action="store_true", |
296 | 296 |
help="Readd old node after replacing it"), |
297 | 297 |
], |
298 |
"[-s ip] <node_name>", "Add a node to the cluster"),
|
|
298 |
"Add a node to the cluster"), |
|
299 | 299 |
'evacuate': (EvacuateNode, ARGS_FIXED(2), |
300 | 300 |
[DEBUG_OPT, FORCE_OPT], |
301 |
"[-f] <src> <dst>", |
|
302 | 301 |
"Relocate the secondary instances from the first node" |
303 | 302 |
" to the second one (only for instances of type remote_raid1" |
304 | 303 |
" drbd)"), |
... | ... | |
309 | 308 |
help="Ignore the consistency of the disks on" |
310 | 309 |
" the secondary"), |
311 | 310 |
], |
312 |
"[-f] <node>", |
|
313 | 311 |
"Stops the primary instances on a node and start them on their" |
314 | 312 |
" secondary node (only for instances of type remote_raid1)"), |
315 | 313 |
'info': (ShowNodeConfig, ARGS_ANY, [DEBUG_OPT], |
316 |
"[<node_name>...]", "Show information about the node(s)"),
|
|
314 |
"Show information about the node(s)"), |
|
317 | 315 |
'list': (ListNodes, ARGS_NONE, |
318 | 316 |
[DEBUG_OPT, NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT], |
319 |
"", "Lists the nodes in the cluster. The available fields"
|
|
317 |
"Lists the nodes in the cluster. The available fields" |
|
320 | 318 |
" are (see the man page for details): name, pinst_cnt, pinst_list," |
321 | 319 |
" sinst_cnt, sinst_list, pip, sip, dtotal, dfree, mtotal, mnode," |
322 | 320 |
" mfree, bootid, cpu_count. The default field list is" |
323 | 321 |
" (in order): %s." % ", ".join(_LIST_DEF_FIELDS), |
324 | 322 |
), |
325 | 323 |
'remove': (RemoveNode, ARGS_ONE, [DEBUG_OPT], |
326 |
"<node_name>", "Removes a node from the cluster"),
|
|
324 |
"Removes a node from the cluster"), |
|
327 | 325 |
'volumes': (ListVolumes, ARGS_ANY, |
328 | 326 |
[DEBUG_OPT, NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT], |
329 |
"[<node_name>...]", "List logical volumes on node(s)"),
|
|
327 |
"List logical volumes on node(s)"), |
|
330 | 328 |
'list-tags': (ListTags, ARGS_ONE, [DEBUG_OPT], |
331 |
"<node_name>", "List the tags of the given node"),
|
|
329 |
"List the tags of the given node"), |
|
332 | 330 |
'add-tags': (AddTags, ARGS_ATLEAST(1), [DEBUG_OPT, TAG_SRC_OPT], |
333 |
"<node_name> tag...", "Add tags to the given node"),
|
|
331 |
"Add tags to the given node"), |
|
334 | 332 |
'remove-tags': (RemoveTags, ARGS_ATLEAST(1), [DEBUG_OPT, TAG_SRC_OPT], |
335 |
"<node_name> tag...", "Remove tags from the given node"),
|
|
333 |
"Remove tags from the given node"), |
|
336 | 334 |
} |
337 | 335 |
|
338 | 336 |
|
Also available in: Unified diff