| View previous topic :: View next topic |
| Author |
Message |
tnt Veteran


Joined: 27 Feb 2004 Posts: 1121
|
Posted: Sat Jun 19, 2010 2:27 pm Post subject: mdadm add force sync question |
|
|
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 |
|
 |
BradN Advocate


Joined: 19 Apr 2002 Posts: 2352 Location: Wisconsin (USA)
|
Posted: Sat Jun 19, 2010 6:17 pm Post subject: |
|
|
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 |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2022 Location: Germany
|
Posted: Sun Jun 20, 2010 10:03 am Post subject: |
|
|
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 |
|
 |
|