What I'm missing are more advanced options when restoring backups:
1.) a way to set the target storage for each individual virtual disk
Right now you can only choose a single target storage and all virtual disks will be restored to that storage. But often my VMs got virtual disks on different storages. Lets for example say I got a HDD storage for cold data and a SSD storage for hot data and my VM got one virtual disk on each storage. Now when I restore such a VM I need to choose either the big HDD storage or the small SSD storage. So I restore both virtual disks to the HDD storage and then need to move one of that restored virtual disks again from the HDD storage to the SSD storage. This is not only annoying because of the extra step and because I need to somewhere write down which virtual disk belongs to which storage to be able to fix what the restore does wrong, it also means more downtime and maybe more SSD wear as one of the virtual disks needs to be unneccessarily read and written twice.
Another problem now would be this case. Lets say I got two 4TB storages and a VM that got two virtual disks with 3TB each where a virtual disk is stored on each storage. Right now it wouldn't be possible to restore such a VM because non of the storages can temporarily store 6TB. So here it isn't even an option to move the virtual disks later to the correct storage they belong to.
2.) a way to not restore a virtual disk
Lets say my VM got 2 virtual disk. The first is a small virtual disk that stores the OS and the second one is very big and is not always in use and is only manually mounted sometimes. Maybe I want to test something and don't need to access data on that manually mounted big virtual disk. In that case it would be great if I could restore the VM with another VMID with just the small OS virtual disk without the big virtual disk that is only mounted when needed. This again would reduce SSD wear and speed up the restore process as only that is restored that I actually need.
3.) a way to reuse an existing disk without destroying/overwriting it
I already posted a feature request for this: https://bugzilla.proxmox.com/show_bug.cgi?id=3783
To explain it again in short: Lets say I got a VM with two virtual disks. The first one stores my guest OS and the second one just my swap partition. I want to exclude the swap partition virtual disk from the backup because that is only temporary data that can be lost and that isn't well deduplicatable so it wastes alot of space of the PBS datastore.
But how a backup restore of an existing VM now works is that it will first delete the VM with all its related virtual disks. Then it will create a new VM from scratch based on the backup. So the restore will delete both the OS and the swap virtual disks and then only restore the OS virtual disks because the swap virtual disk was excluded from backups. The result will be a VM that won't be able to boot because it now only got the OS virtual disk with the swap virtual disk missing (but which still is required because it should be mounted using fstab).
What I would like to see is an option to tell PVE before restoring to not delete that swap disk and reuse it with the restored VM. So on a restore PVE should destroy the OS virtual disk, but keep the swap virtual disk untouched. Then create only the new OS virtual disk from backup. I then either would see the swap virtual disks as an unused disk that I could manually attach afterwards or it would be great too if PVE could automatically attach that swap disk if it was attached previously (like configured in the old VM config file).
A solution for that, that I personally would like to see are advanced options in the GUIs restore dialog when restoring a VM from the VMs backup tab and the backup storages backups tab, like this:
A list of all virtual disks of that VM (if included in the backup or not) each with a dropdown at the right next to it. This dropdown contains these options:
A.) don't restore, destroy existing vDisk
B.) don't restore, reuse/keep existing vDisk
C.) restore vDisk to Storage MyStorage1, destroy existing vDisk
D.) restore vDisk to Storage MyStorage2, destroy existing vDisk
...
Option A would help with point 2.
Option B would help with point 3.
Option C,D,... would help with point 1.
These advanced option also might be hidden behind a "show advanced option" checkbox like other dialogs in the GUI do it. Would also be great if PVE could read the VMs config file and preselect storage for each virtual disk that was used in the config file. So that If the first vdisk was stored on MyStorage1 and the second vdisk on MyStorage2 that the GUI would preselect "restore vDisk to Storage MyStorage1, destroy existing vDisk" for the first vdisk and "restore vDisk to Storage MyStorage2, destroy existing vDisk" for the second one.
Someone elso would like to see this feature?
Should I create a feature request in the bug tracker or is there already a similar feature request (except for point 3 where I already created it)?
Edit: Not sure if this should be in the PBS or the PVE subforum because it also would be used with vzdump backups. Please move it to PVE subforum if that fits better.
1.) a way to set the target storage for each individual virtual disk
Right now you can only choose a single target storage and all virtual disks will be restored to that storage. But often my VMs got virtual disks on different storages. Lets for example say I got a HDD storage for cold data and a SSD storage for hot data and my VM got one virtual disk on each storage. Now when I restore such a VM I need to choose either the big HDD storage or the small SSD storage. So I restore both virtual disks to the HDD storage and then need to move one of that restored virtual disks again from the HDD storage to the SSD storage. This is not only annoying because of the extra step and because I need to somewhere write down which virtual disk belongs to which storage to be able to fix what the restore does wrong, it also means more downtime and maybe more SSD wear as one of the virtual disks needs to be unneccessarily read and written twice.
Another problem now would be this case. Lets say I got two 4TB storages and a VM that got two virtual disks with 3TB each where a virtual disk is stored on each storage. Right now it wouldn't be possible to restore such a VM because non of the storages can temporarily store 6TB. So here it isn't even an option to move the virtual disks later to the correct storage they belong to.
2.) a way to not restore a virtual disk
Lets say my VM got 2 virtual disk. The first is a small virtual disk that stores the OS and the second one is very big and is not always in use and is only manually mounted sometimes. Maybe I want to test something and don't need to access data on that manually mounted big virtual disk. In that case it would be great if I could restore the VM with another VMID with just the small OS virtual disk without the big virtual disk that is only mounted when needed. This again would reduce SSD wear and speed up the restore process as only that is restored that I actually need.
3.) a way to reuse an existing disk without destroying/overwriting it
I already posted a feature request for this: https://bugzilla.proxmox.com/show_bug.cgi?id=3783
To explain it again in short: Lets say I got a VM with two virtual disks. The first one stores my guest OS and the second one just my swap partition. I want to exclude the swap partition virtual disk from the backup because that is only temporary data that can be lost and that isn't well deduplicatable so it wastes alot of space of the PBS datastore.
But how a backup restore of an existing VM now works is that it will first delete the VM with all its related virtual disks. Then it will create a new VM from scratch based on the backup. So the restore will delete both the OS and the swap virtual disks and then only restore the OS virtual disks because the swap virtual disk was excluded from backups. The result will be a VM that won't be able to boot because it now only got the OS virtual disk with the swap virtual disk missing (but which still is required because it should be mounted using fstab).
What I would like to see is an option to tell PVE before restoring to not delete that swap disk and reuse it with the restored VM. So on a restore PVE should destroy the OS virtual disk, but keep the swap virtual disk untouched. Then create only the new OS virtual disk from backup. I then either would see the swap virtual disks as an unused disk that I could manually attach afterwards or it would be great too if PVE could automatically attach that swap disk if it was attached previously (like configured in the old VM config file).
A solution for that, that I personally would like to see are advanced options in the GUIs restore dialog when restoring a VM from the VMs backup tab and the backup storages backups tab, like this:
A list of all virtual disks of that VM (if included in the backup or not) each with a dropdown at the right next to it. This dropdown contains these options:
A.) don't restore, destroy existing vDisk
B.) don't restore, reuse/keep existing vDisk
C.) restore vDisk to Storage MyStorage1, destroy existing vDisk
D.) restore vDisk to Storage MyStorage2, destroy existing vDisk
...
Option A would help with point 2.
Option B would help with point 3.
Option C,D,... would help with point 1.
These advanced option also might be hidden behind a "show advanced option" checkbox like other dialogs in the GUI do it. Would also be great if PVE could read the VMs config file and preselect storage for each virtual disk that was used in the config file. So that If the first vdisk was stored on MyStorage1 and the second vdisk on MyStorage2 that the GUI would preselect "restore vDisk to Storage MyStorage1, destroy existing vDisk" for the first vdisk and "restore vDisk to Storage MyStorage2, destroy existing vDisk" for the second one.
Someone elso would like to see this feature?
Should I create a feature request in the bug tracker or is there already a similar feature request (except for point 3 where I already created it)?
Edit: Not sure if this should be in the PBS or the PVE subforum because it also would be used with vzdump backups. Please move it to PVE subforum if that fits better.
Last edited: