LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-30-2009, 03:49 AM   #1
D-a-a-n
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
mdadm problem


Hi,

I have 8 hard disks in a raid (sd[abcdefgh]).
When booting my openfiler system I get this error:
mdadm: /dev/md1 assembled from 5 drives - not enough to start the array.
Error: /bin/mdadm exited abnormally with value 1!

When I do an mdadm --examine /dev/sda3

I see that sdb3, sdc3, sdd3 are "faulty removed".
What does this mean, and how can I resolve this?

Greetz
 
Old 03-30-2009, 04:45 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
It looks like your drives are considered faulty. The following is a software RAID test I'd done to see if the RAID worked. You might use -a to try and add a disk back into the array.

I hope you have a good backup. You might want to rad up on the error you get before doing any of this.


Simulate a failure to the disk... expect an email:
Code:
# mdadm --manage --set-faulty /dev/md3 /dev/sda3
Now check the status of the RAID
Code:
# mdadm --detail /dev/md3
Remove the failed partition
Code:
# mdadm /dev/md3 -r /dev/sda3
Add it back into the raid
Code:
# mdadm /dev/md3 -a /dev/sda3
Monitor the RAID's health
Code:
# mdadm --detail /dev/md3
Hope this helps.
 
Old 03-30-2009, 05:11 AM   #3
D-a-a-n
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thx for your reply,
I booted from a live cd.
When I do a: mdadm --manage --set-faulty /dev/md3 /dev/sda3
I get this: mdadm: error opening /dev/md3: No such file or directory.
That is because the array could not be assembled, so there isn't any /dev/md*

This is what I already tried:
mdadm -A /dev/md0 /dev/sd[abcdefgh]1 >> worked, I can mount /dev/md0 and can see the contents of the first partition


mdadm -A /dev/md0 /dev/sd[abcdefgh]3 >> doesn't work, I get this: mdadm : /dev/md0 assembled from 5 drives - not enough to start the array.

Greetz
 
Old 03-30-2009, 06:30 AM   #4
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi again,

I think you need to let us know exactly what your RAID setup is.

Do you have 3 RAIDs (md0, md1, md2)?

Quote:
When I do a: mdadm --manage --set-faulty /dev/md3 /dev/sda3
I get this: mdadm: error opening /dev/md3: No such file or directory.
That is because the array could not be assembled, so there isn't any /dev/md*
Nop. That's because you did a cut and paste from my example without changing the devices

Quote:
mdadm -A /dev/md0 /dev/sd[abcdefgh]1 >> worked, I can mount /dev/md0 and can see the contents of the first partition


mdadm -A /dev/md0 /dev/sd[abcdefgh]3 >> doesn't work, I get this: mdadm : /dev/md0 assembled from 5 drives - not enough to start the array.
Here you seem to be mounting sdX1 to md0. Then you go and do the same by mounting sdX3 to md0. Should it not be md3?

Please send us the exact config you have and I'll do my best to try and help.

Do you have a backup of your data?
 
Old 03-31-2009, 04:32 AM   #5
D-a-a-n
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Whoa! Problem solved.
I had a raid6 (md1 = /dev/sd[abcdefgh]3 ) for my root directory. 3 of these partitions were set as faulty removed.
That's one too much, so I erased the superblock from 1 hard drive, and reassembled the array afterwards and it worked!

mdadm --zero-superblock /dev/sdb3
mdadm --create /dev/md0 --verbose --level=6 --raid-devices=8 /dev/sd[abcdefgh]3

I did this because I couldn't believe the drive was broken and so the raid info wasn't correct.

Greetz Daan
 
  


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
mdadm problem debian newbie Linux - Software 5 01-16-2009 07:42 PM
MDADM screws up the LVM partitions? Can't mount the LVMs after mdadm stopped alirezan1 Linux - Newbie 3 11-18-2008 04:42 PM
mdadm - pvcreate, problem. zaxonus Linux - Software 1 11-06-2008 08:45 AM
unable to load MDADM module BUT mdadm works?!?!?! alirezan1 Linux - Software 2 09-08-2008 07:58 PM
mdadm says "mdadm: /dev/md1 not identified in config file" when booting FC7 raffeD Linux - Server 1 08-11-2008 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:49 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