From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id F05AC1FF09B for ; Wed, 25 Nov 2026 08:47:01 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id D6C9F215FB; Wed, 25 Nov 2026 08:46:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dualfroz.com; s=dkim; t=1795592815; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=xbg/goPR0zuRqhKEh/92mTa9HYVXPOY7/2Ndk/7jzI4=; b=z4gZE/m0sGgQ0pudwxeov4O45CgCTyFPeZAdP1qQTu882owFSy0YzDw8NBtIEtW9szwRDb L4iRM/Za74x50SW6zfZfgwTau+2nZyo0iOv10tHLZVRhKx/NBY1qFt+5HVY2iYMnd6bda5 LpudcL2nyCTaIqPsnr9i5j3ugDa5d8+BYt+A6XCHRcwLIrV08/LUbjtHwHowU7S4/kIFKo O2nL9M/XO7tG0UpcXqUb3pUgDgY+JmCTgfZMlchRNFU/eluW4t1zQc+3lWnj27dwb36nbF 1Rc0ZGk/SIMpTXyKNyLBoDttwVSEXYBB5lENDG6GuIOA4LqHlo529bdrkZHwbA== From: Michal Fox To: pve-devel@lists.proxmox.com Subject: [PATCH qemu-server] fix #6744: migrate: log the size of found local disks Date: Wed, 25 Nov 2026 07:46:53 +0000 Message-ID: <20261125074653.7-1-me@dualfroz.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.122 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: JRDU4CA7I2FRHTLUNSWI4CHMEO6C53E2 X-Message-ID-Hash: JRDU4CA7I2FRHTLUNSWI4CHMEO6C53E2 X-MailFrom: me@dualfroz.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The migration log lists the local disks it is going to copy, but not how big they are. When disks are copied offline, the progress output only reports the amount of data already transferred, so it is not possible to estimate how long the copy will take. The size is already queried for each local volume, so include it in the overview of found disks. Signed-off-by: Michal Fox --- ran make test, the migration test logs now show the disk sizes src/PVE/QemuMigrate.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/PVE/QemuMigrate.pm b/src/PVE/QemuMigrate.pm index d574f0c..1a44f9e 100644 --- a/src/PVE/QemuMigrate.pm +++ b/src/PVE/QemuMigrate.pm @@ -552,20 +552,21 @@ sub scan_local_volumes { foreach my $vol (sort keys %$local_volumes) { my $type = $replicatable_volumes->{$vol} ? 'local, replicated' : 'local'; my $ref = $local_volumes->{$vol}->{ref}; + my $size = render_bytes($local_volumes->{$vol}->{size}, 1); if ($ref eq 'attached') { &$log_error( "can't live migrate attached local disks without with-local-disks option\n", $vol, ) if $self->{running} && !$self->{opts}->{"with-local-disks"}; - $self->log('info', "found $type disk '$vol' (attached)\n"); + $self->log('info', "found $type disk '$vol' (attached, $size)\n"); } elsif ($ref eq 'unused') { - $self->log('info', "found $type disk '$vol' (unused)\n"); + $self->log('info', "found $type disk '$vol' (unused, $size)\n"); } elsif ($ref eq 'snapshot') { - $self->log('info', "found $type disk '$vol' (referenced by snapshot(s))\n"); + $self->log('info', "found $type disk '$vol' (referenced by snapshot(s), $size)\n"); } elsif ($ref eq 'pending') { - $self->log('info', "found $type disk '$vol' (pending change)\n"); + $self->log('info', "found $type disk '$vol' (pending change, $size)\n"); } elsif ($ref eq 'generated') { - $self->log('info', "found generated disk '$vol' (in current VM config)\n"); + $self->log('info', "found generated disk '$vol' (in current VM config, $size)\n"); } else { $self->log('info', "found $type disk '$vol'\n"); } -- 2.43.0