Rename VolGoup00 with active VolGroup00

I have a Xen VM guest image with a lost root password. In order to get to /etc/passwd and /etc/shadow I need to mount the filesystems within the image with everything but /boot is in a LVM partition. The VM host also have an LVM image, and both (host and guest) are called VolGroup00. I want to change the name of the guest volume group to VolGroup01 while I am editing /etc/password, then change it back to VolGroup00 before booting the guest image.

Is this possible? If so, how?

The host is CentOS 5.7, and the guest is CentOS 5.5. Xen is version 3.1.2.

Thanks in advance,

Edward Hooper

I was able to work around the issue by copying the vm guest image file over to another machine that doesn't have a volume group named VolGroup00 and mounting the filesystem there. However, I still want to know how to rename a volume group in an image file if this option is not available.

:wall: