LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2011, 03:10 AM   #1
Smallgreen
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Linux RAID 5, 1 disk failed, 1 disk "spare"


Hi Everyone, I have a RAID 5 array set up using linux RAID. The array consists of 6 x 1TB drives with no spares. The array has just gone down with a failed disk which I can replace but it is also reporting one of the disks as spare which worries me. I am not very familliar with linux RAID and would appreciate some help so I don't distroy all the data on it by making a wrong move.

I've googled some commands to try and troubleshoot the problem, the output is listed below;

Code:
[root@san1 ~]# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Fri Aug  6 10:01:47 2010
     Raid Level : raid5
     Array Size : 4883642880 (4657.40 GiB 5000.85 GB)
  Used Dev Size : 976728576 (931.48 GiB 1000.17 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Nov 11 21:18:46 2011
          State : clean, degraded
Active Devices : 4
Working Devices : 5
Failed Devices : 1
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 4589a5f7:25dce26a:d0119310:03eb1348
         Events : 0.2326158

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       0        0        1      removed
       2       0        0        2      removed
       3       8       49        3      active sync   /dev/sdd1
       4       8       81        4      active sync   /dev/sdf1
       5       8       65        5      active sync   /dev/sde1

       6       8       33        -      faulty spare   /dev/sdc1
       7       8       17        -      spare   /dev/sdb1
You have new mail in /var/spool/mail/root
When I try to restart the array the faulty disk (sdc1) comes back online but one of the other disks (sdb1) is listed as spare and tries to resync.

Code:
[root@san1 ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdf1[4] sde1[5] sdd1[3] sdc1[2] sdb1[6] sda1[0]
      4883642880 blocks level 5, 64k chunk, algorithm 2 [6/5] [U_UUUU]
      [>....................]  recovery =  4.2% (41443840/976728576) finish=258.2min speed=60352
K/sec
[root@san1 ~]# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Fri Aug  6 10:01:47 2010
     Raid Level : raid5
     Array Size : 4883642880 (4657.40 GiB 5000.85 GB)
  Used Dev Size : 976728576 (931.48 GiB 1000.17 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Nov 11 18:09:33 2011
          State : clean, degraded, recovering
Active Devices : 5
Working Devices : 6
Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

Rebuild Status : 5% complete

           UUID : 4589a5f7:25dce26a:d0119310:03eb1348
         Events : 0.2326144

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       6       8       17        1      spare rebuilding   /dev/sdb1
       2       8       33        2      active sync   /dev/sdc1
       3       8       49        3      active sync   /dev/sdd1
       4       8       81        4      active sync   /dev/sdf1
       5       8       65        5      active sync   /dev/sde1
The array goes offline as soon as sdb1 completes resyncing. Can anyone please advise me of the best course of action here. Can I replace sdc1 with a working drive or do I have to deal with sdb1 forst?

Thanks in advance,

Smallgreen
 
Old 11-16-2011, 06:40 AM   #2
Smallgreen
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi everyone,

I'm still having problems bringing this RAID back online. Any adeas?

Smallgreen
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I create a "slow to update" raid - to keep spindle on second disk spun down adrian_stephens Linux - Server 2 05-09-2011 08:14 AM
2 "failed" drives in a 3-disk RAID-5 array yfScooby Linux - Server 0 04-23-2010 02:07 PM
RAID 5 with mdadm "spare" and "active sync" confusion ufmale Linux - Server 1 12-08-2007 10:31 AM
HELP! Suse9.2 "Failed to boot from Hard Disk..." ccfrosty Linux - General 2 01-30-2005 06:38 PM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration