public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
From: Marco Gaiarin <gaio@lilliput.linux.it>
To: pve-user@lists.proxmox.com
Subject: [PVE-User] Trim and ZFS pools on SSD...
Date: Thu, 20 Jan 2022 11:55:29 +0100	[thread overview]
Message-ID: <vlrnbi-53d.ln1@hermione.lilliput.linux.it> (raw)


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.

-- 
  Ogni giorno un sistemista Nt si sveglia... e sa che dovrà lavorare.
  Ogni giorno un sistemista Linux si sveglia... alle 13.00, per il pranzo.
  Non importa che tu sia sistemista Nt o Linux... tanto ti pagano uguale!!!





             reply	other threads:[~2022-01-20 11:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20 10:55 Marco Gaiarin [this message]
2022-01-20 11:52 ` Ralf Storm
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=vlrnbi-53d.ln1@hermione.lilliput.linux.it \
    --to=gaio@lilliput.linux.it \
    --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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal