NAS326: Restore Deleted JBOD Volume

13»

All Replies

  • SpamMaster50000
    SpamMaster50000 Posts: 15  Freshman Member
    First Comment
    So i guess it's testdisk now... Or do you see something where i made an error?

  • Mijzelf
    Mijzelf Posts: 2,761  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary
    So i guess it's testdisk now... Or do you see something where i made an error?

    When using --build, you'll have to provide a --data-offset=16, else the raid header space will be used as well.

  • SpamMaster50000
    SpamMaster50000 Posts: 15  Freshman Member
    First Comment
    Hmm, not good

    the problem was that my version of mdadm doesn't yet know the data offset option

    ~ # mdadm --build --assume-clean --level=linear --raid-devices=2 --rounding=64K --data-offset=16 /dev/md2 /dev/sda3 /dev/sdb3
    mdadm: unrecognized option '--data-offset=16'
    Usage: mdadm --help
      for help


  • SpamMaster50000
    SpamMaster50000 Posts: 15  Freshman Member
    First Comment
    Can i use losetup instead?
  • Mijzelf
    Mijzelf Posts: 2,761  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary
    Can i use losetup instead?
    Good thinking! Yes, that should be possible.
    losetup /dev/loop1 -o 8192 /dev/sda3
    losetup /dev/loop2 -o 8192 /dev/sdb3
    mdadm --build <arguments> /dev/md2 /dev/loop1 /dev/loop2

Consumer Product Help Center