[PVE-User] Trim and ZFS pools on SSD...
Ralf Storm
ralf.storm at konzept-is.de
Thu Jan 20 12:52:07 CET 2022
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 at konzept-is.de
www.konzept-is.de
Amtsgericht Freiburg 581491 • Geschäftsführer: Dr. Peer Griebel,
Frank Häßler
More information about the pve-user
mailing list