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 801ED624A6 for ; Thu, 20 Jan 2022 12:52:15 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7697B24625 for ; Thu, 20 Jan 2022 12:52:15 +0100 (CET) Received: from styx18.konzept-is.de (styx18.konzept-is.de [212.62.202.218]) (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 53EFD24618 for ; Thu, 20 Jan 2022 12:52:14 +0100 (CET) Received: from [10.10.10.10] (unknown [10.10.10.10]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: storm) by styx18.konzept-is.de (Postfix) with ESMTPSA id EDC9E1FD22 for ; Thu, 20 Jan 2022 12:52:07 +0100 (CET) Message-ID: <2b2b8b20-480a-38d4-2a5c-cc58afac7fa5@konzept-is.de> Date: Thu, 20 Jan 2022 12:52:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 To: pve-user@lists.proxmox.com References: From: Ralf Storm In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.449 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -0.001 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [konzept-is.de] Subject: Re: [PVE-User] Trim and ZFS pools on SSD... 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: Thu, 20 Jan 2022 11:52:15 -0000 Hi, make sure your Vdisks are connected via scsi and the scsi controller is virtioscsi, the discs need to have the checkmark "discard". You can check if it works under ubuntu and debian wit hte command "fstrim -av" - if there is no output it doesn`t work, otherwise, after a while you will get the trim results displayed. hope that helps.... Am 20/01/2022 um 11:55 schrieb Marco Gaiarin: > I've asked this some month ago, eg i've asked if there's in PVE some > 'framework' to enable trim for SSD ZFS pools. At that time the reply was no. > > > Now seems arrived, seems a standard debian feature for 'zfsutils-linux': at > the crontab /etc/cron.d/zfsutils-linux : > > # TRIM the first Sunday of every month. > 24 0 1-7 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/trim ]; then /usr/lib/zfs-linux/trim; fi > > and /usr/lib/zfs-linux/trim script seems to automatically trim every pool > that have not 'autotrim' enabled and have defined the custom property: > > org.debian:periodic-trim > > but i've not found info on debian and PVE documentation. > > > Someone can confirm that? I've simply to do something like: > > zpool set org.debian:periodic-trim=yes rpool > > > Thanks. > -- Ralf Storm Systemadministrator Konzept Informationssysteme GmbH Am Weiher 13 • 88709 Meersburg Fon: +49 7532 4466-299 Fax: +49 7532 4466-66 ralf.storm@konzept-is.de www.konzept-is.de Amtsgericht Freiburg 581491 • Geschäftsführer: Dr. Peer Griebel, Frank Häßler