cancel
Showing results for 
Search instead for 
Did you mean: 

Root drive mirror question

 
SOLVED
Go to solution
Jerry L. Sims
Frequent Advisor

Root drive mirror question

***************************
HP-UX B.11.11 9000/800/N4000-75
***************************
Hello All,

Just wanted to your opinions on how my "/dev/vg00" primary drive (c1t6d0) has been
mirrored to drive (c2t6d0). Does all look ok?
I noticed the "/stand/bootconf" only has the primary drive (c1t6d0) added, and the "lifcp"
command shows the filename "PAD". I believe the "PAD" came from a "mkboot" command I had in a mirror script. Does all look ok to you?
*********************************************

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t6d0 (0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/2/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t6d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c1t6d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c1t6d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c1t6d0, 0

it-hp36 [/stand]# cat /stand/bootconf
l /dev/dsk/c1t6d0
it-hp36 [/stand]#
it-hp36 [/stand]# lifcp /dev/rdsk/c1t6d0:AUTO -
hpux
it-hp36 [/stand]# lifcp /dev/rdsk/c2t6d0:AUTO -
hpux -lq
it-hp36 [/stand]# lifls -l /dev/dsk/c1t6d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ODE -12960 584 880 0 04/05/13 13:12:43
MAPFILE -12277 1464 128 0 04/05/13 13:12:43
SYSLIB -12280 1592 354 0 04/05/13 13:12:43
CONFIGDATA -12278 1952 254 0 04/05/13 13:12:43
SLMOD2 -12276 2208 142 0 04/05/13 13:12:43
SLDEV2 -12276 2352 156 0 04/05/13 13:12:43
SLDRV2 -12276 2512 744 0 04/05/13 13:12:43
SLSCSI2 -12276 3256 121 0 04/05/13 13:12:43
MAPPER2 -12279 3384 146 0 04/05/13 13:12:43
IOTEST2 -12279 3536 880 0 04/05/13 13:12:43
PERFVER2 -12279 4416 126 0 04/05/13 13:12:43
PVCU -12801 4544 64 0 04/05/13 13:12:43
SSINFO -12286 4608 2 0 04/05/13 13:12:43
HPUX -12928 4616 848 0 02/05/10 16:25:44
ISL -12800 5464 306 0 00/11/08 20:49:59
AUTO -12289 5776 1 0 04/05/25 09:19:40
LABEL BIN 5784 8 0 03/12/12 12:05:53
it-hp36 [/stand]# lifls -l /dev/dsk/c2t6d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ODE -12960 584 880 0 03/10/15 11:53:05
MAPFILE -12277 1464 128 0 03/10/15 11:53:05
SYSLIB -12280 1592 353 0 03/10/15 11:53:05
CONFIGDATA -12278 1952 250 0 03/10/15 11:53:05
SLMOD2 -12276 2208 141 0 03/10/15 11:53:05
SLDEV2 -12276 2352 157 0 03/10/15 11:53:05
SLDRV2 -12276 2512 689 0 03/10/15 11:53:05
SLSCSI2 -12276 3208 121 0 03/10/15 11:53:05
MAPPER2 -12279 3336 145 0 03/10/15 11:53:05
IOTEST2 -12279 3488 877 0 03/10/15 11:53:05
PERFVER2 -12279 4368 126 0 03/10/15 11:53:05
PVCU -12801 4496 64 0 03/10/15 11:53:05
SSINFO -12286 4560 2 0 03/10/15 11:53:05
ISL -12800 4568 306 0 02/05/10 16:25:44
AUTO -12289 4880 1 0 02/05/10 16:25:44
HPUX -12928 4888 848 0 02/05/10 16:25:44
PAD -12290 5736 1580 0 02/05/10 16:25:45
LABEL BIN 7320 8 0 04/06/08 09:02:44
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: Root drive mirror question

You still need to add the additional disk to the /stand/bootconf file.

The PAD on the secondary disk looks ok, the same as mine. The rest should be ok. Also check that both disks are listed in 'setboot -v'
Anyone for a Mutiny ?
Sundar_7
Honored Contributor

Re: Root drive mirror question

If you just add your mirror disk to /stand/bootconf file, I think you should be good.

PAD is just a space filler. So dont worry about that file missing from the lif volume.

Otherwise, the above output looks OK to me.
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: Root drive mirror question

I'm providing a complete guide in case you missed something else.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

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