project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] V2P live mirror: pause-pivot-resume stalls the guest for ~24 s instead of 1–2 s

Open ThomasRie opened this issue 1 month ago • 2 comments

Describe the bug

In live mirror mode the log announces "Pausing VM for atomic pivot (~1-2s)". With a Windows Server 2025 guest (60 GB disk, Ceph RBD target) the pause took 24 s. A heartbeat inside the guest (timestamp written every second) shows the same gap:

14:48:20.260
14:48:44.659

With a Debian guest (32 GB) the pivot was not visible in the heartbeat; with Ubuntu (32 GB) it took about 24 s in the log as well.

For a mode advertised as near-zero downtime, a 24 s freeze on top of the boot over sshfs should at least be shown realistically.

Steps to Reproduce

  1. Live mirror migration of a Windows VM from ESXi to an RBD storage.
  2. Compare the timestamps of "Pausing VM for atomic pivot" and "Pause-pivot-resume complete".

Expected behavior

A pause close to the announced 1–2 s, or the log and dialog stating the realistic pause.

Environment

  • PegaProx Version: 1.4.1 (build 2026.10.24)
  • Installation Method: Debian package (pegaprox 1.4.1-1)
  • OS: Debian 13 (trixie)
  • UI: Corporate
  • Browser: Chrome (latest)
  • Behind Reverse Proxy? No
  • Source / Target: standalone ESXi 8.0U3 (VMFS6) → Proxmox VE 9, 3 nodes, Ceph RBD

Logs

[13:48:12] disk0: 100.0% (118 MB/s)
[13:48:15] All disks at 100% but not 'ready' - using pause-pivot-resume...
[13:48:15] Pausing VM for atomic pivot (~1-2s)...
[13:48:39] Pause-pivot-resume complete! (60.0 GB in 549s) - VM resumed on local storage ✓

Screenshots

n/a

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx
  • [x] I've put enough in here that someone can start on it without asking me three questions first
  • [x] I understand PegaProx is maintained by volunteers in their free time. Nobody is on call, and writing URGENT doesn't get anyone out of bed 🪄

ThomasRie avatar Nov 05 '26 14:11 ThomasRie

Shipped in 1.5.0. The live mirror only pauses the guest until QEMU takes the pivot now. Closing, thanks for the timings in the report.

MrMasterbay avatar Nov 15 '26 01:11 MrMasterbay

Retested on 1.5.0-1: confirmed fixed. Live Mirror of a 60 GB Windows VM: "guest paused 2.5s" during pause-pivot-resume (26 s on 1.4.1 with the same VM).

ThomasRie avatar Nov 16 '26 09:11 ThomasRie