LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 04-04-2008, 12:17 AM   #1
sloik2000
Member
 
Registered: Jan 2004
Location: Lake Bluff, IL
Distribution: Fedora 8
Posts: 117

Rep: Reputation: 15
Question Software Raid 1 Array Failure - Detecting and Repairing


Greetings,

It seems that my Raid-1 array is malfunctioning on my server PC!
I'm not sure if the drive has actually failed, or is just out of sync with the other. I'm using two identical 500 gigabyte hard drives in a Raid-1 software array.
cat /prov/mdstat outputs the following:
Code:
Personalities : [raid1] [raid6] [raid5] [raid4]
md0 : active raid1 sda1[2](F) sdb1[1]
      486399872 blocks [2/1] [_U]

unused devices: <none>
mdadm --query /dev/md0 outputs the following:
Code:
/dev/md0: 463.87GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
mdadm --detail /dev/md0 outputs the following:
Code:
/dev/md0:
        Version : 00.90.03
  Creation Time : Wed Oct  3 04:41:55 2007
     Raid Level : raid1
     Array Size : 486399872 (463.87 GiB 498.07 GB)
  Used Dev Size : 486399872 (463.87 GiB 498.07 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Apr  4 00:15:47 2008
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 1
  Spare Devices : 0

           UUID : 7d888e42:52b694dc:6bd7c21b:ec475909
         Events : 0.947008

    Number   Major   Minor   RaidDevice State
       0       0        0        0      removed
       1       8       17        1      active sync   /dev/sdb1

       2       8        1        -      faulty spare   /dev/sda1
So, I have a few questions.

First, is the drive actually faulty, as in broken? Or is it just out of sync with the other drive? If so, how do I go about fixing this?

Thanks much!
 
Old 04-04-2008, 02:23 AM   #2
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
I would re-add it and see if it does it again:

mdadm --add /dev/md0 /dev/sda1

look into smartmontools and run a
smartctl -a /dev/sda
and see the drives smart logs say.
 
Old 04-04-2008, 07:10 AM   #3
sloik2000
Member
 
Registered: Jan 2004
Location: Lake Bluff, IL
Distribution: Fedora 8
Posts: 117

Original Poster
Rep: Reputation: 15
Code:
[root@localhost ~]# mdadm --add /dev/md0 /dev/sda1
mdadm: Cannot open /dev/sda1: Device or resource busy
Code:
[root@localhost ~]# smartctl -a /dev/sda
smartctl version 5.37 [i386-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.10 family
Device Model:     ST3500630AS
Serial Number:    6QG0NC4H
Firmware Version: 3.AAK
User Capacity:    500,107,862,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Fri Apr  4 07:06:26 2008 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 163) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   090   076   006    Pre-fail  Always       -       32457944
  3 Spin_Up_Time            0x0003   093   093   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       18
  5 Reallocated_Sector_Ct   0x0033   098   098   036    Pre-fail  Always       -       85
  7 Seek_Error_Rate         0x000f   076   060   030    Pre-fail  Always       -       50012897
  9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       3257
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       18
187 Unknown_Attribute       0x0032   088   088   000    Old_age   Always       -       12
189 Unknown_Attribute       0x003a   098   098   000    Old_age   Always       -       2
190 Temperature_Celsius     0x0022   061   051   045    Old_age   Always       -       740556839
194 Temperature_Celsius     0x0022   039   049   000    Old_age   Always       -       39 (Lifetime Min/Max 0/16)
195 Hardware_ECC_Recovered  0x001a   063   053   000    Old_age   Always       -       51530649
197 Current_Pending_Sector  0x0012   097   096   000    Old_age   Always       -       77
198 Offline_Uncorrectable   0x0010   097   096   000    Old_age   Offline      -       77
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       5
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   090   243   000    Old_age   Always       -       10

SMART Error Log Version: 1
ATA Error Count: 12 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 12 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a9 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa9 = 174878633

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 a7 6f 6c ea 00      01:23:15.690  READ DMA
  27 00 00 00 00 00 e0 00      01:23:15.689  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:13.462  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:20.211  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:20.154  READ NATIVE MAX ADDRESS EXT

Error 11 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a8 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa8 = 174878632

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 a7 6f 6c ea 00      01:23:15.690  READ DMA
  c8 00 08 9f 6f 6c ea 00      01:23:15.689  READ DMA
  ca 00 08 9f 6f 6c ea 00      01:23:13.462  WRITE DMA
  27 00 00 00 00 00 e0 00      01:23:13.404  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:13.403  IDENTIFY DEVICE

Error 10 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a4 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa4 = 174878628

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 9f 6f 6c ea 00      01:23:08.657  READ DMA
  27 00 00 00 00 00 e0 00      01:23:08.656  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:13.462  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:13.404  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:13.403  READ NATIVE MAX ADDRESS EXT

Error 9 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a4 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa4 = 174878628

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 9f 6f 6c ea 00      01:23:08.657  READ DMA
  27 00 00 00 00 00 e0 00      01:23:08.656  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:08.656  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:08.598  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:08.597  READ NATIVE MAX ADDRESS EXT

Error 8 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a4 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa4 = 174878628

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 9f 6f 6c ea 00      01:23:08.657  READ DMA
  27 00 00 00 00 00 e0 00      01:23:08.656  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:08.656  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:08.598  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:08.597  READ NATIVE MAX ADDRESS EXT

SMART Self-test log structure revision number 1

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Thanks for the help, much appreciated!
 
Old 04-04-2008, 11:55 AM   #4
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
Quote:
Originally Posted by sloik2000 View Post
Code:
[root@localhost ~]# mdadm --add /dev/md0 /dev/sda1
mdadm: Cannot open /dev/sda1: Device or resource busy
Code:
[root@localhost ~]# smartctl -a /dev/sda
smartctl version 5.37 [i386-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.10 family
Device Model:     ST3500630AS
Serial Number:    6QG0NC4H
Firmware Version: 3.AAK
User Capacity:    500,107,862,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Fri Apr  4 07:06:26 2008 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 163) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   090   076   006    Pre-fail  Always       -       32457944
  3 Spin_Up_Time            0x0003   093   093   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       18
  5 Reallocated_Sector_Ct   0x0033   098   098   036    Pre-fail  Always       -       85
  7 Seek_Error_Rate         0x000f   076   060   030    Pre-fail  Always       -       50012897
  9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       3257
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       18
187 Unknown_Attribute       0x0032   088   088   000    Old_age   Always       -       12
189 Unknown_Attribute       0x003a   098   098   000    Old_age   Always       -       2
190 Temperature_Celsius     0x0022   061   051   045    Old_age   Always       -       740556839
194 Temperature_Celsius     0x0022   039   049   000    Old_age   Always       -       39 (Lifetime Min/Max 0/16)
195 Hardware_ECC_Recovered  0x001a   063   053   000    Old_age   Always       -       51530649
197 Current_Pending_Sector  0x0012   097   096   000    Old_age   Always       -       77
198 Offline_Uncorrectable   0x0010   097   096   000    Old_age   Offline      -       77
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       5
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   090   243   000    Old_age   Always       -       10

SMART Error Log Version: 1
ATA Error Count: 12 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 12 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a9 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa9 = 174878633

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 a7 6f 6c ea 00      01:23:15.690  READ DMA
  27 00 00 00 00 00 e0 00      01:23:15.689  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:13.462  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:20.211  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:20.154  READ NATIVE MAX ADDRESS EXT

Error 11 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a8 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa8 = 174878632

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 a7 6f 6c ea 00      01:23:15.690  READ DMA
  c8 00 08 9f 6f 6c ea 00      01:23:15.689  READ DMA
  ca 00 08 9f 6f 6c ea 00      01:23:13.462  WRITE DMA
  27 00 00 00 00 00 e0 00      01:23:13.404  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:13.403  IDENTIFY DEVICE

Error 10 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a4 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa4 = 174878628

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 9f 6f 6c ea 00      01:23:08.657  READ DMA
  27 00 00 00 00 00 e0 00      01:23:08.656  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:13.462  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:13.404  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:13.403  READ NATIVE MAX ADDRESS EXT

Error 9 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a4 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa4 = 174878628

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 9f 6f 6c ea 00      01:23:08.657  READ DMA
  27 00 00 00 00 00 e0 00      01:23:08.656  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:08.656  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:08.598  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:08.597  READ NATIVE MAX ADDRESS EXT

Error 8 occurred at disk power-on lifetime: 2742 hours (114 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a4 6f 6c ea  Error: UNC at LBA = 0x0a6c6fa4 = 174878628

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 9f 6f 6c ea 00      01:23:08.657  READ DMA
  27 00 00 00 00 00 e0 00      01:23:08.656  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 00      01:23:08.656  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      01:23:08.598  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      01:23:08.597  READ NATIVE MAX ADDRESS EXT

SMART Self-test log structure revision number 1

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Thanks for the help, much appreciated!
Yikes! You always want Reallocated_Sector_Ct and Offline_Uncorrectable to be 0. Basically the surface of the disk is bad in a few areas and causing bad blocks.

more info:

http://en.wikipedia.org/wiki/S.M.A.R.T
http://smartmontools.sourceforge.net/BadBlockHowTo.txt


You might want to do a full format of the disk so that the "Offline_Uncorrectable" blocks will be read/written and either automatically brought back into service or remapped by the drive firmware. After that build the partition table back up to the way it should be for the raid. You could probably use dd if=/dev/sourcedrive of=dev/targetdrive for that if they are the same model. Then you can re-add it and see if it continues to get bad blocks. Also you will need to run e2fsck -c /dev/sda# so that the ext3 filesystem can map out the bad blocks and keep from writing to them. See bad blocks are remapped to special reserved good blocks by the driver firmware. But this effectively causes performance loss because it breaks the consistency and is similar to fragmentation.

OR you could just buy a new drive

To add remove drives from raid fully:

mdadm --fail /dev/md0 /dev/hdc1
mdadm --remove /dev/md0 /dev/hdc1
mdadm --add /dev/md0 /dev/hdc1

Last edited by esaym; 04-04-2008 at 11:59 AM.
 
Old 04-04-2008, 08:48 PM   #5
sloik2000
Member
 
Registered: Jan 2004
Location: Lake Bluff, IL
Distribution: Fedora 8
Posts: 117

Original Poster
Rep: Reputation: 15
Alright, reformatted the ext3 partition on the faulty drive, and re-added it into the array. It rebuilt, and now everything seems alright!

Quote:
[root@localhost ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Wed Oct 3 04:41:55 2007
Raid Level : raid1
Array Size : 486399872 (463.87 GiB 498.07 GB)
Used Dev Size : 486399872 (463.87 GiB 498.07 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Fri Apr 4 20:22:41 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 7d888e42:52b694dc:6bd7c21b:ec475909
Events : 0.983570

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
Thanks for the help, much appreciated!
 
Old 04-05-2008, 12:28 AM   #6
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
I would still keep an eye on it
 
  


Reply

Tags
array, raid, repair


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
I need help on repairing a mdadm raid 5 array compgeek50 Linux - Hardware 0 02-24-2008 08:06 AM
building a software raid 5 array Bogus8 Debian 2 05-29-2007 10:20 PM
can't boot raid array after drive failure Rascale Linux - Hardware 4 02-12-2006 06:41 PM
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 02:41 AM
Transferring a software RAID array Dee-ehn Linux - Software 0 04-15-2004 04:46 AM


All times are GMT -5. The time now is 12:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration