I am trying to recover from a degraded RAID array. I stupidly used mdadm --create somewhere along the way, and now a couple of my devices have incorrect superblocks. Luckily I kept a copy of the old superblocks:
/dev/sdd1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 7318877d:a7538da2:dbdff5e9:613cc676
Name : vern:2
Creation Time : Thu Oct 20 21:58:58 2011
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 1953517954 (931.51 GiB 1000.20 GB)
Array Size : 1953517568 (1863.02 GiB 2000.40 GB)
Used Dev Size : 1953517568 (931.51 GiB 1000.20 GB)
Data Offset : 2048 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 3dc62a0d:71ad83cf:f0dea827:6919f67c
Update Time : Mon Mar 4 19:53:30 2013
Checksum : a1b473f6 - correct
Events : 152880
Layout : left-symmetric
Chunk Size : 512K
Comparing this to the new superblock:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 53e45e96:bc283e07:77748762:24fade80
Name : Velma:2 (local to host Velma)
Creation Time : Fri May 3 17:35:48 2013
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 1953257858 (931.39 GiB 1000.07 GB)
Array Size : 1953257472 (1862.77 GiB 2000.14 GB)
Used Dev Size : 1953257472 (931.39 GiB 1000.07 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : clean
Device UUID : bae87034:ba42a7ed:c4fa2854:5888d619
Update Time : Fri May 3 17:35:48 2013
Checksum : b3c99dd4 - correct
Events : 0
Layout : left-symmetric
Chunk Size : 512K
The major difference here is in the data offset. If I can manually set the data offset back to 2048 sectors, then I stand a fighting chance of recovering the data in the RAID volume.
So... how can I set this offset?
man mdadmhow to influence that. – Hauke Laging May 03 '13 at 18:49mdadm, they have been added to the array with different data offsets. – Kkkev May 03 '13 at 19:00