I'm trying to migrate a VM from a local btrfs storage to another server with local btrfs storage.
It looks like the error cannot flip ro->rw with received_uuid set comes from btrfs-clone. I retried after upgrading to kernel 5.15, but the result is the same.
Code:
2022-03-23 21:25:40 starting migration of VM 504 to node 'r2d2' (192.168.80.6)
2022-03-23 21:25:40 found local disk 'local-btrfs-sanstor:504/vm-504-disk-0.raw' (in current VM config)
2022-03-23 21:25:40 copying local disk images
2022-03-23 21:26:31 btrfs error: ERROR: cannot flip ro->rw with received_uuid set, use force if you really want that
send/receive failed, cleaning up snapshot(s)..
2022-03-23 21:26:32 ERROR: storage migration for 'local-btrfs-sanstor:504/vm-504-disk-0.raw' to storage 'local-btrfs-sanstor' failed - command 'set -o pipefail && pvesm export local-btrfs-sanstor:504/vm-504-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=r2d2' root@192.168.80.6 -- pvesm import local-btrfs-sanstor:504/vm-504-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ -delete-snapshot __migration__ -allow-rename 1' failed: exit code 2
2022-03-23 21:26:32 aborting phase 1 - cleanup resources
2022-03-23 21:26:32 ERROR: migration aborted (duration 00:00:53): storage migration for 'local-btrfs-sanstor:504/vm-504-disk-0.raw' to storage 'local-btrfs-sanstor' failed - command 'set -o pipefail && pvesm export local-btrfs-sanstor:504/vm-504-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=r2d2' root@192.168.80.6 -- pvesm import local-btrfs-sanstor:504/vm-504-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ -delete-snapshot __migration__ -allow-rename 1' failed: exit code 2
TASK ERROR: migration aborted