Sadly I don’t have any snapshots outside of the partition.
I thought using clonezilla would be rather safe D:
The backup did not damage the source but the source and destination are the same hardware so I restored the backup into the vm after overriding the ssd with proxmox and then noticed the issue.
server ssd → nas, proxmox → server ssd, nas → proxmox virtual hdd
btrfs rescue chunk-recover -v /dev/mapper/luks
All Devices:
Device: id = 1, name = /dev/mapper/luks
Scanning: DONE in dev0
DEVICE SCAN RESULT:
Filesystem Information:
sectorsize: 4096
nodesize: 16384
tree root generation: 613435
chunk root generation: 613432
All Devices:
Device: id = 1, name = /dev/mapper/luks
All Block Groups:
Block Group: start = 136429174784, len = 1073741824, flag = 1
Block Group: start = 137502916608, len = 1073741824, flag = 1
Block Group: start = 138576658432, len = 1073741824, flag = 1
Block Group: start = 139650400256, len = 1073741824, flag = 1
Block Group: start = 140724142080, len = 1073741824, flag = 1
Block Group: start = 141797883904, len = 1073741824, flag = 1
Block Group: start = 142871625728, len = 1073741824, flag = 1
Block Group: start = 143945367552, len = 1073741824, flag = 1
…
Block Group: start = 373726117888, len = 1073741824, flag = 24
Block Group: start = 374799859712, len = 1073741824, flag = 1
Block Group: start = 375873601536, len = 33554432, flag = 22
Block Group: start = 375907155968, len = 1073741824, flag = 24
Block Group: start = 376980897792, len = 1073741824, flag = 1
Block Group: start = 378054639616, len = 1073741824, flag = 1
…
All Chunks:
Chunk: start = 136429174784, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 1048576
Chunk: start = 137502916608, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 1074790400
Chunk: start = 138576658432, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 68758274048
Chunk: start = 139650400256, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 69832015872
Chunk: start = 140724142080, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 70905757696
Chunk: start = 141797883904, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 71979499520
Chunk: start = 142871625728, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 73053241344
…
[ 0] Stripe: devid = 1, offset = 277064187904
Chunk: start = 373726117888, len = 1073741824, type = 24, num_stripes = 2
Stripes list:
[ 0] Stripe: devid = 1, offset = 55873372160
[ 1] Stripe: devid = 1, offset = 56947113984
Chunk: start = 374799859712, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 102044270592
Chunk: start = 375873601536, len = 33554432, type = 22, num_stripes = 2
Stripes list:
[ 0] Stripe: devid = 1, offset = 2253389824
[ 1] Stripe: devid = 1, offset = 2286944256
Chunk: start = 375907155968, len = 1073741824, type = 24, num_stripes = 2
Stripes list:
[ 0] Stripe: devid = 1, offset = 61242081280
[ 1] Stripe: devid = 1, offset = 62315823104
Chunk: start = 376980897792, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 278137929728
…
All Device Extents:
Device extent: devid = 1, start = 1048576, len = 1073741824, chunk offset = 136429174784
Device extent: devid = 1, start = 1074790400, len = 1073741824, chunk offset = 137502916608
Device extent: devid = 1, start = 2253389824, len = 33554432, chunk offset = 375873601536
Device extent: devid = 1, start = 2286944256, len = 33554432, chunk offset = 375873601536
Device extent: devid = 1, start = 2320498688, len = 1073741824, chunk offset = 400603217920
Device extent: devid = 1, start = 3394240512, len = 1073741824, chunk offset = 401676959744
Device extent: devid = 1, start = 4467982336, len = 1073741824, chunk offset = 402750701568
Device extent: devid = 1, start = 16144924672, len = 1073741824, chunk offset = 396308250624
Device extent: devid = 1, start = 17218666496, len = 1073741824, chunk offset = 397381992448
Device extent: devid = 1, start = 18292408320, len = 1073741824, chunk offset = 403824443392
Device extent: devid = 1, start = 19366150144, len = 1073741824, chunk offset = 404898185216
Device extent: devid = 1, start = 20439891968, len = 1073741824, chunk offset = 405971927040
Device extent: devid = 1, start = 21513633792, len = 1073741824, chunk offset = 407045668864
…
CHECK RESULT:
Recoverable Chunks:
Chunk: start = 136429174784, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 1048576
Block Group: start = 136429174784, len = 1073741824, flag = 1
Device extent list:
[ 0]Device extent: devid = 1, start = 1048576, len = 1073741824, chunk offset = 136429174784
Chunk: start = 137502916608, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 1074790400
Block Group: start = 137502916608, len = 1073741824, flag = 1
Device extent list:
[ 0]Device extent: devid = 1, start = 1074790400, len = 1073741824, chunk offset = 137502916608
…
Chunk: start = 375873601536, len = 33554432, type = 22, num_stripes = 2
Stripes list:
[ 0] Stripe: devid = 1, offset = 2253389824
[ 1] Stripe: devid = 1, offset = 2286944256
Block Group: start = 375873601536, len = 33554432, flag = 22
Device extent list:
[ 0]Device extent: devid = 1, start = 2286944256, len = 33554432, chunk offset = 375873601536
[ 1]Device extent: devid = 1, start = 2253389824, len = 33554432, chunk offset = 375873601536
Chunk: start = 375907155968, len = 1073741824, type = 24, num_stripes = 2
Stripes list:
[ 0] Stripe: devid = 1, offset = 61242081280
[ 1] Stripe: devid = 1, offset = 62315823104
Block Group: start = 375907155968, len = 1073741824, flag = 24
Device extent list:
[ 0]Device extent: devid = 1, start = 62315823104, len = 1073741824, chunk offset = 375907155968
[ 1]Device extent: devid = 1, start = 61242081280, len = 1073741824, chunk offset = 375907155968
Chunk: start = 376980897792, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 278137929728
Block Group: start = 376980897792, len = 1073741824, flag = 1
Device extent list:
[ 0]Device extent: devid = 1, start = 278137929728, len = 1073741824, chunk offset = 376980897792
…
Unrecoverable Chunks:
Total Chunks: 172
Recoverable: 172
Unrecoverable: 0
Orphan Block Groups:
Orphan Device Extents:
corrupt node: root=1 block=373727870976 slot=0, corrupt node: root=1 block=373727870976, nritems too large, have 15 expect range [1,0]
Couldn’t read tree root
open with broken chunk error
Chunk tree recovery failed