Revision 235407ba
b/lib/cli.py | ||
---|---|---|
665 | 665 |
help="Don't wait for sync (DANGEROUS!)") |
666 | 666 |
|
667 | 667 |
DISK_TEMPLATE_OPT = cli_option("-t", "--disk-template", dest="disk_template", |
668 |
help="Custom disk setup (diskless, file,"
|
|
669 |
" plain or drbd)",
|
|
668 |
help=("Custom disk setup (%s)" %
|
|
669 |
utils.CommaJoin(constants.DISK_TEMPLATES)),
|
|
670 | 670 |
default=None, metavar="TEMPL", |
671 | 671 |
choices=list(constants.DISK_TEMPLATES)) |
672 | 672 |
|
... | ... | |
866 | 866 |
ON_PRIMARY_OPT = cli_option("-p", "--on-primary", dest="on_primary", |
867 | 867 |
default=False, action="store_true", |
868 | 868 |
help="Replace the disk(s) on the primary" |
869 |
" node (only for the drbd template)") |
|
869 |
" node (applies only to internally mirrored" |
|
870 |
" disk templates, e.g. %s)" % |
|
871 |
utils.CommaJoin(constants.DTS_INT_MIRROR)) |
|
870 | 872 |
|
871 | 873 |
ON_SECONDARY_OPT = cli_option("-s", "--on-secondary", dest="on_secondary", |
872 | 874 |
default=False, action="store_true", |
873 | 875 |
help="Replace the disk(s) on the secondary" |
874 |
" node (only for the drbd template)") |
|
876 |
" node (applies only to internally mirrored" |
|
877 |
" disk templates, e.g. %s)" % |
|
878 |
utils.CommaJoin(constants.DTS_INT_MIRROR)) |
|
875 | 879 |
|
876 | 880 |
AUTO_PROMOTE_OPT = cli_option("--auto-promote", dest="auto_promote", |
877 | 881 |
default=False, action="store_true", |
... | ... | |
881 | 885 |
AUTO_REPLACE_OPT = cli_option("-a", "--auto", dest="auto", |
882 | 886 |
default=False, action="store_true", |
883 | 887 |
help="Automatically replace faulty disks" |
884 |
" (only for the drbd template)") |
|
888 |
" (applies only to internally mirrored" |
|
889 |
" disk templates, e.g. %s)" % |
|
890 |
utils.CommaJoin(constants.DTS_INT_MIRROR)) |
|
885 | 891 |
|
886 | 892 |
IGNORE_SIZE_OPT = cli_option("--ignore-size", dest="ignore_size", |
887 | 893 |
default=False, action="store_true", |
Also available in: Unified diff