[pve-devel] qm set in bytes
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Mar 5 17:55:20 CET 2021
On 05.03.21 17:25, Gandalf Corvotempesta wrote:
> Ciao,
> i'm almost done in creating a script to directly import a XenServer VM
> storage to Proxmox (without exporting the XVA file, decompress,
> convert and so on).
>
> I just need to know how to create ad attach a ZFS volume to an
> existing PVE VM, in bytes.
> In example, my source disk is 4311744512 how can I create the same
> exact zfs pool ?
>
> "qm set" only allow a GB size and 4311744512/1024/1024/1024 result in
> a 4GB image that is too small
You can pass a floating point number, i.e., in this case:
4311744512/1024/1024/1024 == 4.015625
The image will then be rounded up with the target storage blocksize, if
it does not matches it exact.
hope that helps!
Thomas
More information about the pve-devel
mailing list