Operating System - HP-UX
1834163 Members
2482 Online
110064 Solutions
New Discussion

Re: How to config mirror disk?

 
j773303
Super Advisor

How to config mirror disk?

I have 3 disk, 9G, 9G, 18G.
I'd like to make a mirror disk, that's
9G+9G mirror 18G. Anyone can draft me
how to do? Does it should be in the same
volume group?
Hero
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: How to config mirror disk?

Yes, the disk you want to mirror to must be in the same volum group.

Here is the manual with the exact steps to follow;

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/77-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/77-toc.html&searchterms=mirror&queryid=20030331-033927
Im from Palmerston North, New Zealand, but somehow ended up in London...
T G Manikandan
Honored Contributor

Re: How to config mirror disk?

Mirroring in hpux works on the logical volume level and not on the disk level.

Yes you can mirror it to the bigger hard disk.
It should be in the vg00 VG.

But,if the existing disks are 9gb and if you want to mirror it to 36GB then if you are to add the new 36 gb bigger hard disk to vg00 then the MAX_PE should be a problem.

This is because when the volume group is created at initial stage with some hard disks(PV's) the bigger hard disk size is taken into account for MAX_PE values.

So,there is no other way other than re-creating the VG while you want to add bigger disks to the existing VG with smaller disk size.

check the doc for disk mirroring

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-1335382922+1049108001995+28353475&docId=200000066581345

Revert for any Questions
KCS_1
Respected Contributor

Re: How to config mirror disk?

hi,

you can make mirror disk on your machine .

follow under procedure but, device address is not same which is depend on your hp-ux box model.


pvcreate -B -f /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
mkboot -l /dev/rdsk/c2t2d0
mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t2d0
lvlnboot -v -b /dev/vg00/lvol1
lvlnboot -v -s /dev/vg00/lvol2
lvlnboot -v -d /dev/vg00/lvol2
lvlnboot -v -r /dev/vg00/lvol3
lvlnboot -R /dev/vg00
lvlnboot ???v
Easy going at all.
Jon Finley
Honored Contributor

Re: How to config mirror disk?

You can do this, but it will be "creative".

The first disk to add to the new vg and have all of the logical volumes created on, will need to be the 18 Gig (this gets you around the MAXPE problem.

Then to create the mirrors:
(assumming vg01, c0t2d0 - 18G and c1t2d0, c1t3d0 - 9G)
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c1t2d0 /dev/dsk/c1t3d0

etc.....

Jon
"Do or do not. There is no try!" - Yoda
Ricky B. Nino
Frequent Advisor

Re: How to config mirror disk?

Hi,

this doc might give you what you need...

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-1335382922+1049175415397+28353475&docId=200000062922077 .

regards...
Opportunities expand for people willing to put time and effort into learning new skills.