LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2012, 11:38 AM   #1
andrew.durnez
LQ Newbie
 
Registered: Apr 2012
Location: Ghent
Distribution: Debian & Gentoo
Posts: 4

Rep: Reputation: Disabled
MDADM gives weird results


If i type : mdadm --detail /dev/md0
Then i'll get:
----------------------------------------
/dev/md0:
Version : 1.2
Creation Time : Tue May 24 20:47:56 2011
Raid Level : raid1
Array Size : 96244 (94.00 MiB 98.55 MB)
Used Dev Size : 96244 (94.00 MiB 98.55 MB)
Raid Devices : 3
Total Devices : 2
Persistence : Superblock is persistent

Update Time : Sat Apr 14 17:29:49 2012
State : clean, degraded
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Name : zeus:0
UUID : d76edb30:3e9ff595:2a0a18dd:24931800
Events : 1744

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
2 0 0 2 removed
----------------------------------------
/proc/mdstat file:

Personalities : [raid1]
md2 : active raid1 sda3[0] sdb3[1]
241169272 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
3905524 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
96244 blocks super 1.2 [3/2] [UU_]

----------------------------------------
How can I make the "degraded" status to become normal "clean"?

Thnx in advance!

Last edited by andrew.durnez; 04-14-2012 at 11:43 AM.
 
Old 04-15-2012, 02:45 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You didn't mention which OS you're using?

Anyways, if you're sure that the faulty partition or drive is OK, then you can try re-adding the partition/drive again -

Code:
# mdadm /dev/md0 --add /dev/whatever-partition/drive
whatever-partition/drive - sda, sdb, whatever is yours.

Last edited by Satyaveer Arya; 04-15-2012 at 02:46 PM.
 
Old 04-15-2012, 09:13 PM   #3
andrew.durnez
LQ Newbie
 
Registered: Apr 2012
Location: Ghent
Distribution: Debian & Gentoo
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hello - the OS that I'm using is Debian.

But the weird part of the whole post is that i don't have any other partitions to add on md0.
So i don't understand why mdadm says "removed".
 
Old 04-16-2012, 02:47 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You don't have to add extra partition, I didn't mention to add another partition. I'm asking you to re-add the same partition mounted on /dev/md0, which shows State : clean, degraded.
 
1 members found this post helpful.
Old 04-16-2012, 07:33 AM   #5
andrew.durnez
LQ Newbie
 
Registered: Apr 2012
Location: Ghent
Distribution: Debian & Gentoo
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thnx - i'll give it a try...

Unfortunately: mdadm: Cannot open /dev/sdb1: Device or resource busy
(it's my boot partition)
 
Old 04-16-2012, 08:04 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You can also refer to this link also, http://www.iceteks.com/articles.php/linuxmdadmraid/3
 
  


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
Weird problem with software raid-5 mdadm NewAgeRetroHippie Linux - Server 3 02-21-2011 08:13 AM
Weird results from CHKrootkit jim.thornton Linux - Security 3 01-30-2008 07:25 AM
Weird behaviour of mdadm/software RAID5 robbe751 Linux - Software 2 02-03-2007 10:32 PM
Weird behaviour of mdadm/software RAID5 robbe751 Linux - Hardware 2 02-03-2007 01:55 AM
Weird results with netstat nekromancer Linux - Networking 3 02-17-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 PM.

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