From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Gandalf Corvotempesta <gandalf.corvotempesta@gmail.com>
Subject: Re: [pve-devel] qm set in bytes
Date: Fri, 5 Mar 2021 17:55:20 +0100 [thread overview]
Message-ID: <d2d4181f-de73-e14b-7902-336986180c26@proxmox.com> (raw)
In-Reply-To: <CAJH6TXgEMtC8DyzhdCFspUjrMmWcPnjYyj7TzLvaNDeqH+zxBw@mail.gmail.com>
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
next prev parent reply other threads:[~2021-03-05 16:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 16:25 Gandalf Corvotempesta
2021-03-05 16:55 ` Thomas Lamprecht [this message]
2021-03-05 18:16 ` Gandalf Corvotempesta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2d4181f-de73-e14b-7902-336986180c26@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=gandalf.corvotempesta@gmail.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.