VGRENAME(8)
β¨ VGRENAME(8) β¨
okay bestie, welcome to the System Manager's Manual page for vgrename β yes it's section 8, yes we're in the grown-up sysadmin section, and yes you're gonna slay this π
π NAME π
vgrename β Rename a volume group
π¦ SYNOPSIS π¦
vgrename position_args
[ option_args ]
πΈ DESCRIPTION πΈ
So like. vgrename renames a VG. That's it, that's the whole vibe. π
But here's the tea, and it's important tea: every VG visible to a system needs to have a different name, otherwise a whole bunch of LVM commands will just refuse to run, or they'll hit you with warning messages. Rude? Maybe. Necessary? Absolutely. π
When does the same-name situation even happen, you ask? Two ways, bestie:
- disks get moved between machines π§³
- filters get changed
And if a newly connected disk has a VG with the same name as the VG containing the root filesystem, the machine may not boot correctly. Not a vibe. Not the main character energy we want. π
So when two VGs have the same name, you can use the VG UUID in place of the source VG name. problem solved, periodt. β¨
π USAGE π
Rename a VG.
vgrename VG VG_new
[ COMMON_OPTIONS ]
β
Rename a VG by specifying the VG UUID.
vgrename String VG_new
[ COMMON_OPTIONS ]
β
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ... ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ... ]
[ -h|--help ]
[ -q|--quiet ... ]
[ -t|--test ]
[ -v|--verbose ... ]
[ -y|--yes ]
[ --commandprofile String ]
[ --config String ]
[ --devices PV ]
[ --devicesfile String ]
[ --driverloaded y|n ]
[ --journal String ]
[ --lockopt String ]
[ --longhelp ]
[ --nohints ]
[ --nolocking ]
[ --profile String ]
[ --version ]
π OPTIONS π
-A,--autobackup y|nβ tells you whether metadata should get backed up automatically after a change. Turning this ON is strongly advised!! like genuinely, don't skip it. Peepvgcfgbackup(8)for the full rundown. π«Ά--commandprofile Stringβ the command profile to use for command configuration.lvm.conf(5)has all the profile lore if you're curious. β¨--config Stringβ config settings for the command. These override the settings inlvm.conf(5). TheStringarg uses the exact same format aslvm.conf(5), or it can use section/field syntax. Again,lvm.conf(5)for the details. π-d,--debug ...β sets the debug level. Repeat it from 1 to 6 times to crank up the detail of messages sent to the log file and/or syslog (if that's configured). the more you repeat, the more it yaps π¬--devices PVβ restricts which devices are visible and accessible to the command. Devices you don't list will appear to be missing π». This option can be repeated, or it accepts a comma-separated list of devices. Heads up: this overrides the devices file.--devicesfile Stringβ a file listing the devices that LVM should use. The file has to exist in/etc/lvm/devices/and it's managed with thelvmdevices(8)command. This overrides thelvm.conf(5)devices/devicesfileanddevices/use_devicesfilesettings. ποΈ--driverloaded y|nβ if you set it to no, the command will not attempt to use device-mapper. For testing and debugging. π§ͺ-f,--force ...β overrides various checks, confirmations and protections. Use with extreme caution. like, extreme extreme. π¬-h,--helpβ displays help text.--journal Stringβ records information in the systemd journal. This info is in addition to whatever is enabled by thelvm.conflog/journalsetting. The values:command: record information about the command.output: record the default command output.debug: record full command debugging.
--lockopt Stringβ used to pass options for special cases tolvmlockd. Seelvmlockd(8)for more. π--longhelpβ displays long help text. (the deluxe version π)--nohintsβ do not use the hints file to locate devices for PVs. A command may read more devices to find PVs when hints are not being used. The command will still perform standard hint file invalidation where appropriate. π΅οΈ--nolockingβ disables locking. Use with caution β concurrent commands may produce incorrect results. π--profile Stringβ an alias for--commandprofileor--metadataprofile, depending on the command.-q,--quiet ...β suppresses output and log messages. Overrides--debugand--verbose. Repeat it once to also suppress any prompts with the answer'no'. π€«--reportformat basic|json|json_stdβ overrides the current output format for reports, which is normally defined globally by thereport/output_formatsetting inlvm.conf(5).basicis the original format with columns and rows. If there's more than one report per command, each report gets prefixed with the report name so you can tell them apart.jsonproduces report output in JSON format.json_stdproduces report output in JSON format that's more compliant with the JSON standard.
See lvmreport(7) for more. π
-t,--testβ run in test mode. Commands will not update metadata. This is implemented by disabling all metadata writing but nevertheless returning success to the calling function. This may lead to unusual error messages in multi-stage operations if a tool relies on reading back metadata it believes has changed but hasn't. π-v,--verbose ...β sets the verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr. π£οΈ--versionβ displays version information.-y,--yesβ do not prompt for confirmation interactively, but always assume the answer is yes. Use with extreme caution. (For automatic no, see-qq.) π
π VARIABLES π
VGβ Volume Group name. Seelvm(8)for valid names.Stringβ See the option description for information about the string content.Size[UNIT]β Size is an input number that accepts an optional unit. Input units are always treated as base two values, regardless of capitalization β so for example'k'and'K'both refer to 1024. The default input unit is specified by letter, followed by|UNIT.UNITrepresents the other possible input units:b|Bis bytess|Sis sectors of 512 bytesk|Kis KiBm|Mis MiBg|Gis GiBt|Tis TiBp|Pis PiBe|Eis EiB
(This should not be confused with the output control --units, where capital letters mean multiple of 1000.)
π§ ENVIRONMENT VARIABLES π§
See lvm(8) for the whole scoop on environment variables used by lvm. For example, LVM_VG_NAME can generally be substituted for a required VG parameter. iconic behaviour honestly π
β EXAMPLES β
Rename VG "vg02" to "myvg":
vgrename vg02 myvg
Rename the VG with the specified UUID to "myvg".
vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 myvg
π SEE ALSO π
lvm(8), lvm.conf(5), lvmconfig(8), lvmdevices(8),
pvchange(8), pvck(8), pvcreate(8), pvdisplay(8), pvmove(8), pvremove(8), pvresize(8), pvs(8), pvscan(8),
vgcfgbackup(8), vgcfgrestore(8), vgchange(8), vgck(8), vgcreate(8), vgconvert(8), vgdisplay(8), vgexport(8), vgextend(8), vgimport(8), vgimportclone(8), vgimportdevices(8), vgmerge(8), vgmknodes(8), vgreduce(8), vgremove(8), vgrename(8), vgs(8), vgscan(8), vgsplit(8),
lvcreate(8), lvchange(8), lvconvert(8), lvdisplay(8), lvextend(8), lvreduce(8), lvremove(8), lvrename(8), lvresize(8), lvs(8), lvscan(8),
lvm-fullreport(8), lvm-lvpoll(8), blkdeactivate(8), lvmdump(8),
dmeventd(8), lvmpolld(8), lvmlockd(8), lvmlockctl(8), lvmdbusd(8), fsadm(8),
lvmsystemid(7), lvmreport(7), lvmcache(7), lvmraid(7), lvmthin(7), lvmvdo(7), lvmautoactivation(7)
and that's the whole page bestie π«Ά brought to you by Red Hat, Inc., running LVM TOOLS 2.03.44(2), dated (2026-10-27) β vgrename(8), see you in the group chat πβ¨π
π¦ where this page comes from
- arch rolling: lvm2 2.03.44-1 Β· GPL-2.0-only AND LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms