1834744 Members
2840 Online
110070 Solutions
New Discussion

modifying "vg00" name

 
Ramona Anghel_2
New Member

modifying "vg00" name

I had to upgrade root disks from one L2000 (9GB to 36GB). There were 2 mirrored disks. I made another vg, (vgroot) with the new disk. I made all things neccessary to boot from the new vg. I booted and all went OK. I exported the old vg00. Now I want to change "vgroot" name back to "vg00". I don't know how to do it. If you could give me some ideas it would be great.
6 REPLIES 6
Dietmar Konermann
Honored Contributor

Re: modifying "vg00" name

Hi, Ramona!

You need to boot to LVM Maintanance mode (hpux -lm from ISL). From there you export/import the root vg... procedure similar to this:

# vgexport -m mapfile -s vgroot

Then re-import it again:

# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0
# vgimport -m mapfile -s vg00

Just to be sure, reconfigure the label:

# vgchange -a y vg00
# lvlnboot -R vg00

Reboot.


Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
John Palmer
Honored Contributor

Re: modifying "vg00" name

Hi,

Two possibilities:-

1). Boot in LVM maintenance mode, export vgroot, import it as vg00, update lvlnboot etc + /etc/fstab.

2). Repeat your previous exercise i.e. drop one of your vgroot mirrors, create a new vg00 on that disk, boot off that. Then subsequently, get rid of vgroot and remirror.

Regards,
John
harry d brown jr
Honored Contributor

Re: modifying "vg00" name

OUCH. If it were anything other than vg00 (aka your vgroot)!!!

FIRST, do 2, thats TWO, make_tape_recovery's !!!

Second, shutdown and boot into single user mode.

third, from (http://aa11.cjb.net/hpux_admin/2001/05/0096.html)

> vgexport to a map file (see man page)
> mkdir /dev/newVgname
> mknod /dev/newVGname/group c 64 0x.....
> vgimport -m mapfile newVGname

And /etc/fstab would need to be updated by hand.

And of course you will probably need a vgscan.

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: modifying "vg00" name

ditto on the maintenance mode, not single user!

live free or die
harry
Live Free or Die
KapilRaj
Honored Contributor

Re: modifying "vg00" name

echo "Do u really need to change the VGName ?.Y/N"
read $KAPS
case $KAPS in
Y)--
Boot from the disk whose VG name u need to change
Break the auto boot
go to ISL
hpux -lm
vgexport -m "map" /dev/vgroot
mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x000000
vgimport -m "map" /dev/vg00 /dev/dsk/cXtXdX
lvlnboot -R
cat /etc/fstab /etc/fstab.YYMMDD.ii
cat /etc/fstab |sed s/vgroot/vg00/g > /etc/fstab.new
cp /etc/fstab.new /etc/fstab ;;

N)--
echo "Why a risk yea ?????" ;;
esac

Did i really ad somthing than others , yep i hv modified /etc/fstab which no one else had done

kaps
Nothing is impossible
Charles Akonnor
Advisor

Re: modifying "vg00" name

I think your approach to the whole issue is wrong.
This is what l think you should do.

1)take an ignite image of the old root disk to either tape or an ignite server if you have one.
2)Shutdown the server and replace the old 9GB drives with the new 36GB drive.

3)Restore your ignite image from the tape or ignite server. This install is more or less like a fresh install, and you can change the sizes o your vg00 filsystem if you like.

This is what l think will be the best thing to do.
Never give up.