Operating System - HP-UX
1838087 Members
3904 Online
110124 Solutions
New Discussion

Re: How to create root mirror

 
dipesh_2
Regular Advisor

How to create root mirror

Hi all,

i have few quetions.
1) how to create raid mirror in logical volume for root?
2) same above in vxvm.
3) how to replace fail disk from lvm and vxvm.

Thanks in advance.
6 REPLIES 6
SANTOSH S. MHASKAR
Trusted Contributor

Re: How to create root mirror

Hi Dipesh,

U can mirror root lv if u have a licensed
software MirrorDisk/UX
if u want 1 mirror of root lv (/dev/vg00/lvol3)

syntax is:

# lvextend -m 1 /dev/vg00/lvol3

To replace a failed disk, just replace failed one
with good one and use above command for all
LVs.


-Santosh
Luk Vandenbussche
Honored Contributor

Re: How to create root mirror

Check this link for topic 3

http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

for topic 1, are you running hpux on PA-RISC or itanium CPU's

Pete Randall
Outstanding Contributor

Re: How to create root mirror

The steps to mirror your boot volume are (PA-RISC):

1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"

2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"

3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/c1t6d0"
"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"

4. Use mkboot to update the AUTO file on the primary boot disk
"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"

5. Mirror the stand, root and swap logical volumes in order
"lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"

6. Then mirror the rest of your root logical volumes
"lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t6d0"
etc.

7. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"

8. Edit /stand/bootconf and add your new mirrored boot disk.

That's all there is to it. You may notice that I left out any
lvlnboot commands. That is because they are not
necessary - see the man page:

"This command should be run in recovery mode (-R)
whenever the configuration of the root volume group is
affected by one of the following commands: lvextend,
lvmerge, lvreduce, lvsplit, pvmove, lvremove, vgextend,
or vgreduce (see lvextend(1M), lvmerge(1M), lvreduce(1M),
lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(1M), and
vgreduce(1M)). Starting with HP-UX Release 10.0, this is
done automatically."


For Itanium architecture, follow this guide:
http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343
,00.html
-or-
http://docs.hp.com/en/B2355-90950/ch06s02.html#cchgjafa


Pete

Pete
Ganesh Balraman
Regular Advisor

Re: How to create root mirror

Pls find the procedure for replacing the failed mirrored boot disk.

1.Identify the correct failed disk and replace it with saem id.

2.Ioscan -funC disk (Identify the disk shows claimed).

3.mv /etc/lvmtab /etc/lvmtab.org(Because otherwise it will not allow to create PV).

4.pvcreate -B /dev/rdsk/c?t?d?

5.mv /etc/lvmtab.org /etc/lvmtab

6.vgcfgrestore -n /dev/vg00 /dev/rdsk/c?t?d?

7.mkboot /dev/rdsk/c?t?d?

8.mkboot -a " hpux -lq" /dev/rdsk/c?t?d?

9.vgsync /dev/vg00

10.lvlnboot -b

11.lvlnboot -r

12.lvlnboot -s

13.lvlnboot -Rv

14.reboot.

Ignacio Javier
Regular Advisor

Re: How to create root mirror


Hi:

This is the Technical knowledge base document
to mirror vg00 intanium 11.23

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=552267591+1169205232687+28353475&docId=200000082066576


Hope it helps

David Nixon
Valued Contributor

Re: How to create root mirror

To answer question 2. about root mirroring.

Under VxVM do something like:

# vxrootmir -v c2t2d0

This command would mirror the primary boot disc to an alternate drive.

N.b. before mirroring vxrootmir checks the disc's suitabilty and adds it to the root disc group. Preliminary checks sometimes include patch levels - so swagentd had better be up and running.