hardware raid
I've been trying to setup hardware raid with the built in raid that comes with my m4a785td-m asus motherboard. I think I configured it correctly in the bios.
In SATA Configuration menu I got this: OnChip SATA Channel [Enabled] SATA Port1 - Port4 [RAID] SATA Port5 - Port6 [RAID] Later I did ctrl-f and opened the bios RAID thing. I picked "Define LD" and I did this: RAID 0 Stripe Bock: 64kb Fast Init: On Cache Mode: WriteThru And then I added my two drives. It says Total Drv = 2 and Capacity is what both combined would be and Status=Functional. Now when computer reboots it says 2+0 RAID zero and lists only one drive with double capacity so it seems like I successfully merged the two drives. But now in /dev I still have /dev/sda and /dev/sdb which are my two separate drives. Isn't there a drive name somewhere for the combined RAID0 drive? |
Hi,
In /dev directory the disks would be listed. Check whether the same is appearing in /sbin/fdisk -l output.Hopefully it should show the combined disk name. |
Tried that already. It's just showing sda and sdb. Both 500.1 GB, 255 heads, etc. I don't understand.
EDIT: I wonder if I have to pick a different kernel to boot with? |
Since you used the BIOS options to setup the RAID, I'm guessing that this fits the bill of "fakeraid". You may want to try searching for ways to get Linux to recognize fakeraid. Or you could change the BIOS options back and just setup software RAID in Linux. Either way, the CPU is dealing with the overhead since there probably isn't a true dedicated hardware RAID controller present. Granted, I could be wrong as I'm not 100% familiar with the fakeraid concept (just did a few quick searches).
|
Yeah I was kind of reading about software vs. hardware RAID today, it seems like software RAID usually wins. I was just trying hardware RAID because I thought it would be easier to setup; I thought I would just get a /dev/blah and then use it like a single hard disk. But it doesn't seem to be working. Not sure what "fakeraid" is. I'm going to try reading about that now.
I wonder if I should have posted this in the Slackware forum. Maybe I should alert a mod to move it. |
Actually, I'd vote in favor of hardware RAID. But what most motherboard manufacturers and makers of cheaper RAID controllers have been implementing has been given the name "fakeraid". It isn't really true hardware RAID. It's more comparable to software RAID.
|
Yeah I think my motherboard has fakeraid. (I'm not quite sure yet.) It looks like getting Slackware to use fakeraid is as much of a pain as setting up software RAID and it's less good. So I'd probably be better off setting up software RAID.
|
Quote:
I recently also started to use raid and found the matter of fakeraid and true hardware raid a bit confusing at first. After some research I came to the following conclusion: True Hardware RAID: It usually is some additional and very expensive (in the range of a new computer?) piece of hardware. This will indeed expose your Harddisks as ONE disk to your OS (and even your BIOS?). fakeraid: That is what usually is on the motherboard. Harddisks are still exposed as separate disks to the OS. If I understood it correctly then your OS will still need some drivers to address the array. Software RAID: Has a bit more computational overhead when accessing the disks. However, the performance (read/write speed) is still ?better? than fakeraid. As my question marks indicate I am also not an expert on the subject. If anyone has more info on this, feel free to share and correct me. Setting up software raid might seem a bit confusing at first, but it is really not. Once you have decided which raid you want to use, setting it up with mdadm is not that complicated. Very useful links: http://tldp.org/HOWTO/Software-RAID-HOWTO.html http://tldp.org/HOWTO/Software-RAID-HOWTO-5.html#ss5.5 The only tricky part is formatting the raid device. You have to take the stripe size into consideration. Look here: http://tldp.org/HOWTO/Software-RAID-HOWTO-5.html#ss5.10 http://tldp.org/HOWTO/Software-RAID-HOWTO-5.html#ss5.11 Finally, what you need to understand is that raiding two disks doubles the risk of data loss. Since RAID-0 has no redundancy this means that if one of your raided disk fails then ALL your data is irreparably damaged! |
I've been reading this one:
http://mirror.leaseweb.com/slackware...EADME_RAID.TXT I think I'm gonna try it right now. |
Quote:
|
The link I posted doesn't say anything about "/etc/raidtab". It never uses "mkraid". It never mentions "mke2fs". The links you posted don't even mention mke2fs until RAID-4.
So I'm wondering what if I just followed the instructions in my link for RAID-0 and never addressed chunk size and I never bothered switching to the generic kernel? Is the 30MB enough for my huge.s kernel or whatever I defaulted to? Did RAID-0 get setup? How can I tell for sure and where can I see what chunk sizes it defaulted to? I looked for "/etc/raidtab" and it doesn't exist. EDIT: Oh, wait, I think /proc/mdstat is the answer. I gotta switch to my other computer and then I can post output. EDIT: Here we go: Code:
darksaurian@darkswamp:~$ cat /proc/mdstat |
Like any other device, you will have to put a filesystem on it. You cannot use it as is. So when you format it you will have to pass the appropriate parameters to mke2fs. You can obtain info on your array by
cat /proc/mdstat sudo mdadm --misc --query /dev/md0 sudo mdadm --misc --detail /dev/md0 The manpage states that the default chunk size is 64kB. Quote:
I personally always reserve 500MB for /boot. |
Well my computer is working fine so does that mean the 30MB /boot partition was adequate? What would happen if it ran out of room?
I think I only used 74% of the /boot partition so I'm okay, right?: Code:
root@darkswamp:~# df Code:
root@darkswamp:~# fdisk -l |
Just saw your edit after I posted.
Read the man page for mke2fs. This is the raid specific part: Quote:
stride=16 stripe-width=32 If you choose another block-size then make sure that the following equations are fulfilled stride-size * block-size = chunk-size stripe-width = N * stride-size where N is 2 in your case. [EDIT] You beat me again while I was posting. I recommend to do the formatting manually at least for the RAID-0 array. |
Well maybe I should have but I didn't. I just let the Slackware installer put ext4 on md0. I haven't read up on or used mke2fs yet. My computer is working fine so maybe I'm suffering some drawbacks by not manually formatting md0 with mke2fs but I think RAID-0 is functioning.
|
All times are GMT -5. The time now is 10:21 AM. |