4.4. Renaming LVM logical volumes
This procedure describes how to rename an existing logical volume mylv to mylv1.
Procédure
If the logical volume is currently mounted, unmount the volume:
umount /mnt
# umount /mntCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace /mnt with the mount point.
Rename an existing logical volume:
lvrename myvg mylv mylv1
# lvrename myvg mylv mylv1 Renamed "mylv" to "mylv1" in volume group "myvg"Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can also rename the logical volume by specifying the full paths to the devices:
lvrename /dev/myvg/mylv /dev/myvg/mylv1
# lvrename /dev/myvg/mylv /dev/myvg/mylv1Copy to Clipboard Copied! Toggle word wrap Toggle overflow