Fedora Linux Support Community & Resources Center
  #1  
Old 13th June 2012, 02:02 PM
seabird Offline
Registered User
 
Join Date: Jan 2009
Location: Den Bosch, Netherlands
Posts: 260
windows_7ie
RAID mdadm

Hi everyone,

Fedora 16 keeps reporting one of my drives as bad. I pulled the disk out of my array and ran several test onto it, but all seems fine so I will ignore the warning. The problem I have now is that the disk doesn't want to be re-added into /dev/md0

First off, I failed and removed the drive:
Code:
mdadm /dev/md0 --fail /dev/sdd1
mdadm /dev/md0 -r /dev/sdd1
When trying to re-add it I get this:
Code:
 mdadm /dev/md0 -a /dev/sdd1
mdadm: /dev/sdd1 reports being an active member for /dev/md0, but a --re-add fails.
mdadm: not performing --add as that would convert /dev/sdd1 in to a spare.
mdadm: To make this a spare, use "mdadm --zero-superblock /dev/sdd1" first.
I do not want it to become a spare but a active drive again.

Where am I going wrong?
__________________
OS: Fedora 16
Casing: Chenbro RM21508B
Mainboard: ATX D2778
Processor: Intel Xeon W3550 (8 core)
Memory: 6Gb DDR3, ECC, 1333 MHz, PC3-10600
HD #1: OCZ Vertex 3 60Gb
Storage Drives: 4x 2Tb WD20EARS + 2x 2Tb WD20EARX
Graphics: Nvidia GeForce 210 Silent
PCI Card: Promise FastTrak TX4
Reply With Quote
  #2  
Old 16th June 2012, 11:32 AM
seabird Offline
Registered User
 
Join Date: Jan 2009
Location: Den Bosch, Netherlands
Posts: 260
windows_7ie
Re: RAID mdadm

ok, seems to re-add after a superblock zero

Code:
mdadm --zero-superblock /dev/sdd1
__________________
OS: Fedora 16
Casing: Chenbro RM21508B
Mainboard: ATX D2778
Processor: Intel Xeon W3550 (8 core)
Memory: 6Gb DDR3, ECC, 1333 MHz, PC3-10600
HD #1: OCZ Vertex 3 60Gb
Storage Drives: 4x 2Tb WD20EARS + 2x 2Tb WD20EARX
Graphics: Nvidia GeForce 210 Silent
PCI Card: Promise FastTrak TX4
Reply With Quote
  #3  
Old 18th June 2012, 03:57 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 824
linuxfirefox
Re: RAID mdadm

Yep, makes perfect sense.
Here's the problem; once the data on the removed disk is no longer synchronized with the rest of the array, it needs to be regenerated anyway. It is, therefore, unwilling to destroy what amounts to a *backup* of your array, or to pollute the still-running array, by readding a disk that is out of sync with the array.

Also... it seems that it told you to zero it out. Maybe next time pay attention to what it is telling you? Those messages aren't just for fun....
Reply With Quote
  #4  
Old 20th October 2012, 02:12 PM
Briago Offline
Registered User
 
Join Date: Dec 2010
Posts: 6
windows_7ie
Re: RAID mdadm

droidhacker: To be fair to seabird, the actual message says to zero-superblock if you want to add as a spare (I read this as a hot-spare, not active). It doesn't say that this is what you should do to sucessfully readd it to the active array.

After reading this post, I tried the zero-superblock command and it is now sync'ing the raid again.

Thank you for confirming the use of zero-superblock.
Reply With Quote
Reply

Tags
mdadm, raid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID 5 - mdadm jscheponik Hardware & Laptops 3 12th June 2008 07:14 PM
mdadm RAID 5 problem duke3000 Using Fedora 4 22nd January 2008 12:06 PM
mdadm: Expand RAID 5 CNLiberal Using Fedora 5 9th May 2007 03:52 AM
Mdadm -- Raid-10 BillT440 Using Fedora 1 7th December 2006 03:29 PM


Current GMT-time: 17:58 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat