LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help setup raid 0 (https://www.linuxquestions.org/questions/linux-server-73/help-setup-raid-0-a-630850/)

ossnap 03-26-2008 04:02 PM

Help setup raid 0
 
I need to install 2 1TB drives into a RHEL 4 computer and have them setup with Raid 0. I've never done this but president of the company needs it done by the end of the day. Can anyone give some helpful pointers. I've referenced a few articles on the Red Hat Knowledge base but I'm not too confident at this point.

From what I've gathered, I need to create a raidtab file and then use the mkraid command, then mount the raid array.

Any helpful tips would be GREATLY appreciated.

MensaWater 03-26-2008 04:41 PM

Actually you should use mdadm for RAID (meta-disks).

Haven't done this so can only point you at the man page - just type:

man mdadm

ossnap 03-27-2008 07:52 AM

well we hooked up 2, 1TB drives. The machines are Dell Precision 690's and they have a built in SAS card. On the motherboard there are 3 SATA ports, and 4 more SATA ports labeled HDD. I had to hook the drives up to the HDD SATA ports before the SAS utility would recognize them. I created a striped array using the SAS utility.
Once we booted the Operating System I ran a LVM utility that was in the system settings menu of the Gnome Desktop. This showed the 1.7 ish TB data as being unallocated and uninitialized. I initialized the data using that utility and created a LVM on it.
Next I popped open a Terminal windows and made the Filesystem on the device using mkfs.ext2 /dev/sdb. After that completed I edited the fstab file to automount the device to /striped (the mountpoint folder I created). Created another Samba share and I was done.
I guess I got off lucky by being able to use the SAS controller to create teh raid. Hopefully it's setup right, at least it appears to be.
I had read some stuff about mdadm before we started but, I never used it. I'll look further into this utility for better info.

MensaWater 03-27-2008 08:27 AM

Hardware RAID (your SAS controller) is always better than software RAID (mdadm) because the processing is done by the controller for the former and by the OS (cpu/memory) for the latter.

Once again it proves what "assume" means - I'd assumed you needed to do software RAID because that was what your question mentioned.


All times are GMT -5. The time now is 10:23 AM.