LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-03-2009, 08:36 AM   #1
Melonheadjr44
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
DegradedArray event on /dev/md1


Hi,

For the past weeks, when restarting the server, I get this email about a degradedArray. So we bought a new harddrive. But I am unsure which one to replace and how to do so.

Also, when booting the server right now, it automatically goes on hard disk 0 and then the server doesnt boot, so I have to select the boot device and boot on hard disk 1 for our server to boot up.

Here's the email error message I get:

Quote:
A DegradedArray event had been detected on md device /dev/md1.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid1]
md1 : active raid1 sdb2[0]
290953088 blocks [2/1] [U_]

md0 : active raid1 sdb1[0] sda1[1]
2008000 blocks [2/2] [UU]

unused devices: <none>
Why is it md1 that is degraded if it has more blocks? What do I do from here?

Thanks
 
Old 11-04-2009, 11:02 AM   #2
bertl
Member
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat, Angstrom (others in the past)
Posts: 36

Rep: Reputation: 22
It's more likely to come across a bad sector because it's larger, basically. The fact that md0 is still in one piece seems to indicate your disk as such is still working (spinning, delivering data) but you might want to try reading/writing from/to md0 a bit too, if it is mounted.

It even happens that the raid is considered broken because there was a harmless disk timeout, that happens too. An example from my raid set:

Code:
# cat /proc/mdstat
Personalities : [raid1] 
..
md0 : active raid1 sda1[0] sdb1[1]
      96256 blocks [2/2] [UU]
      
unused devices: <none>
Now I set sdb1 to forced faulty

Code:
# mdadm --manage --fail /dev/md0 /dev/sdb1
mdadm: set /dev/sdb1 faulty in /dev/md0
# cat /proc/mdstat 
Personalities : [raid1] 
..
md0 : active raid1 sda1[0] sdb1[2](F)
      96256 blocks [2/1] [U_]
      
unused devices: <none>
This would be a typical situation after hardware failure, or sometimes a more harmless problem such as a timeout. In your case it isn't marked faulty, more like after

Code:
# mdadm --manage --remove /dev/md0 /dev/sdb1
mdadm: hot removed /dev/sdb1
# cat /proc/mdstat 
Personalities : [raid1] 
..    
md0 : active raid1 sda1[0]
      96256 blocks [2/1] [U_]
      
unused devices: <none>
So what you could try is

Code:
# mdadm --manage --add /dev/md0 /dev/sdb1
mdadm: re-added /dev/sdb1
# cat /proc/mdstat 
Personalities : [raid1] 
..      
md0 : active raid1 sdb1[2] sda1[0]
      96256 blocks [2/1] [U_]
      [===========>.........]  recovery = 58.9% (57920/96256) finish=0.0min speed=28960K/sec
      
unused devices: <none>
It should do a resync, which can take quite long if you have a large partition, even longer when the machine is also very busy. If this doesn't work, or if in a couple of days your RAID set fails again, you really do need to replace the disk. A kind soul wrote up a howto for that at http://www.howtoforge.com/replacing_..._a_raid1_array

-Bert
 
Old 12-07-2009, 08:05 AM   #3
Melonheadjr44
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the link. I know what to do now but I am still confused on one thing.

Quote:
Quote:
A DegradedArray event had been detected on md device /dev/md1.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid1]
md1 : active raid1 sdb2[0]
290953088 blocks [2/1] [U_]

md0 : active raid1 sdb1[0] sda1[1]
2008000 blocks [2/2] [UU]

unused devices: <none>
If my degraded array is on md1 ( mising sda2 ), why does md1 have so much more blocks then md0. and by pulling out md1 wont I lose some data ( since blocks are smaller )
 
  


Reply



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
Cannot create /dev/md1 using mdadm after /dev/md0 is created dwong05 Linux - Newbie 1 05-04-2009 02:37 AM
A DegradedArray event has been detected on md device /dev/md1. payon1 Linux - Newbie 3 11-25-2008 08:16 AM
/dev/md1 nearly full - how do I work out which files/directories are on that disk? trumpet900 Linux - Newbie 1 07-26-2007 05:56 AM
Software RAID; can't create /dev/md1 dplmartin Linux - Software 3 05-16-2006 03:47 AM
Mandrake 10.1 not creating /dev/md1 Meta42 Mandriva 1 11-23-2004 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration