Operating System - HP-UX
1752535 Members
5325 Online
108788 Solutions
New Discussion юеВ

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

 
SOLVED
Go to solution
Charlotte Wong
New Member

How to setup RAID 0 or RAID 1 in HPUX 11.0

We have two sets of machine:

1) rp2470 + DS2300 + UX11.0
2) rp5470 + DS2405 + UX11.0

Both machine are used for running Sybase server. Disk mirroring is possible in machine 2 because of resources allocation.

We would like to setup RAID 0 in machine 1 and RAID 1 in machine 2.

Any procedure to do so? Or we should ask our HP engineer to do so?

By the way, any recommendation to the approach?

Thanks!!
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Raid 1 is easy.


Use a real lvol and use a real disk
lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/c1t1d0

Thats raid 1 excact copy mirroring.

It requires installation of a pay for product called mirror/ux.

This manual,page 20
http://docs.hp.com/hpux/pdf/B5532-90001.pdf

I don't think Raid 0 is possible though.

I don't think you need an engineer for this, a good search of itrc would have answered this question.

Extra reading:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

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
Charlotte Wong
New Member

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Thanks.. Do you mean that we just have to stripe disks into the same volume group and configure mirroring for RAID 1?

Do you mean we need other tools for configuring RAID 0 or it is totally impossible in UX11.0?
Paul Eadington_1
Valued Contributor

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Raid 0 is possible as it is striping with no redundancy.
You can create a non mirrored logical volume using the -i and -I options, note though you will need more than 1 drive to make this feasible.

Raid 1 is disk mirroring and has been detailed above.

If you want to stripe and mirror you can, but that's a bit more involved and needs some scripting to extend your logical volume 1 extent at a time onto a seperate physical volume and then mirror that lot once complete. You'd need at least 4 disks in a volume group to make this feasible.
I had hair .. then I got into Unix
Charlotte Wong
New Member

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Thanks so much!!

So RAID 0 is enabled by simply stripe serveral physical disks to the same volume group by Unix OS?

Do you have any idea if the disk array supports hardware RAID?

Paul Eadington_1
Valued Contributor
Solution

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Your welcome :o)

Indeed, Raid 0 is as you mention.

Simplified example : Using Disk1, Disk2 and Disk3

pvcreate disk1 disk2 disk3
vgcreate {options} VGNAME disks
lvcreate -i 3 -I {size} -L {LV Size} VGNAME

As for your disk arrays, neither the DS2300 or DS2405 are capable of HW Raid I'm afriad.

As a note, my last comment in my last post was wrong regarding making a striped mirror.. I forgot all about the distributed option in creating a logical volume. So you can create a distributed logical volume which is mirrored.

Cheers

Paul
I had hair .. then I got into Unix
Mark Grant
Honored Contributor

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Charlotte,

Many people might disagree with me here but the control and flexibility you have with software raid is worth the minor hit on performance in my view.
Never preceed any demonstration with anything more predictive than "watch this"
Charlotte Wong
New Member

Re: How to setup RAID 0 or RAID 1 in HPUX 11.0

Thanks so much to every of you!