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 D3DBE65B2C for ; Wed, 4 Nov 2020 18:22:20 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BF23FFDD7 for ; Wed, 4 Nov 2020 18:21:50 +0100 (CET) Received: from smtp2.ngi.it (smtp2.ngi.it [88.149.128.113]) by firstgate.proxmox.com (Proxmox) with ESMTP id C2535FDCD for ; Wed, 4 Nov 2020 18:21:49 +0100 (CET) Received: from tank.sv.lnf.it (unknown [88.147.114.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp2.ngi.it (Postfix) with ESMTPS id 6ADFD61A7A for ; Wed, 4 Nov 2020 18:21:43 +0100 (CET) Authentication-Results: smtp2.ngi.it; dkim=pass (1024-bit key; unprotected) header.d=sv.lnf.it header.i=@sv.lnf.it header.b="FF2/Fqmo"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sv.lnf.it; s=2017; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=D3pJrzsLLFcVRZW0NtczS0TxJz2oHk8d6pmuPENN7hw=; b=FF2/FqmoATejTMTnKd/dupjmFJ mhTgDVhjHORM6fVOU50a6mM40ezuaqzFIV0dPtdb624+GMRUTp8a0TwyxymfE0eBURydHrzQQwWPK SXhsrYdfwOOdLpG0UUICS/COGuOvgHp2PjVu5ESJ1Hehe5ZsICqOaBXVHPffcYfW5zjo=; Received: from [10.5.1.3] (helo=vdmsv1.ad.fvg.lnf.it) by tank.sv.lnf.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kaMTe-0000nk-PR for pve-user@lists.proxmox.com; Wed, 04 Nov 2020 18:21:42 +0100 Received: from [10.5.1.44] (helo=hermione.sv.lnf.it) by vdmsv1.ad.fvg.lnf.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kaMTe-0005KD-3I for pve-user@lists.proxmox.com; Wed, 04 Nov 2020 18:21:42 +0100 Received: by hermione.sv.lnf.it (Postfix, from userid 1000) id EEB1EA0013D; Wed, 4 Nov 2020 18:21:41 +0100 (CET) Date: Wed, 4 Nov 2020 18:21:41 +0100 From: Marco Gaiarin To: pve-user@lists.proxmox.com Message-ID: <20201104172141.GH3229@sv.lnf.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 'Organization: Associazione La Nostra Famiglia - Polo FVG' 'From: Marco Gaiarin ' User-Agent: Mutt/1.9.4 (2018-02-28) X-SPAM-LEVEL: Spam detection results: 0 AWL -0.214 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 JMQ_SPF_NEUTRAL 0.5 SPF set to ?all 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_NEUTRAL 0.652 SPF: sender does not match SPF record (neutral) URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [lnf.it, lanostrafamiglia.it, openzfs.org] Subject: [PVE-User] ZFS 'zpool trim'? 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, 04 Nov 2020 17:22:20 -0000 I've tried a 'zpool trim' on a SSD pool in one of my server, after searching about and finding: https://openzfs.org/wiki/Features#TRIM_Support Seems to work as expected (at least: print in logs: Nov 4 18:12:38 ino zed: eid=68 class=trim_start pool_guid=0x76DD565E9F8A86A8 vdev_path=/dev/disk/by-id/ata-KINGSTON_SEDC500M480G_50026B7683586349-part3 vdev_state=ONLINE Nov 4 18:12:38 ino zed: eid=69 class=history_event pool_guid=0x76DD565E9F8A86A8 Nov 4 18:13:37 ino zed: eid=70 class=trim_finish pool_guid=0x76DD565E9F8A86A8 vdev_path=/dev/disk/by-id/ata-KINGSTON_SEDC500M480G_50026B7683586349-part3 vdev_state=ONLINE Nov 4 18:13:37 ino zed: eid=71 class=history_event pool_guid=0x76DD565E9F8A86A8 and don't destroy my disk. ;-) But i've tried to look into PVE wiki, or in PVE ZFS packages for some docs, or scripts, and found nothing. There's some drawbacks of trimming ZFS pools in PVE, and so it is not enabled by default? Or simply there's no way to determine a ZFS pool composed of SSD disks, and so it is up to the sysadmin to setup a script for trimming? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)