Hi all,
How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use.
eg: Renaming dev/vgov to dev/ov-dg ?
Hi all,
How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use.
eg: Renaming dev/vgov to dev/ov-dg ?
The easiest would be an export / import of the VG...(man vgexport/vgimport...)
This should rename the lvols. Once you do that then you can use vgexport and rename the VG's with a map file. Best to try this on a test VG first.
Can i rename the group first and then the lvols?
I don't see any reason why not. Do it on a test VG before you try it on a production one.
Well yes you can!!! Follow the below and that's it to change vg and lv as well..
Export the VG:
Rename the VG directory, edit LV names, and re-import:
-You're done!
Please let us know if you find any issues!
-DB
THanks,
Did exactly as u mentioned-
First renamed the lvols,using umount, mv and then modified /etc/fstab, then mount -a
THen modified the group as explained.