Share your knowledge at the LQ Wiki.
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 01-09-2013, 06:32 PM   #1
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
Question Device in software RAID 10 array: clean, degraded. Ouch?

Hi everyone

Even though this is a software RAID question I thought I'd post it in hardware as it sort of leans more that way IMO.

I've got 4x 500GB drives in software RAID.
/dev/md0 is RAID 1 and mounted to /boot
/dev/md1 is RAID 10 and is swap
/dev/md2 is RAID 10 and is the main system and data device

I looked at mdadm this evening and noticed on md2
State : clean, degraded
    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       0        0        1      removed
       2       8       35        2      active sync   /dev/sdc3
       3       8       51        3      active sync   /dev/sdd3
But checking md0 and md1 all drives were active sync and the device state was clean.

Here's the full outputs from mdadm for each device and also the output from /proc/mdstat

So it looks like /dev/sdb1 and /dev/sdb2 are functioning in /dev/md0 and /dev/md1 respectively.
But /dev/sdb3 has dropped out (or removed, apparently) from /dev/md2

Is this a major problem? i.e. a data loss problem?

With RAID 10 my data is ok unless I lose the same drive on the opposite stripe, or so I believe.

Or is it something weird with just one device that can be re-added?

Anyone seen anything like this before?

I'm going to grep logs and check when this might have happened but unfortunately I've not been able to check this machine for a while so it might have been like this for a long time.

Cheers, B
Old 01-09-2013, 06:57 PM   #2
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
Ok so I did some log grepping and noticed this pair of log lines...
Dec  9 04:25:37 hostname smartd[3199]: Device: /dev/sdb, 1 Currently unreadable (pending) sectors
Dec  9 04:25:37 hostname smartd[3199]: Device: /dev/sdb, 1 Offline uncorrectable sectors
Repeating every 30 minutes so this has been the case for a while.

But then on Jan 7th an idiot user rebooted the server, thinking it would solve a mail relay problem. Here's the the boot from /var/log/messages...

Anyone know what might have happened to /dev/sdb3?
From the smartd warnings it looks like it's failed a SMART data check.

Why do /dev/sdb1 and /dev/sdb2 appear to be functioning ok and just /dev/sdb3 failed?
Just a particular sector that happens to be in sdb3?

Is it possible to re-add this drive to the array?

Or should I bin it and replace with a fresh drive?

Cheers, B

Last edited by batfastad; 01-09-2013 at 06:59 PM.


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
RAID is clean but degraded and PV is removed depam Linux - Hardware 0 01-30-2012 08:35 PM
dirty degraded md raid array edgjerp Linux - Hardware 1 01-07-2009 01:51 PM
Degraded Array on Software Raid pcinfo-az Linux - Hardware 8 07-03-2008 10:43 AM
Raid-5 degraded array but shows clean problem jacktripper1000 Linux - Software 4 03-10-2008 01:04 AM
RAID 1 Degraded Array gsoft Debian 2 08-18-2006 02:17 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:19 AM.

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