LVM and VxVM

Correct way to create root mirror and then split and boot alt on rp7410

 
Geoff Wild
Honored Contributor

Correct way to create root mirror and then split and boot alt on rp7410

Okay - this has got me.

11.11.

Steps to create mirror:

pvcreate -B /dev/rdsk/c20t5d0
vgextend /dev/vg00 /dev/dsk/c20t5d0
mkboot -l /dev/rdsk/c20t5d0
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c20t5d0

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c20t5d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c20t5d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c20t5d0
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -d /dev/vg00/lvol2
/usr/sbin/lvlnboot -R /dev/vg00

Then extend the rest:
for lv in $(< /home/gwild/vg00.lvols
do
lvextend -m 1 $lv /dev/dsk/c20t5d0
done

Then reduce the mirror:

for lv in `vgdisplay -v /dev/vg00 | grep "LV Name" | awk '{print $3}'`
do
lvreduce -m 0 $lv /dev/dsk/c20t5d0
done

vgreduce /dev/dsk/c20t5d0

I have tried doing a
lvlnboot -R /dev/vg00
after and not doing it - still can not boot alt:


Main Menu: Enter command or menu > bo alt

Alternate Boot Path: 0/0/0/3/0.5


Do you wish to stop at the ISL prompt prior to booting? (y/n) >> n

Initializing boot Device.


Boot IO Dependent Code (IODC) Revision 4


Boot Path Initialized.


HARD Booted.

ISL Revision A.00.43 Apr 12, 2000

ISL booting hpux -lq (;0)/vmunix

Boot
: disk(0/0/0/3/0.5.0.0.0.0.0;0)/vmunix
10366976 + 1949696 + 7731880 start 0x1fb9e8


gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: autofs_link(): File system was registered at index 3.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 6.
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/0/10/0/0
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 1/0/4/0/0
igelan0: INITIALIZING HP A6794-60001 PCI 1000Base-T at hardware path 0/0/8/0/0/4/0

System Console is on the Built-In Serial Interface
igelan2: INITIALIZING HP A6794-60001 PCI 1000Base-T at hardware path 1/0/1/0/0/4/0
Entering cifs_init...
Initialization finished successfully... slot is 9
WARNING: Logical volume for Dump expected but not found.
Swap device table: (start & size given in 512-byte blocks)
entry 0 - auto-configured on root device; start = 0, size = 71132960

linkstamp: Mon Oct 15 07:38:12 MDT 2007
_release_version: @(#) $Revision: vmunix: vw: -proj selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108' Wed Nov 8 19:24:56 PST 2000 $
panic: all VFS_MOUNTROOTs failed: NEED DRIVERS ?????

PC-Offset Stack Trace (read across, top of stack is 1st):
0x0020e2d8 0x00306388 0x00358bb4
0x0047806c 0x00358ea0 0x0017639c
0x001fbfe4
End Of Stack

I have done this on other systems and it works - doesn't seem to want to on this 7410...

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
3 REPLIES 3
Geoff Wild
Honored Contributor

Re: Correct way to create root mirror and then split and boot alt on rp7410

Okay - looks I got this working - by not doing the vgreduce command - alt now boots...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Torsten.
Acclaimed Contributor

Re: Correct way to create root mirror and then split and boot alt on rp7410

I'm not completely sure what the lvreduce command does, but if it removes the information written by lvlnboot, the system don't know where root, stand and swap is.
lvlnboot -R works only if lvlnboot -b is set (according to the man page).

You should consider to use lvsplit instead.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: Correct way to create root mirror and then split and boot alt on rp7410

Shalom,

I'd look at a system hardware problem causing this versus a procedural problem. Your procedure looks good to me.

Compare your procedure to this one to see if there are any differences.

http://www.hpux.ws/?p=21

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