1833682 Members
4667 Online
110062 Solutions
New Discussion

Mirror boot disk

 
j773303
Super Advisor

Mirror boot disk

I was created a mirror boot disk. I using lvdisplay -v /dev/vg00/lvol1 and lvol2 and lvol3, mirror copy is 1 and data are located on these 2 disks. It looks fine.but why lvolnboot -v doesn't show the correct message.
Deos anyone knows why /dev/dsk/c2t2d0 doesn't shows --Boot.


s1:/etc#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0
Hero
13 REPLIES 13
KapilRaj
Honored Contributor

Re: Mirror boot disk

U have to set them

lvlnboot -r
lvlnboot -b
lvlnboot -s
lvlnboot -d
lvlnboot -R


then

check by lvlnboot -v

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: Mirror boot disk

I hope u have done mkboot (Making the second disk bootable)

Kaps
Nothing is impossible
Sunil Sharma_1
Honored Contributor

Re: Mirror boot disk

Have you done pvcreate -B before adding disk into volume group vg00 ?


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Naveej.K.A
Honored Contributor

Re: Mirror boot disk

hi,

should have been pvcreated with the -b option.

when you do create a PV with the -b option, the BDRA is created by whcih the PV is recognised as bootable.

with best wishes
Naveej
practice makes a man perfect!!!
j773303
Super Advisor

Re: Mirror boot disk

Following are my configu steps. Does it wrong on which step? Why lvlnboot -v doesn't show /dev/dsk/c2t2d0 (0/0/2/0.2.0)--Boot disk


pvcreate -B /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
mkboot /dev/dsk/c2t2d0
mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
mkboot -a "hpux -lq" /dev/rdsk/c1t2d0
lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3
setboot -a 0/2.6.0
Hero
KapilRaj
Honored Contributor

Re: Mirror boot disk

u did not "lvlnboot" ? thats the only error i can see

Kaps
Nothing is impossible
Krishnan Viswanathan
Frequent Advisor

Re: Mirror boot disk

The c2t2d0 disk needs to be made as bootable disk. Follow the following steps.

First you will need to "lvreduce" on each lvol to remove the mirror on c2t2d0, then do "vgreduce" and remove the c2t2d0 disk.

Start with "pvcreate -B /dev/rdsk/c2t2d0" first.
Then execute- mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
After that , you will need to add the device back to the VG (using "vgextend) and start with remirroring. "lvextend all the lvols"
At this point, the second disk should show up up as a "boot disk" in the lvlnboot -v command.
Now, perform "lvlnboot -R".
Also, update the LIF structure on the secondary disk using
mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c2t2d0

Execute "setboot" and see that 0/0/2/0.2.0 shows up as alternate boot path. If not, use the "setboot" command to set it as alternate boot path

Hope this helps
Krishnan
j773303
Super Advisor

Re: Mirror boot disk

But I can see Boot , root, swap, as below, why do I use lvlnboot -r ..... , My concern is : should /dev/dsk/c2t2d0 (0/0/2/0.2.0) shows --Boot Disk ? Because I only see /dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk in lvlnboot -v ? Thanks.

s1:/etc#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0
Hero
Krishnan Viswanathan
Frequent Advisor

Re: Mirror boot disk

If you do not make the disk as a "bootable disk" using the "pcvreate -B" option, it will not show up in "lvlnboot" listing. Please follow the steps that I mentioned earlier after making sure that the first copy of mirror does not show any bad extents. Also, it would be nice if you can allocate appropriate points to the replies made by everyone. Thanks
Krishnan Viswanathan
Frequent Advisor

Re: Mirror boot disk

Before doing "pvcreate -B", try using the "pvremove" on /dev/rsk/c2t2d0. That will clean up all the old PV info.
j773303
Super Advisor

Re: Mirror boot disk

How to remove the mirror boot disk? I'd like to redo it. Thanks.
Hero
Krishnan Viswanathan
Frequent Advisor

Re: Mirror boot disk

lvreduce /dev/vg00/lvol1 /dev/dsk/c2t2d0.

do the same for all lvols.

Once all lvols are reduced, execute
vgreduce /dev/vg00 /dev/dsk/c2t2d0.

Perform "pvremove /dev/dsk/c2t2d0.
Then execute "pvcreate -B" command and the rest of the steps

Hope this helps
Geoff Wild
Honored Contributor

Re: Mirror boot disk

Here's a procedure I use:

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.
1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

vgdisplay -v vg00
Then lvextend for all other lvols:
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0


I also attached - in case cut'n'paste didn't work....

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.