Visit Our UNIX and Linux User Community


RAID 5 on HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX RAID 5 on HP-UX
# 1  
Old 09-08-2009
RAID 5 on HP-UX

Hi, i had search through this forum about the RAID 5 configurations on HPUX server (model RP5470) but only find this thread:
RAID 0 on Unix

.. there are two way to configure the RAID that provided from this thread

RAID 0
****************
#!/bin/sh
pvcreate -f /dev/rdsk/c4t1d0
pvcreate -f /dev/rdsk/c1t1d0

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x0a0000

vgcreate -p 128 /dev/vg01 /dev/dsk/c4t1d0

vgextend /dev/vg01 /dev/dsk/c1t1d0
# -i represents number of drives you are stripping across
lvcreate -i 2 -I 128 -n lvol1 -r N /dev/vg01

lvextend -l 2046 /dev/vg01/lvol1 /dev/dsk/c4t1d0 /dev/dsk/c1t1d0

newfs -F vxfs /dev/vg01/rlvol1
fsadm -F vxfs -o largefiles /dev/vg01/rlvol1

mkdir /raid0filesystem

mount /dev/vg01/lvol1 /raid0filesystem

exit

RAID 1
****************
#!/bin/sh
pvcreate -f /dev/rdsk/c4t1d0
pvcreate -f /dev/rdsk/c1t1d0

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x0a0000

vgcreate -p 128 /dev/vg01 /dev/dsk/c4t1d0

lvcreate -n lvol1 /dev/vg01
#extents number will vary
lvextend -l 1023 /dev/vg01/lvol1

newfs -F vxfs /dev/vg01/rlvol1
fsadm -F vxfs -o largefiles /dev/vg01/rlvol1

mkdir /raid1filesystem

mount /dev/vg01/lvol1 /raid1filesystem

vgextend /dev/vg01 /dev/dsk/c1t1d0
#this part may take a while...the more you mirror the longer it takes
lvextend -m 1 /dev/vg01/lvol1

exit


************************

for your information, my HP-UX server (model RP5470) had its RAID card attached to it, so, the server should can configure RAID 5 without any problem. Right now, i had manage to modify the configuration so that it would be run as RAID 5... but i dont know whether it can be act like i want to run or not, or how i want to make sure that it run as RAID 5 or not..

here is my pre-configure RAID 5


RAID 5
****************

#!/bin/sh
#minimum disk for RAID 5 required = 3
pvcreate -f /dev/rdsk/c4t1d0 <--disk1
pvcreate -f /dev/rdsk/c1t1d0 <--disk2
pvcreate -f /dev/rdsk/c2t1d0 <--disk3

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x0a0000

vgcreate -p 128 /dev/vg01 /dev/dsk/c4t1d0

lvcreate -n lvol1 /dev/vg01
#extents number will vary
lvextend -l 1023 /dev/vg01/lvol1

newfs -F vxfs /dev/vg01/rlvol1
fsadm -F vxfs -o largefiles /dev/vg01/rlvol1

mkdir /raid1filesystem

mount /dev/vg01/lvol1 /raid5fs

vgextend /dev/vg01 /dev/dsk/c1t1d0

lvextend -m 1 /dev/vg01/lvol1

exit

mount /dev/vg01/lvol1 /raid5fs

exit
*************************

hope someone could help me on this.

Last edited by DukeNuke2; 09-09-2009 at 06:33 AM.. Reason: changed font...
# 2  
Old 09-08-2009
Are you saying you are using (what?) internal scsi RAID0-5 card to do raid 5 with internal disks?
All the boxes I had so far (from 1996...) with one exception (a H50) have always been external disks subsystems,(OK I asked for this configuration...) far cheaper than loading a system with internal disks...

---------- Post updated at 18:04 ---------- Previous update was at 17:54 ----------

Question:
What did you modify in order to do RAID5? Where?
# 3  
Old 09-08-2009
yeah... i had scsi RAID card attached to my server.. and im trying to configure RAID with my iinternal disk... there is 4 disks attached to the server... from what i get from the previous thread, they modify at the disk... correct me if im wrong...

if there is a guide of how to do it step by step that can be provided, greatly help...
# 4  
Old 09-08-2009
???
Lets start from the beginning
give us the listing of
Code:
ioscan -funC disk



---------- Post updated at 19:13 ---------- Previous update was at 19:00 ----------

I just remembered stripping a RP5450 to pieces after it had burned...
The only place where you have disks are in front and you can put 4 disks (hot swap)
they can only be:
36 GB, 15K HotPlug Ultra 160 SCSI Disk A6846A
73 GB, 15K HotPlug Ultra 160 SCSI Disk A9761A
146 GB, 10K HotPlug Ultra 160 SCSI Disk A7080A
(there are still possible 18GB disks but I doubt seriously...)
that means you are using the internal controllers, they cannot do RAID5 and its not advisable...
or you have an external disk subsystem...

Last edited by vbe; 09-08-2009 at 03:20 PM..
# 5  
Old 09-08-2009
svrhpc@root:>ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE HP 73.4GST373405LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 4 0/0/1/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST136403LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 3 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373405LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 73.4GST373405LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
svrhpc@root:>

***************************

for SEAGATE ST136403LC, 36GB
there is no external subsystem attached to it unless the 4 disks in front..
yes, the internal controller, the RAID card attached in my server...
why its not advisable to do that?...
if that so, what kind of RAID should i configure?...
# 6  
Old 09-09-2009
lets see how your OS is installed:
Code:
vgdisplay -v vg00|grep dsk

Then do you know what version of OS you have (Technical, mission-critical...)which may have mirror-ux included, or if you have mirror-ux installed?
# 7  
Old 09-09-2009
OS Installed
******************
svrhpc@root:>vgdisplay -v vg00 | grep dsk
PV Name /dev/dsk/c1t0d0
PV Name /dev/dsk/c2t2d0
PV Name /dev/dsk/c2t0d0
PV Name /dev/dsk/c1t2d0
svrhpc@root:>

OS Version
******************
svrhpc@root:>uname -a
HP-UX svrhpc B.11.00 U 9000/800 168444661 unlimited-user license
svrhpc@root:>


i might think there is no mirror-ux installed, but if installed, we will not use it because this a standalone server.. is it possible to configure RAID 5?..
because what im understand that, the RAID 5 is combination between RAID 0 and RAID 1... correct me if im wrong...

Previous Thread | Next Thread
Test Your Knowledge in Computers #933
Difficulty: Medium
Microcontrollers operating within embedded systems (such as the Raspberry Pi, Arduino, and other similar systems) always have internal hardware to keep track of time.
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

RAID Configuration for IBM Serveraid-7k SCSI RAID Controller

Hello, I want to delete a RAID configuration an old server has. Since i haven't the chance to work with the specific raid controller in the past can you please help me how to perform the configuraiton? I downloaded IBM ServeRAID Support CD but i wasn't able to configure the video card so i... (0 Replies)
Discussion started by: @dagio
0 Replies

2. Solaris

Software RAID on top of Hardware RAID

Server Model: T5120 with 146G x4 disks. OS: Solaris 10 - installed on c1t0d0. Plan to use software raid (veritas volume mgr) on c1t2d0 disk. After format and label the disk, still not able to detect using vxdiskadm. Question: Should I remove the hardware raid on c1t2d0 first? My... (4 Replies)
Discussion started by: KhawHL
4 Replies

3. UNIX for Dummies Questions & Answers

Need help with RAID.

Hi Gurus, Can any one explain me the difference between hardware RAID and s/w RAID. Thanks in Advance. (1 Reply)
Discussion started by: rama krishna
1 Replies

4. AIX

SCSI PCI - X RAID Controller card RAID 5 AIX Disks disappeared

Hello, I have a scsi pci x raid controller card on which I had created a disk array of 3 disks when I type lspv ; I used to see 3 physical disks ( two local disks and one raid 5 disk ) suddenly the raid 5 disk array disappeared ; so the hardware engineer thought the problem was with SCSI... (0 Replies)
Discussion started by: filosophizer
0 Replies

5. Solaris

Creation of Raid 01 and Raid 10

Hello All, I have read enough of texts on Raid 01 and Raid 10 on solaris :wall: . But no-where found a way to create them using SVM. Some one pls tell me how to do or Post some link if that helps. TIA Curious solarister (1 Reply)
Discussion started by: Solarister
1 Replies

6. Solaris

implementing RAID 1 from RAID 5

Dear ALl, I have a RAID 5 volume which is as below d120 r 60GB c1t2d0s5 c1t3d0s5 c1t4d0s5 c1t5d0s5 d7 r 99GB c1t2d0s0 c1t3d0s0 c1t4d0s0 c1t5d0s0 d110 r 99GB c1t2d0s4 c1t3d0s4 c1t4d0s4 c1t5d0s4 d8 r 99GB c1t2d0s1 c1t3d0s1... (2 Replies)
Discussion started by: jegaraman
2 Replies

7. UNIX for Dummies Questions & Answers

RAID software vs hardware RAID

Hi Can someone tell me what are the differences between software and hardware raid ? thx for help. (2 Replies)
Discussion started by: presul
2 Replies

8. Solaris

Raid 0

Somebody can help me ! how can i do mirror in sun ver 8 without third party software !!! (3 Replies)
Discussion started by: goldfelda
3 Replies

9. Solaris

RAID 0+1 Vs RAID 1+0

hi all...sudhansu here............ i need some help.......... what is RAID 0+1 and RAID 1+0.............what is the difference between them................ suppose i have 80 gb disk space,then which RAID level i follow n why......... i need redundancy n maximum storage..........please help (3 Replies)
Discussion started by: sudhansu
3 Replies

Featured Tech Videos