Live migration with snapshots should be possible for zfspool storage, but I am getting the error "online storage migration not possible if snapshot exists".
The block at line 520 in QemuMigrate.pm is never reached because of the die statement at line 519.If I comment out line 519 and restart, live migration works correctly. EDIT: Loses snapshots, see reply in thread.
qemu-server 7.1-4
The block at line 520 in QemuMigrate.pm is never reached because of the die statement at line 519.
qemu-server 7.1-4
513 if (defined($snaprefs)) {
514 $local_volumes->{$volid}->{snapshots} = 1;
515
516 # we cannot migrate shapshots on local storage
517 # exceptions: 'zfspool' or 'qcow2' files (on directory storage)
518
519 die "online storage migration not possible if snapshot exists\n" if $self->{running};
520 if (!($scfg->{type} eq 'zfspool'
521 || ($scfg->{type} eq 'btrfs' && $local_volumes->{$volid}->{format} eq 'raw')
522 || $local_volumes->{$volid}->{format} eq 'qcow2'
523 )) {
524 die "non-migratable snapshot exists\n";
525 }
526 }
527
Last edited: