LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 11-03-2009, 09:36 AM   #1
Melonheadjr44
LQ Newbie
 
Registered: Nov 2009
Posts: 1
Thanked: 0
DegradedArray event on /dev/md1


[Log in to get rid of this advertisement]
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
windows_vista Melonheadjr44 is offline     Reply With Quote
Old 11-04-2009, 12:02 PM   #2
bertl
LQ Newbie
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat (others in the past)
Posts: 28
Thanked: 10
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
linuxubuntu bertl is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:37 AM
A DegradedArray event has been detected on md device /dev/md1. payon1 Linux - Newbie 3 11-25-2008 09: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 06:56 AM
Software RAID; can't create /dev/md1 dplmartin Linux - Software 3 05-16-2006 04:47 AM
Mandrake 10.1 not creating /dev/md1 Meta42 Mandriva 1 11-23-2004 07:48 AM


All times are GMT -5. The time now is 02:13 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration