Results 1 to 2 of 2
  1. #1

    Software Raid, how to find the broken disk?

    Hi

    I have a server with a software raid. One disk is broken, but I'm not sure is it sda or sdb. Can someone help me here?

    Code:
    [email protected]:/etc/postfix$ cat /proc/mdstat
    Personalities : [raid1] 
    md1 : active raid1 sda3[0]
          244139712 blocks [2/1] [U_]
          
    md0 : active raid1 sda1[0]
          58596992 blocks [2/1] [U_]
          
    unused devices: <none>

    Code:
    [email protected]:/etc/postfix$ sudo mdadm --detail /dev/md0
    /dev/md0:
            Version : 00.90
      Creation Time : Mon May 21 19:01:37 2007
         Raid Level : raid1
         Array Size : 58596992 (55.88 GiB 60.00 GB)
      Used Dev Size : 58596992 (55.88 GiB 60.00 GB)
       Raid Devices : 2
      Total Devices : 1
    Preferred Minor : 0
        Persistence : Superblock is persistent
    
        Update Time : Mon Sep 30 20:29:44 2013
              State : clean, degraded
     Active Devices : 1
    Working Devices : 1
     Failed Devices : 0
      Spare Devices : 0
    
               UUID : b73efb7b:cbfeb3c3:e8a09129:110dfb98
             Events : 0.14130888
    
        Number   Major   Minor   RaidDevice State
           0       8        1        0      active sync   /dev/sda1
           1       0        0        1      removed
    
    
    
    [email protected]:/etc/postfix$ sudo mdadm --detail /dev/md1
    /dev/md1:
            Version : 00.90
      Creation Time : Mon May 21 19:01:42 2007
         Raid Level : raid1
         Array Size : 244139712 (232.83 GiB 250.00 GB)
      Used Dev Size : 244139712 (232.83 GiB 250.00 GB)
       Raid Devices : 2
      Total Devices : 1
    Preferred Minor : 1
        Persistence : Superblock is persistent
    
        Update Time : Mon Sep 30 20:30:51 2013
              State : clean, degraded
     Active Devices : 1
    Working Devices : 1
     Failed Devices : 0
      Spare Devices : 0
    
               UUID : a9165fbc:d7a5f865:f71ec09e:f2a662ee
             Events : 0.23322398
    
        Number   Major   Minor   RaidDevice State
           0       8        3        0      active sync   /dev/sda3
           1       0        0        1      removed
    I guess sdb is broken and need to be replaced. Can someone confirm this or how can I find this out?

    Regards
    Michael

  2. #2
    Join Date
    Nov 2005
    Location
    Michigan, USA
    Posts
    3,872
    If you only had two disks, sda/sdb then it would be sdb:

    md1 : active raid1 sda3[0]
    244139712 blocks [2/1] [U_]

    As you can see from the active line, sdb is missing, and the 2/1 shows that the raid1 is missing one disk.

    What does: 'ls /dev/sdb' output. If it doesn't show then the disk connection was broken or the disk fully died. If it still shows, then run a:
    smartctl --test=short /dev/sdb (Wait 2 minutes or so) then
    smartctl -a /dev/sdb


Similar Threads

  1. software raid 1, if one disk fail
    By microz in forum Dedicated Server
    Replies: 7
    Last Post: 05-05-2013, 02:40 PM
  2. How to find broken links?
    By travanx in forum Web Design and Content
    Replies: 19
    Last Post: 05-05-2011, 04:40 PM
  3. [Ubuntu] Disk-drive or raid-controller broken?
    By ujjain in forum Hosting Security and Technology
    Replies: 7
    Last Post: 02-03-2010, 10:08 AM
  4. Map failed software raid disk in windows?
    By matt2kjones in forum Hosting Security and Technology
    Replies: 0
    Last Post: 01-11-2007, 09:48 AM
  5. Oh My God This Thread Is Broken! Links are broken too! WHT is broken!
    By websterworld in forum Web Hosting Lounge
    Replies: 67
    Last Post: 07-12-2004, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •