SOLVED - Re: md raid0 with overwritten superblock on 1/4 disks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Funny how the answer is obvious once you ask.

I noticed the "Data Offset" was 2048 sectors.

On the newly-created md, it was 16 sectors, I think because it was a
device mapper overlay and not a real block device.

I found this page:
http://www.thomas-krenn.com/en/wiki/Linux_Software_RAID

Got the mdadm development version that allows setting data offset.

  724  parallel truncate -s4000G overlay-{/} ::: $DEVICES
  725  parallel 'size=$(blockdev --getsize {}); loop=$(losetup -f --show -- overlay-{/}); echo 0 $size snapshot {} $loop P 8 | dmsetup create {/}' ::: $DEVICES
  726  cat /proc/mdstat 
  727  mdadm -S /dev/md127
  728  ~/src/mdadm-40c9a66/mdadm --create  /dev/md127  --data-offset=1024  -v -l 0 -n 4 $OVERLAYS

That fixed it up (data offset is in k, not sectors).

Cheers.
-- 
http://www.subspacefield.org/~travis/
Remediating... LIKE A BOSS


Attachment: pgpCVhkNW0QSo.pgp
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux