Operating System - HP-UX
1836627 Members
1875 Online
110102 Solutions
New Discussion

Disk mirroring configuration on HP-UX 11.11

 
SOLVED
Go to solution
Viet Q Do
Advisor

Disk mirroring configuration on HP-UX 11.11

We have HP9000 rp3440 server running HP-UX 11.11, we also have 2 HP 146GB 15K U320 SCSI disk in which we want to setup disk mirroring for. Please recommend as how we should mirror these two disks to give us the best usage. Any documents you would recommend to use ? How to test after the disk mirroring configuration is done ? Thanks.
10 REPLIES 10
Roopesh Francis_1
Trusted Contributor

Re: Disk mirroring configuration on HP-UX 11.11

Hi Veit,

how you are planning to mirror. There is no disk to disk mirroring in hp ux.you have to mirror logical volumes.

if you wanted to logical volumes, follow below steps:

1.create a volume group with two disks
2.create logical volumes.
3.mirror logical volumes to second disk using lvextend.
For more info, please refer
http://docs.hp.com/en/B7961-90026/ch03s10.html

there is different procedure for mirroring root vg

Thanks.

Shan Sunny
Occasional Advisor
Solution

Re: Disk mirroring configuration on HP-UX 11.11

sen_ux
Valued Contributor

Re: Disk mirroring configuration on HP-UX 11.11

Are these non-root disks, or you want to use it as root disk.? However use the normal mirroring procedure.
Viet Q Do
Advisor

Re: Disk mirroring configuration on HP-UX 11.11

Thank you all for a quick reply. Let me try to follow the procedure recommended by Shan and if I have any questions will let you know. Thanks, again.
R.K. #
Honored Contributor

Re: Disk mirroring configuration on HP-UX 11.11

Hi Viet,

You can refer the doc:

http://maben.homeip.net/static/computers/HP/hpux/When Good Disks Go Bad.pdf

Regds..
Don't fix what ain't broke
Viktor Balogh
Honored Contributor

Re: Disk mirroring configuration on HP-UX 11.11

If you have a RAID controller then you can skip the LVM-level mirroring and go ahead with the HW-based RAID 1. Not that LVM mirroring has a large overhead to the system, but i would prefer go this way.
****
Unix operates with beer.
Michal Kapalka (mikap)
Honored Contributor

Re: Disk mirroring configuration on HP-UX 11.11

hi,

i am using simple sh script with the commands :

for example :

source disk : /dev/dsk/c2t0d0
destination disk : /dev/dsk/c2t1d0


simple create sh scrip for example mirror.sh

run the script sh mirror.sh


set -x
pvcreate -B -f /dev/rdsk/c2t1d0
mkboot /dev/rdsk/c2t1d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t1d0
vgextend /dev/vg00 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t1d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot -a 0/1/1/0.1.0
setboot


mikap
Viet Q Do
Advisor

Re: Disk mirroring configuration on HP-UX 11.11

Anyone has recommendation on how to obtain LVM Mirror software ? Could I download it from HP web site? Thanks.
Torsten.
Acclaimed Contributor

Re: Disk mirroring configuration on HP-UX 11.11

You need to buy it.

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!   
Viktor Balogh
Honored Contributor

Re: Disk mirroring configuration on HP-UX 11.11