On Fri, 2008-05-02 at 17:04 -0400, Alfred von Campe wrote:
I'd like to rename my existing volume groups and logical volumes (I picked names a long time ago I no longer like :-). I recently stumbled across the lvrename and vgrename commands, but when I tried the former to rename the logical volume that my root partition resides on, the system became unbootable.
In addition to renaming the LV (and VG if I decide to to that as well), what else needs to be changed? So far my list includes:
o /etc/fstabb o /boot/grub/grub.conf o /dev/<vgname>/<lvnamex> o /dev/mapper/<vgname-lvnamex>
I was hoping the lvrename and/or vgrename would take care of these details. Are there any scripts out there that take care of all the details? If not, I may write one (once I have the recipe to get this working, of course).
Remake your initrd. In there is a reference to the volgroup/lvol that you will want to change. Or you can add and change the parameter to ignore check failures.
Then just the usual fstab, local scripts, etc.
Alfred
<snip sig stuff>
HTH