Revision 60975797 scripts/gnt-cluster
b/scripts/gnt-cluster | ||
---|---|---|
409 | 409 |
return retcode |
410 | 410 |
|
411 | 411 |
|
412 |
def RepairDiskSizes(opts, args): |
|
413 |
"""Verify sizes of cluster disks. |
|
414 |
|
|
415 |
@param opts: the command line options selected by the user |
|
416 |
@type args: list |
|
417 |
@param args: optional list of instances to restrict check to |
|
418 |
@rtype: int |
|
419 |
@return: the desired exit code |
|
420 |
|
|
421 |
""" |
|
422 |
op = opcodes.OpRepairDiskSizes(instances=args) |
|
423 |
SubmitOpCode(op) |
|
424 |
|
|
425 |
|
|
412 | 426 |
@UsesRPC |
413 | 427 |
def MasterFailover(opts, args): |
414 | 428 |
"""Failover the master node. |
... | ... | |
621 | 635 |
"", "Does a check on the cluster configuration"), |
622 | 636 |
'verify-disks': (VerifyDisks, ARGS_NONE, [DEBUG_OPT], |
623 | 637 |
"", "Does a check on the cluster disk status"), |
638 |
'repair-disk-sizes': (RepairDiskSizes, ARGS_ANY, [DEBUG_OPT], |
|
639 |
"", "Updates mismatches in recorded disk sizes"), |
|
624 | 640 |
'masterfailover': (MasterFailover, ARGS_NONE, [DEBUG_OPT, |
625 | 641 |
make_option("--no-voting", dest="no_voting", |
626 | 642 |
help="Skip node agreement check (dangerous)", |
Also available in: Unified diff