#978140 partclone: partclone.btrfs creates unusable filesystem

Package:
partclone
Source:
partclone
Description:
Utility to clone and restore a partition
Submitter:
Markus Grunwald
Date:
2020-12-26 16:15:03 UTC
Severity:
important
#978140#5
Date:
2020-12-26 16:03:36 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

I tried to clone a btrfs filesystem from one disk to another:

# partclone.btrfs --dev-to-dev --ncurse --source=/dev/sda --output /dev/mapper/srv-share-backup

The program finished without error. When I wanted to change the uuid of the clone, I got these messages:

# btrfstune -u /dev/mapper/srv-share-backup
checksum verify failed on 3147718459392 found 0A18C498 wanted F41D5B99
checksum verify failed on 3147718459392 found 0A18C498 wanted F41D5B99
checksum verify failed on 3147718459392 found 005A7C70 wanted F46C02BF
checksum verify failed on 3147718459392 found 0A18C498 wanted F41D5B99
bad tree block 3147718459392, bytenr mismatch, want=3147718459392, have=17426986558672537313

I tried to run btrfsck /dev/mapper/srv-share-backup, but got the same messages. I was not able to repair the clone.
My second attempt using dd worked without a problem.