NAS326: Restore Deleted JBOD Volume

Options
13»

All Replies

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

  • Mijzelf
    Mijzelf Posts: 2,682  Guru Member
    Community MVP First Anniversary 10 Comments Friend Collector
    Options
    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
    10 Comments
    Options
    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
    10 Comments
    Options
    Can i use losetup instead?
  • Mijzelf
    Mijzelf Posts: 2,682  Guru Member
    Community MVP First Anniversary 10 Comments Friend Collector
    Options
    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