RAID-1: how can I check if it's working?

freshmint

Verified User
Joined
Oct 10, 2005
Messages
120
I'm supposed to have a secondary HD with RAID-1 setup. I don't want to relay on what the technician from datacenter told me, is there an easy way to check if I indeed have RAID-1 setup and if it's working like it's supposed to?

Thanks.
 
cat /proc/mdstat

Should give an output like this:

md1 : active raid1 sdb2[1] sda2[0]
2297216 blocks [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
117756352 blocks [2/2] [UU]

Greetz,

Franky
 
Uhh...

$ cat /proc/mdstat
cat: /proc/mdstat: No such file or directory

That doesn't sound good. :mad:

Am I being fooled or that may be a false negative?

Is there another way to verify?
 
Maybe there is a second drive, but no raid query activated.

Can you do a:

df -alh


Franky
 
I think "mdstat" is a Linux convention and that FreeBSD uses something else.

I'd go ahead and post the output of df, as decafranky suggests.

Jeff
 
Oh yes, that's true.. I'm using FreeBSD 4.11-STABLE, I forgot to mention.

fdisk -l didn't work, illegal option.

Here's the output for df:

PHP:
# df -alh
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/twed0s1a   1.9G   135M   1.7G     7%    /
procfs          4.0K   4.0K     0B   100%    /proc
/dev/twed0s1d   992M    84K   913M     0%    /tmp
/dev/twed0s1e   9.7G   1.7G   7.2G    19%    /usr
/dev/twed0s1f   7.8G   407M   6.7G     6%    /var
/dev/twed0s1g    50G   1.7G    44G     4%    /home
linprocfs       4.0K   4.0K     0B   100%    /compat/

See, I can see my 80GB HD. I'm supposed to have a secondary 80GB HD setup with RAID-1.

It's not supposed to appear on this df, is it?

Thanks for the replies so far, I thought this FreeBSD was pretty quiet recently so I wasn't sure I'd get answers. :cool:
 
I'm probably the least experienced with FreeBSD here, but at least I can google:

I found this forum page with this copy...
One other example is RAID. Why should I have to know or care exactly what brand of RAID controller I have and what driver that particular RAID controller is using, just to be able to refer to the array? For example, in FreeBSD:
"/dev/aacd" is used to refer to an Adaptec RAID device,
"/dev/mlxd" or maybe /dev/mlyd for Mylex RAID,
"/dev/amrd" for AMI RAID,
"/dev/idad" for Compaq Smart RAID,
"/dev/twed" for 3ware RAID.
And after that, you need to add the other information to refer to a specific partition:
"/dev/twed1s2e" (or something like that). Now that is an intuitive and obvious name.
So it appears your server has a 3ware RAID card.

Of course I still don't know how to determine the health of your RAID array; you can find that out yourself, probably by reading up on 3ware RAID cards. There's sure to be a utility installed on the server.

Jeff
 
Try the command:

atacontrol list

...

You can also get some information from

cat /var/run/dmesg.boot | more

That would show you the bootup file for your server.
 
Last edited:
Back
Top