Results 1 to 11 of 11
Thread: RAID1 - Failed drive?
-
03-16-2011, 02:19 PM #1Newbie
- Join Date
- Nov 2009
- Posts
- 19
RAID1 - Failed drive?
Hi,
I'm just starting to learn this linux voodoo stuff and I found out that my software RAID1 setup has a failed drive (I think). I would appreciate if someone could confirm this and give me some advice.
This is what I get when I run the "cat /var/mdstat/" command:
Code:Personalities : [raid1] md0 : active raid1 sdb1[1] sda1[2](F) 104320 blocks [2/1] [_U] md1 : active raid1 sdb2[1] sda2[2](F) 4192896 blocks [2/1] [_U] md2 : active raid1 sdb3[1] sda3[2](F) 484086528 blocks [2/1] [_U] unused devices: <none>
Also found this in logs dated a few days ago:
Code:kernel: md: syncing RAID array md0 kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc. kernel: md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reconstruction. kernel: md: using 128k window, over a total of 104320 blocks. kernel: md: md0: sync done. kernel: md: syncing RAID array md1 kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc. kernel: md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reconstruction. kernel: md: using 128k window, over a total of 4192896 blocks. kernel: md: md1: sync done. kernel: RAID1 conf printout: kernel: --- wd:1 rd:2 kernel: disk 1, wo:0, o:1, dev:sdb1 kernel: RAID1 conf printout: kernel: --- wd:1 rd:2 kernel: disk 1, wo:0, o:1, dev:sdb2
Any advice appreciated. Thanks.
-
03-16-2011, 02:25 PM #2Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
It's failed for sure. Try the smartctl command if you want to double check.
If you're not getting an email, check your config files, not 100% sure of the names off the top of my head but try /etc/smartctl.conf and /etc/mdadm.conf
-
03-16-2011, 03:04 PM #3Newbie
- Join Date
- Nov 2009
- Posts
- 19
I ran
/usr/sbin/smartctl --all /dev/sdb
and I got a lot of information about the drive and as much as I can tell everything is ok.
But for sda I got: "A mandatory SMART command failed: exiting. ..."
So I guess it's dead... What should I do? Should I panic? Cause I already did that. I have no idea what to do next.
-
03-16-2011, 03:11 PM #4Web Hosting Master
- Join Date
- Apr 2005
- Location
- Raleigh, NC
- Posts
- 816
I'm not much help in resolving your issue but I would recommend a hardware RAID solution.
Linux & Windows Hosting Expert @ Contegix
FedRAMP / HIPAA / PCI Compliant Cloud Solutions backed by 24x7x365 Technical Support
Specializing in high traffic Drupal and WordPress compliant sites + highly customized solutions
rjohnson@contegix.com -- 877-289-0395 x2018 -- www.Contegix.com
-
03-16-2011, 03:24 PM #5Randy
- Join Date
- Aug 2006
- Location
- Ashburn VA, San Diego CA
- Posts
- 4,615
/dev/sda (first of the two disks) is failed based on the smartctl output. It'll have to be replaced, then you'll need to rebuild the array.
Fast Serv Networks, LLC | AS29889 | DDOS Protected | Managed Cloud, Streaming, Dedicated Servers, Colo by-the-U
Since 2003 - Ashburn VA + San Diego CA Datacenters
-
03-16-2011, 03:28 PM #6
Software raid 1 is perfectly fine.
To the OP, I would suggest replacing the failed hdd as soon as possible. If you would like to do it yourself then this guide should help:
http://www.howtoforge.com/replacing_..._a_raid1_arrayCrocWeb Cloud - High Availability Cloud Website Hosting
> NVMe Storage, LSCache, Redis, Global CDN, Unlimited SSL
> Triple Data Replication, Automated Server Failover
> Bad Bots, Malware, DDoS Protection
-
03-16-2011, 05:38 PM #7Web Hosting Master
- Join Date
- Jul 2009
- Location
- The backplane
- Posts
- 1,788
-
03-16-2011, 05:59 PM #8Junior Guru Wannabe
- Join Date
- Mar 2010
- Location
- JNB, ZA
- Posts
- 93
-
03-16-2011, 08:04 PM #9Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
For simple RAID 1, software RAID is a better solution if you ask me. Cheaper and more flexible, and you don't have to worry about losing your data if your card breaks and you can't find an identical one.
So I guess it's dead... What should I do? Should I panic? Cause I already did that. I have no idea what to do next.
Code:mdadm --manage /dev/md0 --remove /dev/sda1 mdadm --manage /dev/md1 --remove /dev/sda2 mdadm --manage /dev/md2 --remove /dev/sda3
Code:sfdisk -d /dev/sdb > layout.txt sfdisk /dev/sda < layout.txt
Code:mdadm --manage /dev/md0 --add /dev/sda1 mdadm --manage /dev/md1 --add /dev/sda2 mdadm --manage /dev/md2 --add /dev/sda3
-
03-18-2011, 10:36 PM #10Newbie
- Join Date
- Nov 2009
- Posts
- 19
Thanks for your help, guys. It didn't go as smooth as I hoped but at least everything ok now. I backed up my data, removed the failed drive from the array and contacted support to make the swap. Support told me the server didn't boot with the new drive (grub error) and the same without the failed one. So they asked for my details so they can have a look and managed to fix it.
As for the hardware vs software raid.. my choice was made with budget in mind. It did what is supposed to, what more can I ask. Of course, it would have been better without the downtime but in my case the cost of 1 hour of downtime is far less than the cost of the hardware raid.
Again, I appreciate your help.Last edited by coscip; 03-18-2011 at 10:41 PM.
-
03-18-2011, 10:41 PM #11The Linux Specialist
- Join Date
- Mar 2003
- Location
- /root
- Posts
- 23,991
Moved > Hosting Security and Technology .
Specially 4 U
Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx
Similar Threads
-
Software RAID1 - how will I know which drive is failing?
By chasebug in forum Dedicated ServerReplies: 9Last Post: 02-24-2011, 12:36 PM -
Different hard drive models in RAID1
By Nich in forum Dedicated ServerReplies: 7Last Post: 12-01-2010, 10:33 AM -
RAID1 20bay drive ...how to do it?
By peruviantalk in forum Computers and PeripheralsReplies: 5Last Post: 01-24-2009, 08:49 PM -
How to tell if a drive has failed in an array?
By matt2kjones in forum Hosting Security and TechnologyReplies: 1Last Post: 03-13-2005, 10:38 AM -
Hard drive failed....?
By chunpal in forum Dedicated ServerReplies: 4Last Post: 03-06-2003, 02:30 AM