Thread (10 messages) 10 messages, 4 authors, 2012-12-13

Re: failed raid re-create changed dev size

flat view

From: Robin Hill <hidden>
Date: 2012-12-11 09:27:10

On Tue Dec 11, 2012 at 11:01:35AM +0200, Andris Berzins wrote:
Quoting "Mikael Abrahamsson" [off-list ref]:
quoted
On Tue, 11 Dec 2012, Andris Berzins wrote:
quoted
I found on internet that this can be fixed if I re-create raid with the same
configuration, but with dead drive set as 'missing'.
This is extremely dangerous. You would have been better off by first
trying --assemble --force.
quoted
However, I can not mount md1 and looks like it contains random data. The
order is correct. However, I noticed that new raid device size is
different from old one.
Your data offset is different, most likely you're not using the same mdadm
version as was initially used to create the raid. Mdadm defaults have
changed over time regarding chink size, data offset and others.
Thank you!
I did not notice that.
Looks that I will have to try downgrade kernel:
http://serverfault.com/questions/427683/what-parameters-to-mdadm-to-re-create-md-device-with-payload-starting-at-
0x2200
No, that's an entirely unrelated issue (though if you are running one of
the affected kernel versions you really ought to up/downgrade it).
quoted
I don't know off the top of my head how to change the mdadm data offset
unfortunately.
There's no way in the current mdadm releases to do so. Neil does have a
version in git which will allow specifying the data offsets on a
disk-by-disk basis (as it is possible to have multiple offsets within an
array). If all the disks in your array were using an offset of 2048
though, then you'll just need to downgrade mdadm to 3.2.3 (or slightly
earlier) - from what I can find it was changed to 262144 for 3.2.4 (it
was 272 pre version 3.0, so don't go any further back than that).

You will likely have lost some data though, as the new superblocks will
have overwritten part of the data, so make sure you run a fsck
afterwards (start with fsck -n though, to make sure the overall array
looks okay first).

Good luck (and please make sure you try just forcing an assemble next
time),
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        [off-list ref] |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help