From: Ralf Storm <ralf.storm@konzept-is.de>
To: pve-user@lists.proxmox.com
Subject: Re: [PVE-User] Trim and ZFS pools on SSD...
Date: Thu, 20 Jan 2022 12:52:07 +0100 [thread overview]
Message-ID: <2b2b8b20-480a-38d4-2a5c-cc58afac7fa5@konzept-is.de> (raw)
In-Reply-To: <vlrnbi-53d.ln1@hermione.lilliput.linux.it>
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
next prev parent reply other threads:[~2022-01-20 11:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 10:55 Marco Gaiarin
2022-01-20 11:52 ` Ralf Storm [this message]
2022-01-21 10:06 ` Marco Gaiarin
[not found] ` <mailman.147.1642763829.436.pve-user@lists.proxmox.com>
2022-01-25 11:17 ` Marco Gaiarin
2022-01-25 11:15 ` Marco Gaiarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2b2b8b20-480a-38d4-2a5c-cc58afac7fa5@konzept-is.de \
--to=ralf.storm@konzept-is.de \
--cc=pve-user@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox