2008-10-08 16:50:13 +04:00
.TH VGRENAME 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-01-04 23:35:19 +03:00
.SH NAME
2014-06-11 13:06:30 +04:00
vgrename \(em rename a volume group
2002-01-04 23:35:19 +03:00
.SH SYNOPSIS
.B vgrename
2012-04-11 16:42:10 +04:00
.RB [ \- A | \- \- autobackup
.RI { y | n }]
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2012-04-11 16:42:10 +04:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- ? | \- \- help ]
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
2007-05-22 06:51:33 +04:00
.IR OldVolumeGroup { Path | Name | UUID }
.IR NewVolumeGroup { Path | Name }
2002-01-04 23:35:19 +03:00
.SH DESCRIPTION
vgrename renames an existing (see
2012-04-11 16:42:10 +04:00
.BR vgcreate (8))
volume group from
2007-05-22 06:51:33 +04:00
.IR OldVolumeGroup { Name | Path | UUID }
to
.IR NewVolumeGroup { Name | Path }.
2007-06-16 00:46:04 +04:00
All the Volume Groups visible to a system need to have different
names. Otherwise many LVM2 commands will refuse to run or give
warning messages.
This situation could arise when disks are moved between machines. If
a disk is connected and it contains a Volume Group with the same name
as the Volume Group containing your root filesystem the machine might
not even boot correctly. However, the two Volume Groups should have
different UUIDs (unless the disk was cloned) so you can rename
one of the conflicting Volume Groups with
\fB vgrename\fP .
2012-04-11 16:42:10 +04:00
.SH OPTIONS
See \fB lvm\fP (8) for common options.
.SH Examples
Renames existing volume group vg02 to my_volume_group:
.sp
.B vgrename /dev/vg02 /dev/my_volume_group
or
.sp
.B vgrename vg02 my_volume_group
Changes the name of the Volume Group with UUID
.br
Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 to VolGroup00_tmp:
.sp
2014-06-11 13:06:30 +04:00
.B vgrename Zvlifi\-Ep3t\-e0Ng\-U42h\-o0ye\-KHu1\-nl7Ns4 VolGroup00_tmp
2012-04-11 16:42:10 +04:00
2002-01-04 23:35:19 +03:00
.SH SEE ALSO
2008-10-08 16:50:13 +04:00
.BR lvm (8),
.BR vgchange (8),
.BR vgcreate (8),
2002-01-04 23:35:19 +03:00
.BR lvrename (8)