From 04367e70ad71eea3f0f19e7889dc68fb9783c98a Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Fri, 29 Oct 2010 11:42:11 +0100 Subject: [PATCH] Drop the -g shortcut for --vg-name Changing the volume group is a lot less frequent than acting on a node group. As such we drop the "-g" shortcut and require the long option to be passed. In 2.3 the commands which used to accept the volume group as "-g" won't have any node group option, so no confusion will arise. Later on we may pass "-g" as the initial node group name to gnt-cluster init, although that's not strictly necessary, as modifying it later is always possible. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/cli.py | 2 +- man/gnt-cluster.sgml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cli.py b/lib/cli.py index 32e1a0fb4..eceebe098 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -902,7 +902,7 @@ CP_SIZE_OPT = cli_option("-C", "--candidate-pool-size", default=None, dest="candidate_pool_size", type="int", help="Set the candidate pool size") -VG_NAME_OPT = cli_option("-g", "--vg-name", dest="vg_name", +VG_NAME_OPT = cli_option("--vg-name", dest="vg_name", help="Enables LVM and specifies the volume group" " name (cluster-wide) for disk allocation [xenvg]", metavar="VG", default=None) diff --git a/man/gnt-cluster.sgml b/man/gnt-cluster.sgml index c1a8bb1a3..53e948373 100644 --- a/man/gnt-cluster.sgml +++ b/man/gnt-cluster.sgml @@ -226,7 +226,7 @@ <sbr> <arg>-s <replaceable>secondary_ip</replaceable></arg> <sbr> - <arg>-g <replaceable>vg-name</replaceable></arg> + <arg>--vg-name <replaceable>vg-name</replaceable></arg> <sbr> <arg>--master-netdev <replaceable>interface-name</replaceable></arg> <sbr> @@ -298,7 +298,7 @@ </para> <para> - The <option>-g</option> option will let you specify a volume group + The <option>--vg-name</option> option will let you specify a volume group different than "xenvg" for Ganeti to use when creating instance disks. This volume group must have the same name on all nodes. Once the cluster is initialized this can be altered by using the @@ -635,7 +635,7 @@ <cmdsynopsis> <command>modify</command> <sbr> - <arg choice="opt">-g <replaceable>vg-name</replaceable></arg> + <arg choice="opt">--vg-name <replaceable>vg-name</replaceable></arg> <sbr> <arg choice="opt">--no-lvm-storage</arg> <sbr> @@ -672,7 +672,7 @@ </para> <para> - The <option>-g</option>, <option>--no-lvm-storarge</option>, + The <option>--vg-name</option>, <option>--no-lvm-storarge</option>, <option>--enabled-hypervisors</option>, <option>--hypervisor-parameters</option>, <option>--backend-parameters</option>, -- GitLab