Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: ddougan on May 05, 2011, 04:40:59 PM
-
One of the servers I look after recently had a degraded RAID event. I confirmed the hardware status (using smartctl) and replaced the failed drive. This server is about 5 years old (an Acer tower) and as it rebooted, I went into the hardware RAID BIOS and monitored as it rebuilt the array.
After it rebooted successfully, I realized that something was odd - /proc/mdstat showed the following:
# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda2[0]
195253888 blocks [2/1] [U_]
md1 : active raid1 sdb1[0]
104320 blocks [2/1] [U_]
unused devices: <none>
Prior to the failure, it had shown sda2 and sdb2 for md2 and sda1 and sdb1 for md1, as would be expected.
As I reviewed the RAID wiki on contribs.org, it struck me that if there is a hardware controller, the OS should have seen only one drive, not two. Am I correct in thinking this?
Has the configuration been incorrect all this time and if so, what's the best way to move forward?
Thanks for any assistance.
-
you are using a sw raid over a fake hw raid.. that's E V I L :-)
add your new disk via the admin console (menu 5)
for the future, don't use fake raid, let SME use sw raid
P.S.: be aware that according to your bios you are using a "HW" raid, so the data could be modified in any way by the controller.. in other words, if you change the mb/controller you could have problems to read your data
-
Stefano,
Thanks. I suspected that is what had happened.
Should I disable the h/w RAID, or leave it and set up via the admin console as you suggested?
Des
-
add the new disk via admin console.. don't change anything else
-
OK, thanks.
Des
-
add the new disk via admin console.. don't change anything else
I'm not certain that that will be possible, given the current confused status of the SW RAID.
I think it should be true that /dev/sda1 is good. I would confirm that by removing /dev/sdb, and boot which /dev/sda, so that /dev/sda1 and /dev/sda2 are both active, and current. If so, then delete the partitions on the second disk, then it can be re-added via the console.
I hope that you have good backup, Des.