LinuxQuestions.org
Register a domain and help support LQ
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 01-06-2009, 05:06 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 31
dirty degraded md raid array


I find myself in the situation that I have a degraded raid array that reads as dirty, so I cannot start it. I have a "spare" partition (until yesterday, this was the 5th segment, but for some reason my system now keeps it as a spare in a degraded array.) I know the drive itself is good, as I have two other md raid arrays that each have a section on it.

mdadm -E /dev/sdX shows me that the different parts of the array do not agree about how many sections are present. there are 5 devices in the array, 2 of them show 5 working devices, 4 active, 1 spare, while the 3 others show only 4 working, all active.

how can I make the devices agree on this?
 
Old 01-07-2009, 01:51 PM   #2
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
is it not possible to remove any reference to segment 4, the one that is marked as "removed"?


Code:
 mdadm -D /dev/md2

/dev/md2:
        Version : 00.90
  Creation Time : Thu May  1 22:41:34 2008
     Raid Level : raid5
  Used Dev Size : 14651136 (13.97 GiB 15.00 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Jan  5 15:39:03 2009
          State : active, degraded, Not Started
 Active Devices : 4
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 8c00dfaf:a414eba5:fa99d161:76122a73
         Events : 0.853386

    Number   Major   Minor   RaidDevice State
       0       8       33        0      active sync   /dev/sdc1
       1       8       19        1      active sync   /dev/sdb3
       2       8       97        2      active sync   /dev/sdg1
       3       8       81        3      active sync   /dev/sdf1
       4       0        0        4      removed

       5       8       51        -      spare   /dev/sdd3
dmesg gives me:

Code:
[ 3802.752955] raid5: device sdg1 operational as raid disk 2
[ 3802.752960] raid5: device sdf1 operational as raid disk 3
[ 3802.752963] raid5: device sdb3 operational as raid disk 1
[ 3802.752965] raid5: device sdc1 operational as raid disk 0
[ 3802.752967] raid5: cannot start dirty degraded array for md2
[ 3802.752970] RAID5 conf printout:
[ 3802.752972]  --- rd:5 wd:4
[ 3802.752973]  disk 0, o:1, dev:sdc1
[ 3802.752975]  disk 1, o:1, dev:sdb3
[ 3802.752976]  disk 2, o:1, dev:sdg1
[ 3802.752978]  disk 3, o:1, dev:sdf1
[ 3802.752980] raid5: failed to run raid set md2
[ 3802.752981] md: pers->run() failed ...
 
  


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
recover dirty, degraded software raid 1 after power failure Rascale Linux - Server 3 07-31-2008 12:00 PM
Degraded Array on Software Raid pcinfo-az Linux - Hardware 8 07-03-2008 10:43 AM
RAID help restoring a degraded array partition jahlewis Linux - Hardware 2 10-17-2006 07:55 PM
Trouble booting a degraded RAID-1 array aluchko Linux - Software 3 09-09-2006 10:26 PM
RAID 1 Degraded Array gsoft Debian 2 08-18-2006 02:17 PM


All times are GMT -5. The time now is 01:42 PM.

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