]> git.proxmox.com Git - proxmox-backup.git/commit
file-restore: dynamically increase memory of vm for zpools
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 31 Oct 2022 11:39:53 +0000 (12:39 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 7 Nov 2022 12:29:34 +0000 (13:29 +0100)
commit72220d79d7f830d48ab9b12b2302422d50623fd4
tree2f614fa49a2030a85a53fac6d34b469f076826a9
parent3e8ee886a52c9fa42a38200199d79f5dc659df5e
file-restore: dynamically increase memory of vm for zpools

when a backup contains a drive with zfs on it, the default memory
size (up to 384 MiB) is often not enough to hold the zfs metadata

to improve that situation, add memory dynamically (1GiB) when a path is
requested that is on zfs. Note that the image must be started with a
kernel capable of memory hotplug.

to achieve that, we also have to add a qmp socket to the vm, so that
we can later connect and add the memory backend and dimm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
proxmox-file-restore/src/block_driver_qemu.rs
proxmox-file-restore/src/qemu_helper.rs