Revision 40167d65
b/lib/client/gnt_cluster.py | ||
---|---|---|
456 | 456 |
simulate = opts.simulate_errors |
457 | 457 |
skip_checks = [] |
458 | 458 |
|
459 |
# Verify cluster config. |
|
460 |
op = opcodes.OpClusterVerifyConfig(verbose=opts.verbose, |
|
461 |
error_codes=opts.error_codes, |
|
462 |
debug_simulate_errors=simulate) |
|
459 |
if opts.nodegroup is None: |
|
460 |
# Verify cluster config. |
|
461 |
op = opcodes.OpClusterVerifyConfig(verbose=opts.verbose, |
|
462 |
error_codes=opts.error_codes, |
|
463 |
debug_simulate_errors=simulate) |
|
463 | 464 |
|
464 |
success, all_groups = SubmitOpCode(op, opts=opts) |
|
465 |
success, all_groups = SubmitOpCode(op, opts=opts) |
|
466 |
else: |
|
467 |
success = True |
|
468 |
all_groups = [opts.nodegroup] |
|
465 | 469 |
|
466 | 470 |
if opts.skip_nplusone_mem: |
467 | 471 |
skip_checks.append(constants.VERIFY_NPLUSONE_MEM) |
... | ... | |
1259 | 1263 |
'verify': ( |
1260 | 1264 |
VerifyCluster, ARGS_NONE, |
1261 | 1265 |
[VERBOSE_OPT, DEBUG_SIMERR_OPT, ERROR_CODES_OPT, NONPLUS1_OPT, |
1262 |
DRY_RUN_OPT, PRIORITY_OPT], |
|
1266 |
DRY_RUN_OPT, PRIORITY_OPT, NODEGROUP_OPT],
|
|
1263 | 1267 |
"", "Does a check on the cluster configuration"), |
1264 | 1268 |
'verify-disks': ( |
1265 | 1269 |
VerifyDisks, ARGS_NONE, [PRIORITY_OPT], |
b/man/gnt-cluster.rst | ||
---|---|---|
579 | 579 |
VERIFY |
580 | 580 |
~~~~~~ |
581 | 581 |
|
582 |
**verify** [--no-nplus1-mem] |
|
582 |
**verify** [--no-nplus1-mem] [--node-group *nodegroup*]
|
|
583 | 583 |
|
584 | 584 |
Verify correctness of cluster configuration. This is safe with |
585 | 585 |
respect to running instances, and incurs no downtime of the |
... | ... | |
589 | 589 |
whether if it loses a node it can restart all the instances on |
590 | 590 |
their secondaries (and report an error otherwise). |
591 | 591 |
|
592 |
With ``--node-group``, restrict the verification to those nodes and |
|
593 |
instances that live in the named group. This will not verify global |
|
594 |
settings, but will allow to perform verification of a group while other |
|
595 |
operations are ongoing in other groups. |
|
596 |
|
|
592 | 597 |
VERIFY-DISKS |
593 | 598 |
~~~~~~~~~~~~ |
594 | 599 |
|
Also available in: Unified diff