VM, CT migration error on btrfs storage

fazowy

Member
Mar 30, 2022
5
4
8
Hi.

Dual node cluster, btrfs type storage, last update for btrfs-progs (5.16.2-1~bpo11+1) breaks migration task for both vms and lxc containers.

Code:
# pveversion  
pve-manager/7.1-12/b3c09de3 (running kernel: 5.13.19-6-pve)

# apt policy btrfs-progs
btrfs-progs:
  Installed: 5.16.2-1~bpo11+1
  Candidate: 5.16.2-1~bpo11+1
  Version table:
 *** 5.16.2-1~bpo11+1 500
        500 http://download.proxmox.com/debian/pbs bullseye/pbs-no-subscription amd64 Packages
        500 http://download.proxmox.com/debian/pve bullseye/pve-no-subscription amd64 Packages
        100 /var/lib/dpkg/status
     5.10.1-2 500
        500 http://ftp.pl.debian.org/debian bullseye/main amd64 Packages

Migration log for simple uefi vm, no spanshots, nothing fancy:
Code:
2022-03-30 16:37:20 starting migration of VM 3032 to node 'hvr-pm-06' (192.168.215.6)
2022-03-30 16:37:22 found local disk 'local_btrfs_1:3032/vm-3032-disk-0.raw' (in current VM config)
2022-03-30 16:37:22 found local disk 'local_btrfs_1:3032/vm-3032-disk-1.raw' (in current VM config)
2022-03-30 16:37:22 copying local disk images
2022-03-30 16:38:06 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-30 16:38:06 ERROR: storage migration for 'local_btrfs_1:3032/vm-3032-disk-0.raw' to storage 'local_btrfs_1' failed - command 'set -o pipefail && pvesm export local_btrfs_1:3032/vm-3032-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=hvr-pm-06' root@192.168.215.6 -- pvesm import local_btrfs_1:3032/vm-3032-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ -delete-snapshot __migration__ -allow-rename 1' failed: exit code 2
2022-03-30 16:38:06 aborting phase 1 - cleanup resources
2022-03-30 16:38:06 ERROR: migration aborted (duration 00:00:46): storage migration for 'local_btrfs_1:3032/vm-3032-disk-0.raw' to storage 'local_btrfs_1' failed - command 'set -o pipefail && pvesm export local_btrfs_1:3032/vm-3032-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=hvr-pm-06' root@192.168.215.6 -- pvesm import local_btrfs_1:3032/vm-3032-disk-0.raw btrfs - -with-snapshots 0 -snapshot __migration__ -delete-snapshot __migration__ -allow-rename 1' failed: exit code 2
TASK ERROR: migration aborted

Going back to btrfs-progs=5.10.1-2 fixes the issue:
Code:
2022-03-30 17:52:32 starting migration of VM 3032 to node 'hvr-pm-06' (192.168.215.6)
2022-03-30 17:52:33 found local disk 'local_btrfs_1:3032/vm-3032-disk-0.raw' (in current VM config)
2022-03-30 17:52:33 found local disk 'local_btrfs_1:3032/vm-3032-disk-1.raw' (in current VM config)
2022-03-30 17:52:33 copying local disk images
2022-03-30 17:53:16 successfully imported 'local_btrfs_1:3032/vm-3032-disk-0.raw'
2022-03-30 17:53:16 volume 'local_btrfs_1:3032/vm-3032-disk-0.raw' is 'local_btrfs_1:3032/vm-3032-disk-0.raw' on the target
2022-03-30 17:53:20 successfully imported 'local_btrfs_1:3032/vm-3032-disk-1.raw'
2022-03-30 17:53:20 volume 'local_btrfs_1:3032/vm-3032-disk-1.raw' is 'local_btrfs_1:3032/vm-3032-disk-1.raw' on the target
2022-03-30 17:53:20 migration finished successfully (duration 00:00:48)
TASK OK
Maybe there is someone else testing btrfs storage in a cluster configuration that can verify this issue?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!