Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save razum2um/e0cdd36bc328e716b594650b19a18421 to your computer and use it in GitHub Desktop.

Select an option

Save razum2um/e0cdd36bc328e716b594650b19a18421 to your computer and use it in GitHub Desktop.

Revisions

  1. @mailinglists35 mailinglists35 revised this gist Oct 23, 2018. No changes.
  2. @mailinglists35 mailinglists35 created this gist Oct 23, 2018.
    18 changes: 18 additions & 0 deletions zfs-veracrypt-failed-usb-cable.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    dmsetup table | grep veracrypt
    veracrypt2: 0 3904923136 crypt aes-xts-plain64 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 256 8:34 256
    dmsetup reload veracrypt2 --table "0 3904923136 error"
    dmsetup suspend --noflush veracrypt2
    dmsetup resume veracrypt2
    (?)zpool clear backup-usb
    remove from veracrypt UI
    echo "0 3904923136 zero" | dmsetup reload veracrypt2
    dmsetup suspend --noflush veracrypt2
    dmsetup resume veracrypt2
    dmsetup remove veracrypt2
    re-setup dm table from veracrypt UI
    zpool clear backup-usb
    scrub will start automatically
    errors will be found
    export pool
    reimport
    scrub again