[SOLVED] How to restore VM using thin ZVOLs

H25E

Active Member
Nov 5, 2020
71
5
28
33
I have a PVE node with some CT & VM on ZFS. The second ones with thin provisioning on ZVOLs. Now I have installed PBS in another computer to learn how to backup my CT/VM. Everything works flawless.

The problem it's when I go into PVE GUI -> PBS storage -> Backups -> SomeVMwithBigVirtualDrive -> Restore, it complains about not having enough disk space.

Testing with someVMwithSmallVirtualDrive I have seen that when restoring a VM, PVE creates the new needed ZVOLs but with DEFAULT settings, instead of using the original ones. This implies that the new ZVOLs are going to be thick provisioning, which makes impossible to me restore them because I have some really big virtual disks thinned down with a low refreservation.

I have readed man qmrestore to see if command line gives more flexibility but haven't found anything.

So... how to thin restore backuped VMs that were working originally with thin ZVOLs?


Thanks for your time.
 
Enabling thin provisioning for your PVEs ZFS Storage is not an option?
That way restored VMs should be thin provisioned.
 
Wow, that was easy. I was unaware of that option on PVE storage. Didn't remember about it. I was thinning out my volumes reducing their refreservation property. Works properly now! Thanks!