From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 570046A77D for ; Fri, 5 Mar 2021 19:16:34 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 49A7A28A7B for ; Fri, 5 Mar 2021 19:16:34 +0100 (CET) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 238E628A64 for ; Fri, 5 Mar 2021 19:16:33 +0100 (CET) Received: by mail-pl1-x62e.google.com with SMTP id d11so1804303plo.8 for ; Fri, 05 Mar 2021 10:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tBM+B6CKu22lCiojYAudYUPvINEtRreSm1HL/Xbf2E4=; b=E7t1JwzGa49/jUy3AISQ/R5sBEryZDlg6qZ+3J5hIX9u8/2KWn8WL2hR5rvJJ2lvw3 bUThGDNEwQ+8SfaWGheSPqGZQFAqLM3/sX09foixT6VREqdDN8R6Tl1tT7s/51OsY0pA Gky7rSGKh7C1HbYiqzHZRIEbp4bJwQ2xilB2H669odlEquVXYC0ARXIPbzr+N9Lzm/7x yDsrr1kkFZZGwvmGhAp9X+kFrZftpdFySnq+ItVIEuRcyGKgtVVA0feI4cySJ/bUGetW qR9xY0RVWFzSYxczl7XGpQmKpb9/6pWhnLxF0X1G/20Q9+TbBb7L5qA9bBB0rCgKXZ2m p61Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tBM+B6CKu22lCiojYAudYUPvINEtRreSm1HL/Xbf2E4=; b=jrt1FC82U0kXm0VrggxpuLDgy5X0gWd+CS/pqSQqB5lva4mbBvw8VbG6jPq2ABht1J rbVqOTGTA5RSw6cKN/g0SG1nE9bYlj7+VciVwpyVBMIOv5BRasIh6p0oEQPS1HwjZomq D6+Q6V9uM6GUtSj3uBb9WLab5nIHAZX+5NDLC7C5HKEeff2/NO5LiQjdLosEHJtiRB3r CKskyh7L+VyiH3tQVknUPpBMaxNb9ers/1ujObpJcr1tH1RrG1Nssx9TlJyDXsD2G1GD oxkATnvHQBMulfnbq8zLGkXaDiKsAs5zs3bHWHhDtLSMpBY7LRNFrFWhc3LvUCaDboij GqRg== X-Gm-Message-State: AOAM533VKzrUHKb1zhpg/9owTfn91HJw+guKDvF6wAKovTRKlxP7m9Gz Rfs0vQwGzTE1dZI3DGpN44aOkJqoX+rJ6aCG8BQ= X-Google-Smtp-Source: ABdhPJy+3tCrtIAdTRgI3R4ttveCqsx2clgVB9o13XSTldCu5Ko0SRHyKln4hTMNffCA2BBzwTcfWjfPyCaehPtufPQ= X-Received: by 2002:a17:902:f702:b029:e3:dd3f:d151 with SMTP id h2-20020a170902f702b02900e3dd3fd151mr10091816plo.18.1614968185892; Fri, 05 Mar 2021 10:16:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Gandalf Corvotempesta Date: Fri, 5 Mar 2021 19:16:13 +0100 Message-ID: To: Thomas Lamprecht Cc: Proxmox VE development discussion X-SPAM-LEVEL: Spam detection results: 0 AWL -0.000 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider HTML_MESSAGE 0.001 HTML included in message RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [pve-devel] qm set in bytes X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2021 18:16:34 -0000 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 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 > >