[CentOS] Is it possible to lvrename the current root partition?

Alfred von Campe

alfred at von-campe.com
Fri May 2 21:04:51 UTC 2008


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




More information about the CentOS mailing list