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
Replace /mnt with the mount point.
Rename an existing logical volume:
# lvrename myvg mylv mylv1 Renamed "mylv" to "mylv1" in volume group "myvg"
You can also rename the logical volume by specifying the full paths to the devices:
# lvrename /dev/myvg/mylv /dev/myvg/mylv1
Ressources supplémentaires
-
lvrename(8)
man page