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 2D86261EF2 for ; Wed, 19 Jan 2022 09:40:41 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E27AD547D for ; Wed, 19 Jan 2022 09:40:10 +0100 (CET) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS id 6A1DA5471 for ; Wed, 19 Jan 2022 09:40:10 +0100 (CET) Received: by picard.linux.it (Postfix, from userid 10) id 98D0F3C9678; Wed, 19 Jan 2022 09:40:03 +0100 (CET) Received: from news by eraldo.lilliput.linux.it with local (Exim 4.89) (envelope-from ) id 1nA6Rl-0006nQ-R7 for pve-user@lists.proxmox.com; Wed, 19 Jan 2022 09:36:01 +0100 From: Marco Gaiarin Date: Wed, 19 Jan 2022 09:19:33 +0100 Organization: Il gaio usa sempre TIN per le liste, fallo anche tu!!! Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: eraldo.lilliput.linux.it 1642580391 25829 192.168.24.2 (19 Jan 2022 08:19:51 GMT) X-Mailer: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-94-generic (x86_64)) X-Gateway-System: SmartGate 1.4.5 To: pve-user@lists.proxmox.com X-SPAM-LEVEL: Spam detection results: 0 AWL 0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% JMQ_SPF_NEUTRAL 0.5 SPF set to ?all KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [PVE-User] Force reclaiming space on a vdisk... 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: Wed, 19 Jan 2022 08:40:41 -0000 Situation: VM with a disk on a ZFS storage, 2TB disk; the disk have some 'system' partitions, and two big partition /dev/sda7 and /dev/sda8 for /home and /srv. I've added two more disk (/dev/sdb and /dev/sdc), created one partition per disk and moved data from old partition to the ones. After that, i've deleted /dev/sda7 and /dev/sda8, so now /dev/sda is a 2TB disk with roughly 100GB of data in. Space get not reclaimed. All disks have 'discard=1'. I've tried to move /dev/sda to another ZFS storage (that have 500GB of free space), and move fail. How can i reclaim the free space on /dev/sda?! I need to create one partition on the free space, format it, fstrim it? Thanks. -- Siamo circondati da troppa gente piena di sé. E a quelli pieni di sé, io preferisco le persone piene di se, di ma, di forse. (Tonio Dell'Olio)