Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 08-08-2009, 03:03 PM   #1
Registered: Jun 2008
Distribution: Fedora, RHEL, Ubuntu
Posts: 33

Rep: Reputation: 15
Failed HD in Raid0 - which drive failed?

I have a failed drive in a software raid-0 assembly. (Fedora release 10 (Cambridge))
I re-added the drive just in case the failure was only a glitch but it failed again a day later.
My raid device is called md0.
The 2 physical drives are sdb1 and sdc1.
When both drives are attached I get a msg that sdc1 has failed.
- Which drive is sdc?
I detached one drive, booted the machine and it now had only sdb in the array.
Aha, I thought. Let's now swap, detach the current drive and re-add the other one.
Again the system tells me that only sdb is attached.
In both cases the (half) array mounted fine and showed no problems other than a missing drive.
It would be too easy if one of 2 drives was completely dead.

# mdadm --detail /dev/md0
        Version : 0.90
  Creation Time : Tue Jan 20 22:55:07 2009
     Raid Level : raid1
     Array Size : 976759936 (931.51 GiB 1000.20 GB)
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sat Aug  8 11:46:09 2009
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : b73ecca5:fbea15e3:5014ed2a:67ac9dea
         Events : 0.80080

    Number   Major   Minor   RaidDevice State
       0       0        0        0      removed
       1       8       17        1      active sync   /dev/sdb1
When I run the command with the other drive the output is identical except for the last part:
           UUID : b73ecca5:fbea15e3:5014ed2a:67ac9dea
         Events : 0.85072

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       0        0        1      removed
So, the question after this looong text (sorry) is, how do I identify the bad disk?
When both disks are attached it identifies /dev/sdc1 as the failed disk.
Which disk is sdc?
Also, is there some way to test if the disk is really bad?

Thanks in advance,

Old 08-08-2009, 07:24 PM   #2
Registered: Jun 2008
Distribution: Fedora, RHEL, Ubuntu
Posts: 33

Original Poster
Rep: Reputation: 15
I think, I figured out one possible way.
fdisk gives me an identifier for the actual physical disk:

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d7a65


harddrive, mdadm, raid, raid0, software

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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 08:19 AM
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 04:16 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 08:57 AM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 10:15 PM
Loosing CD Drive while installing Mandrake 9.2 (ldconfig failed or idconfig failed) sjzabel Linux - General 3 02-26-2004 05:35 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:47 PM.

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