Portal Home > Knowledgebase > Articles Database > RAID 1 is working properly?
RAID 1 is working properly?
Posted by bdwebservices, 06-02-2011, 05:15 AM |
Hello All,
Is my server is RAID 1 protected or RAID 1 is working properly?
Here is report:
[root@server1 ~]# cat /proc/mdstat
Personalities : [raid0] [raid1]
md0 : active raid1 sdb1[1] sda1[0]
20972736 blocks [2/2] [UU]
md2 : active raid1 sdb3[1] sda3[0]
51199040 blocks [2/2] [UU]
md1 : active raid0 sdb2[1] sda2[0]
1809127424 blocks 256k chunks
unused devices:
[root@server1 ~]#
Thanks in advance.
|
Posted by HUGOBLUE, 06-02-2011, 07:05 AM |
Yeah that looks right
Set up mail alerts and watch for disk status e.g like this [U_] (fail) instead of [UU] (correct)
|
Posted by bdwebservices, 06-02-2011, 07:10 AM |
Yeah that looks right
Set up mail alerts and watch for disk status e.g like this Thanks!
Can you please help me to how to do it?
|
Posted by skywin, 06-02-2011, 05:34 PM |
Add to /etc/mdadm/mdadm.conf this line
MAILADDR youremail@domain.com
and restart the service with /etc/init.d/mdadm restart
|
Posted by wartungsfenster, 06-02-2011, 06:14 PM |
Sorry to spoil the fun, but please watch out:
Your largest disk partition is not a RAID1 but a RAID0.
So your server is not properly protected, if either of the disks fails, you lose all data that sits on /dev/md1.
|
Posted by HUGOBLUE, 06-02-2011, 06:19 PM |
Damn I missed that part. You right, its is RAID0
Never use RAID0 for important data.
|
Posted by bdwebservices, 06-03-2011, 11:46 PM |
Is it ok now?
|
Posted by wartungsfenster, 06-04-2011, 06:28 AM |
I think it's OK now.
Perfect would be if the primary copy were on "sda". It is on "sdb". Nothing very dangerous but keep in mind.
Have fun with your server
|
Add to Favourites Print this Article
Also Read