Is it possible to lvrename the current root partition?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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).

Alfred

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux