1846992 Members
3294 Online
110257 Solutions
New Discussion

Re: alternate boot disk

 
p7
Frequent Advisor

alternate boot disk

hi

i built an alternate disk to boot off of, called it vgtest cpiod the old stuff, boots fine. one problem: now instead of vg00 its vgtest. anyone have a technique to make it
go from vgtest to vg00.

thx
7 REPLIES 7
Tom Danzig
Honored Contributor

Re: alternate boot disk

In a word ... you can't. The proper way to make an alternate boot disk is with MirrorDisk/HX. It is extra cost, however, it is well worth it on production systems.

The steps to mak one with this method (assuming /dev/dsk/c8t6d0 is the extra disk) is:

pvcreate -f -B /dev/rdsk/c8t6d0
vgextend /dev/vg00 /dev/dsk/c8t6d0
mkboot /dev/rdsk/c8t6d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c8t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c8t6d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -R /dev/vg00
p7
Frequent Advisor

Re: alternate boot disk

ok thx
Todd McDaniel_1
Honored Contributor

Re: alternate boot disk

You really dont have to do anything you can umount it and deactivate it and keep it for a spare boot disk.

My company is now using a technique called Broot where we have a spare disk basically a dd of the vg00 disk...

However, I believe YOU are looking to have a Mirrored boot disk since you refer to it as an alternate.

AS stated if you want a mirror of your root you will have to blow it away...

IF however, you want an alternate disk you are fine...

IF you want to test it reboot, and stop at the ISL prompt then type "sea". It will show you all bootable disks...

It should show your disk...

You need to let us know your intention. Do you want to want a MIRROR of root OR an ALTERNATE bootable disk..

IF it is the latter then you are set!!

Unix, the other white meat.
p7
Frequent Advisor

Re: alternate boot disk

hi

what i was doing was for testing an 11.0 to 11i upgrade (i have mirroring but it was easier to do it this way: pcreate,mkboot,vgextend,vgcreate,newfs,mount,cpio (ex:cd /opt, find . -xdev -depth -print|cpio -pmludx /bk_opt &, etc,lvlnboot.

then i booted the new disk (ex:vgtest) i updated this disk to 11i all good so far.

i wanted to keep the old disk on 11.0 just in case. the only thing was on the new disk disk instead of vg00 i now have vgtest:
(ex: bdf
/dev/vgtest/lvol3 1000 1000 77% /
/dev/vgtest/lvol1 11 11 10% /stand

everything works perfectly! just wanted to see if i could make vgest say vg00. i know
its unsuported - just easier for me this way.

thx again
Patrick Wallek
Honored Contributor

Re: alternate boot disk

Have a look at Doc ID KBAN00000075 from the Knowledge Base.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062683936

It gives details on how to rename a VG, even your boot VG if you need to. Note that for your boot VG (vgtest in your case) you must first boot into LVM Maintenance mode (hpux -lm).
p7
Frequent Advisor

Re: alternate boot disk

thx much
p7
Frequent Advisor

Re: alternate boot disk

thx for the docs it worked fine