1752777 Members
6203 Online
108789 Solutions
New Discussion юеВ

Re: Renaming VG00

 
Sundar_7
Honored Contributor

Renaming VG00

I have a requirement to rename VG00 in an attempt to make the prod & dev environments consistent. On a nutshell this is how we have planned to achive this

1) Boot the system in maintenance mode
export VG00
import with the new name
establish BDRA links
fstab entries
/etc/lvmrc
reboot

2) or use ignite interactively to reinstall and change the vgname

The first method will save me lot of time. But not really sure if it will work . I have no means of trying it out. So I would appreciate if anyone of you can validate/amend my understanding.

Thanks,

Sundar
Learn What to do ,How to do and more importantly When to do ?
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: Renaming VG00

Your best bet, if you really must do this, is to go the Ignite route.

I have to ask the question though -- Why do you want to rename VG00? VG00 is the defacto standard for the boot VG in HP-UX. Yes you can have it as something else (I had a 10.20 machine that had vgboot) but I wouldn't recommend it.

Pete Randall
Outstanding Contributor

Re: Renaming VG00

Sundar,

Me too neither.

Which is to say - I agree wholeheartedly with Patrick. Why? You're just creating extra work for yourself. You say it's to make your prod & dev environments consistent. That implies, at least to me, that the "other" environment is mis-named and you're trying to change the wrong one!


Pete


Pete
Sundar_7
Honored Contributor

Re: Renaming VG00

Pat & Pete,

I understand this may sound like something unnecessary. But I live in an environment where the root vg name should be VGROOT, so called Standard Operating Environment :-).

Sundar.

Learn What to do ,How to do and more importantly When to do ?
Pete Randall
Outstanding Contributor

Re: Renaming VG00

Sundar,

OK, then - if you have to, you have to.

In that case, I would definitely go the Ignite route. You get a built in recovery mechanism just in case there are problems. With the LVM maintenance mode method, you really only have one try and it better be perfect.

Good luck,


Pete


Pete
Patrick Wallek
Honored Contributor

Re: Renaming VG00

Well, if that's the way it must be..... Go with Ignite. Create a couple of make_tape_recovery tape's, boot from them and have fun.

If you need to, this will also afford you the opportunity to resize any vg00 LV's, specifically / and /stand that may need some breathing room. If you are looking to upgrade any time in the future, it couldn't hurt.

Good luck.
Steven E. Protter
Exalted Contributor

Re: Renaming VG00

I'll back up the other two on the Ignite route.

I would however first give a cautionary message to management. If they ever need to have another HP-UX sysadmin do anything on that system, you are increasing your costs and liklihood of mistakes.

vg00 is a defact standard. To go to anything else makes you different than 99% of other HP-UX shops.

This change may make things easier inside your organization, but its a bad idea. Its bettter to run an OS in a way that is recognized by the greater user community.

Good Luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Adamson_1
Honored Contributor

Re: Renaming VG00

This can definitely be done using Ignite. Create your make_tape_recovery tape with the -I (interactive) option. Boot from the tape and get to the itool menu. There are 5 tabs here - Basic, Software, System, Filesystem and Advanced.

Select the Filesystem tab. Within that screen, select Additional Tasks. Within that screen select Group Parameters and change the Group Name field from vg00 to vgroot.

If you need more information, download the Ignite-UX Administration Guide from docs.hp.com. The version I have shows the details on page 91.

Good luck.


Tim
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Bernhard Mueller
Honored Contributor

Re: Renaming VG00

Sundar,

I fully support your opinion, option 1 does save you a lot of time, and it works. I have done exactly what you describe two times.

Once for an HP-UX 10.20 system and once on a 11.0 box. No problems both times.

I did, however, always create an Ignite tape before, in order to serve as a fallback option.

Regards,
Bernhard