1VGRENAME(8)                 System Manager's Manual                VGRENAME(8)
2
3
4

NAME

6       vgrename - Rename a volume group
7

SYNOPSIS

9       vgrename position_args
10           [ option_args ]
11

DESCRIPTION

13       vgrename renames a VG.
14
15       All  VGs  visible  to  a system need to have different names, otherwise
16       many LVM commands will refuse to run or give warning messages. VGs with
17       the  same name can occur when disks are moved between machines, or fil‐
18       ters are changed. If a newly connected disk has a VG with the same name
19       as the VG containing the root filesystem, the machine may not boot cor‐
20       rectly. When two VGs have the same name, the VG UUID  can  be  used  in
21       place of the source VG name.
22

USAGE

24       Rename a VG.
25
26       vgrename VG VG_new
27           [ COMMON_OPTIONS ]
28
29       Rename a VG by specifying the VG UUID.
30
31       vgrename String VG_new
32           [ COMMON_OPTIONS ]
33
34       Common options for command:
35           [ -A|--autobackup y|n ]
36           [ -f|--force ]
37           [    --reportformat basic|json ]
38
39       Common options for lvm:
40           [ -d|--debug ]
41           [ -h|--help ]
42           [ -q|--quiet ]
43           [ -t|--test ]
44           [ -v|--verbose ]
45           [ -y|--yes ]
46           [    --commandprofile String ]
47           [    --config String ]
48           [    --driverloaded y|n ]
49           [    --lockopt String ]
50           [    --longhelp ]
51           [    --nolocking ]
52           [    --profile String ]
53           [    --version ]
54

OPTIONS

56       -A|--autobackup y|n
57              Specifies if metadata should be backed up automatically after a
58              change.  Enabling this is strongly advised! See vgcfgbackup(8)
59              for more information.
60
61       --commandprofile String
62              The command profile to use for command configuration.  See
63              lvm.conf(5) for more information about profiles.
64
65       --config String
66              Config settings for the command. These override lvm.conf set‐
67              tings.  The String arg uses the same format as lvm.conf, or may
68              use section/field syntax.  See lvm.conf(5) for more information
69              about config.
70
71       -d|--debug ...
72              Set debug level. Repeat from 1 to 6 times to increase the detail
73              of messages sent to the log file and/or syslog (if configured).
74
75       --driverloaded y|n
76              If set to no, the command will not attempt to use device-mapper.
77              For testing and debugging.
78
79       -f|--force ...
80              Override various checks, confirmations and protections.  Use
81              with extreme caution.
82
83       -h|--help
84              Display help text.
85
86       --lockopt String
87              Used to pass options for special cases to lvmlockd.  See lvm‐
88              lockd(8) for more information.
89
90       --longhelp
91              Display long help text.
92
93       --nolocking
94              Disable locking.
95
96       --profile String
97              An alias for --commandprofile or --metadataprofile, depending on
98              the command.
99
100       -q|--quiet ...
101              Suppress output and log messages. Overrides --debug and --ver‐
102              bose.  Repeat once to also suppress any prompts with answer
103              'no'.
104
105       --reportformat basic|json
106              Overrides current output format for reports which is defined
107              globally by the report/output_format setting in lvm.conf.  basic
108              is the original format with columns and rows.  If there is more
109              than one report per command, each report is prefixed with the
110              report name for identification. json produces report output in
111              JSON format. See lvmreport(7) for more information.
112
113       -t|--test
114              Run in test mode. Commands will not update metadata.  This is
115              implemented by disabling all metadata writing but nevertheless
116              returning success to the calling function. This may lead to un‐
117              usual error messages in multi-stage operations if a tool relies
118              on reading back metadata it believes has changed but hasn't.
119
120       -v|--verbose ...
121              Set verbose level. Repeat from 1 to 4 times to increase the de‐
122              tail of messages sent to stdout and stderr.
123
124       --version
125              Display version information.
126
127       -y|--yes
128              Do not prompt for confirmation interactively but always assume
129              the answer yes. Use with extreme caution.  (For automatic no,
130              see -qq.)
131

VARIABLES

133       VG
134              Volume Group name.  See lvm(8) for valid names.
135
136       String
137              See the option description for information about the string con‐
138              tent.
139
140       Size[UNIT]
141              Size  is  an  input number that accepts an optional unit.  Input
142              units are always treated as base two values, regardless of capi‐
143              talization,  e.g.  'k'  and 'K' both refer to 1024.  The default
144              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
145              resents  other  possible  input units: bBsSkKmMgGtTpPeE.  b|B is
146              bytes, s|S is sectors of 512 bytes, k|K is KiB, m|M is MiB,  g|G
147              is GiB, t|T is TiB, p|P is PiB, e|E is EiB.  (This should not be
148              confused with the output control --units, where capital  letters
149              mean multiple of 1000.)
150

ENVIRONMENT VARIABLES

152       See  lvm(8)  for  information  about environment variables used by lvm.
153       For example, LVM_VG_NAME can generally be substituted for a required VG
154       parameter.
155

EXAMPLES

157       Rename VG "vg02" to "myvg":
158       vgrename vg02 myvg
159
160       Rename the VG with the specified UUID to "myvg".
161       vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 myvg
162

SEE ALSO

164       lvm(8) lvm.conf(5) lvmconfig(8)
165
166       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
167       pvresize(8) pvs(8) pvscan(8)
168
169       vgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8)  vgcreate(8)  vgcon‐
170       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
171       clone(8) vgmerge(8) vgmknodes(8)  vgreduce(8)  vgremove(8)  vgrename(8)
172       vgs(8) vgscan(8) vgsplit(8)
173
174       lvcreate(8)  lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8) lvre‐
175       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
176
177       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
178       vate(8) lvmdump(8)
179
180       dmeventd(8)  lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8) lvmd‐
181       busd(8)
182
183       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
184
185
186
187Red Hat, Inc.          LVM TOOLS 2.03.11(2) (2021-01-08)           VGRENAME(8)
Impressum