[pve-devel] qm set in bytes

Gandalf Corvotempesta gandalf.corvotempesta at gmail.com
Fri Mar 5 19:16:13 CET 2021


It's not rounded, i get an error saying i have to match the block size

Il ven 5 mar 2021, 17:55 Thomas Lamprecht <t.lamprecht at proxmox.com> ha
scritto:

> 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