Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mdadm add force sync question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1130

PostPosted: Sat Jun 19, 2010 2:27 pm    Post subject: mdadm add force sync question Reply with quote

I have mdadm raid5 array with internal bitmap.

I've set faulty one of array members.
I've removed that member.
I want to add it back with full sync to array (that member had some reallocated sectors I've repaired).

How to make mdadm ignore bitmap found on that device and do full sync instead of partial (based on bitmap differenes)?

Would running

Quote:
--zero-superblock
If the device contains a valid md superblock, the block is overwritten with zeros. With --force the block where the superblock would be is overwritten even if it doesn't appear to be valid.


on the removed device help?
_________________
gentoo user
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2383
Location: Wisconsin (USA)

PostPosted: Sat Jun 19, 2010 6:17 pm    Post subject: Reply with quote

I'd suggest zeroing out the raid partition on the drive to add with cat or dd just to be safe. Maybe it's not necessary but it doesn't take too long.

I didn't know they added a bitmap feature, wouldn't it actually have to be a hashmap to be safe? Or am I misunderstanding what it does?
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2031
Location: Germany

PostPosted: Sun Jun 20, 2010 10:03 am    Post subject: Reply with quote

the bitmap is just a 'I wanted to write there' file. Think about it as a journal, just not for the fs.

dd the device, partition it, add it.
_________________
AidanJT wrote:

Libertardian denial of reality is wholly unimpressive and unconvincing, and simply serves to demonstrate what a bunch of delusional fools they all are.

Satan's got perfectly toned abs and rocks a c-cup.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum