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

Joshua Gimer jgimer at gmail.com
Fri May 2 21:19:33 UTC 2008


I have never done this before, but I would think that the only thing  
that you would have to change would be fstab and your grub  
configuration. vgrename and lvrename did not recreate items under /dev?

Did you get the system booting or is this more of just a list for a  
script that you are planning to create?

Josh Gimer

On May 2, 2008, at 3:04 PM, 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).
>
> Alfred
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos




More information about the CentOS mailing list