public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Gandalf Corvotempesta <gandalf.corvotempesta@gmail.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>
Cc: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] qm set in bytes
Date: Fri, 5 Mar 2021 19:16:13 +0100	[thread overview]
Message-ID: <CAJH6TXi6hYrW=gD+2P7nXkWbXo0VG5Te23YLyNwJw9T5ucPtRA@mail.gmail.com> (raw)
In-Reply-To: <d2d4181f-de73-e14b-7902-336986180c26@proxmox.com>

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@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
>
>


      reply	other threads:[~2021-03-05 18:16 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
2021-03-05 18:16   ` Gandalf Corvotempesta [this message]

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='CAJH6TXi6hYrW=gD+2P7nXkWbXo0VG5Te23YLyNwJw9T5ucPtRA@mail.gmail.com' \
    --to=gandalf.corvotempesta@gmail.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=t.lamprecht@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal