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)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 4246771E40 for ; Fri, 9 Apr 2021 19:19:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2AC52A054 for ; Fri, 9 Apr 2021 19:19:20 +0200 (CEST) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 B4643A03E for ; Fri, 9 Apr 2021 19:19:17 +0200 (CEST) Received: by mail-lf1-x132.google.com with SMTP id g8so10826027lfv.12 for ; Fri, 09 Apr 2021 10:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecnetmza-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Mubp14h6SW57lBmryRU+IFZUkvkxA4KgRkx7yxuP4+w=; b=tYAkYRhgXHZsjJV+olUJk8rhCfJPH8ZC4oiWOZuDwVkujXYH4vkbusKctFVgEkHtJd 17UGfpQVwvpZIPDE0dNxWoF9VXF/lNWok6HAxvkZsEXhPK8XNZ2HoXAGClQxfX/m79/8 HLuqzvaijcCbkzgk5dcw+6EI7S4QE4Rd2tEX568xv/LW4qDOW4FAyKbWC0Qm1Jbrzsx2 N+6OzLRWs1b/Vsq+oQ+E0nelMUOheovduwOhOr5jBcogCcpMKGn9PYbPZD3pil+pcN7o duWwHtfl+7b0/iGRksn4dBMVhWfDDmMa9W5uUNq9nyFjr9pnYIRFsOsrbseH8LcNzwn7 UG3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Mubp14h6SW57lBmryRU+IFZUkvkxA4KgRkx7yxuP4+w=; b=SrAyAlEqDer52mWmZ9R5gCEhgKHfZqgrRrHwf/YIRgIFseKNh6bReow7sVbsvOTO+y DluWscHXkDrH4PwU7yqSyqAAjeBuFFDdy4I3Hse6UO22Bg1rQCjWIhQCjq0X2nTdo3mD ASN2+bh0KUzoQ/Y6LSrYHJpgFWZJcqp1TUdRGAHE4hy3GSJIJ9uUiKQRzYI9IgJgzTIo 8elaLs/9QHyU8FVmITJrrCLI95h4NH6ea+8HH1mOnOUYqSOQju5c5vR/781sLxgX5noe jCoe41RPy0kb5+ArX1k1K3AktUof0hvvjamti7IKh55g41ZqqGvmd8m7JVZ2n+YrbSGv Q5Zg== X-Gm-Message-State: AOAM533EjgdBfe49gXj4e2NTmaQUr4pweAVe5+JGDjc/l5J22amTtgCd Gf1kPoTpDJF8GXnEAto47Fc9y7zOGGLYUpFgentNz0W9FrDN X-Google-Smtp-Source: ABdhPJzaOaGzCsAprkTAu87ng3axwC3uibzHbq61TGNzDiRNaSypzMkGST6hzUpS7yWes8gcqdqYzxc+OSWWVIsdaEE= X-Received: by 2002:a19:5008:: with SMTP id e8mr10580133lfb.571.1617988750695; Fri, 09 Apr 2021 10:19:10 -0700 (PDT) MIME-Version: 1.0 From: Leandro Roggerone Date: Fri, 9 Apr 2021 14:19:06 -0300 Message-ID: To: PVE User List X-SPAM-LEVEL: Spam detection results: 1 AWL 0.198 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 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_SOFTFAIL 0.972 SPF: sender does not match SPF record (softfail) T_KAM_HTML_FONT_INVALID 0.01 Test for Invalidly Named or Formatted Colors in HTML URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [PVE-User] LVM question X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2021 17:19:20 -0000 Hi guys , after install a new storage to my box , had to create lvm-thin. Im not very good with lvm , after reading some docs , and links like: https://forum.proxmox.com/threads/how-to-create-an-lvm-thinpool-and-vz-directory-on-the-same-disk.62901/ I got a working solution but have also some questions about it. This is what I did: wipefs -a /dev/sdb sgdisk -N 1 /dev/sdb pvcreate --metadatasize 1024M -y -ff /dev/sdb1 vgcreate --metadatasize 1024M proxvg /dev/sdb1 lvcreate -l 100%FREE --poolmetadatasize 1024M --chunksize 256 -T -n proxthin proxvg lvcreate -n proxvz -V 1.1T proxvg/proxthin mkfs.ext4 /dev/proxvg/proxvz mkdir /media/vz echo '/dev/proxvg/proxvz /media/vz ext4 defaults,errors=remount-ro 0 2' >> /etc/fstab mount -a And have following result: root@pve2:~# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert proxthin proxvg twi-aotz-- 1.63t 22.03 6.34 proxvz proxvg Vwi-aotz-- 1.10t proxthin 1.67 root@pve2:~# lvdisplay --- Logical volume --- LV Name proxthin VG Name proxvg LV UUID 4cEIr9-3ZVQ-vsy1-q9ZX-GsaD-7oq0-pZixsX LV Write Access read/write LV Creation host, time pve2, 2021-04-01 13:09:41 -0300 LV Pool metadata proxthin_tmeta LV Pool data proxthin_tdata LV Status available # open 3 LV Size 1.63 TiB Allocated pool data 22.03% Allocated metadata 6.34% Current LE 428451 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/proxvg/proxvz LV Name proxvz VG Name proxvg LV UUID huzpPT-g0Gd-3Jwb-2ydz-InHh-73vN-Jnc5TR LV Write Access read/write LV Creation host, time pve2, 2021-04-01 13:10:12 -0300 LV Pool name proxthin LV Status available # open 1 LV Size 1.10 TiB Mapped size 1.67% Current LE 288359 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:4 Have following comments: I can create VMs on proxthin partition so it is ok. I can create backup on proxvz partition so it is ok. What im concerned about is: Physic storage space is about 1.8TG , how is it possible to create a 1.6 and 1.1T volumnes inside ? It can be a problem in the future ? I was thinking about reduce proxthin partition to 600Gb aprox , so it make same sense 1.1T + 600G aprox 1.8 T But there is no LV Path on proxthin partition so I can unmount and the reduce. So .. What im missing here ? do I need to reduce proxthin partition ( I do need the 1.1T partition to backup). Hope to be clear about this guys. Any comment would be wellcome. Leandro.