If you have already created your logical volume and you forgot to give it a proper name, you don’t have to delete it and create it again. Using the lvrename command, you can change the name of a logical partition:
# lvrename /dev/vg_group01/new_lv_name /dev/vg_group01/old_lv_name Renamed "old_lv_name" to "new_lv_name" in volume group "vg_group01"
Verify with the following command:
# lvdisplay vg_group01 -- Logical volume -- LV Name /dev/vg_group01/new_lv_name VG Name vg_group01 LV UUID mk9dJM-3qt7-ypbC-nsks-I8Gh-9V3d-4BNE6s LV Write Access read/write LV Status available # open 0 LV Size 2.93 GiB Current LE 750 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2
lvrename Command Examples
1. To rename a logical volume:
# lvrename /dev/VG00/LV00 /dev/VG00/LV-01 # lvrename VG00 LV00 LV01
2. To disable udev synchronisation:
# lvrename --noudevsync