Operating System - Linux
1753359 Members
5728 Online
108792 Solutions
New Discussion юеВ

Re: How to rename a VG in RHEL 5.X

 
SOLVED
Go to solution
Benoy Daniel
Trusted Contributor

How to rename a VG in RHEL 5.X

Could you please let me know the steps to rename a VG in RHEL 5.X
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: How to rename a VG in RHEL 5.X

https://access.redhat.com/kb/docs/DOC-4119?language=/faq/community/en%253Bjsessionid%253D04BACEA6DE8AB92B041967710F780C23.a7e0bdf1

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Benoy Daniel
Trusted Contributor

Re: How to rename a VG in RHEL 5.X

The link is pointing to customer portal where i need to put username and password..
Ivan Ferreira
Honored Contributor
Solution

Re: How to rename a VG in RHEL 5.X

The following information has been provided by Red Hat, but is outside the scope of our posted Service Level Agreements ( https://www.redhat.com/support/service/sla/ ) and support procedures. The information is provided as-is and any configuration settings or installed applications made from the information in this article could make your Operating System unsupported by Red Hat Support Services. The intent of this article is to provide you with information to accomplish your system needs. Use the information in this article at your own risk.



Why is it required:

Due to application restrictions, changing the name of the existing Volume Groups is required.



Release found:

Red Hat Enterprise Linux 4



Resolution:



Follow the steps below to rename the Volume Group:



1.

Boot the system with installation disk one in rescue mode. Chroot the system by:


#chroot /mnt/sysimage


and then modify the /etc/fstab file and the /boot/grub/grub.conf file by replacing the old name of the Volume Group with the new one.
2.

Exit the environment with the "exit" command.
3.

Check for all the mounted partitions under /mnt/sysimage using the mount command. Now unmount all the mounted partitions shown up by mount.
4.

Run the following command on the command line:


#lvm vgrename


The output should be similar to "'vgrenamed successfully'.
5.

Now, rebuild the initial ramdisk. Please refer to following kbase article for it :
How do I rebuild the initial ramdisk image?
6.

Reboot the system.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?