[PVE-User] Trim and ZFS pools on SSD...
Arjen
leesteken at protonmail.ch
Fri Jan 21 12:16:36 CET 2022
On Friday, January 21st, 2022 at 11:06, Marco Gaiarin <gaio at lilliput.linux.it> wrote:
> Mandi! Ralf Storm
>
> In chel di` si favelave...
>
> > 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.
>
> No, sorry, i've posted two 'trim/discard' topic that (apart this) are
> totally unrelated.
> I'm speaking now of host OS, eg PVE: if i have an SSD-based ZFS pool, how
> can i trim it?
>
> Seems that recent 'zfsutils-linux' package add some 'framework' to do trim,
> but seems (totally) undocumented. So i'm seeking feedback.
>
> I hope i was clear now...
You can enabled the autotrim feature of the ZFS pool or run zpool trim <your-pool>.
To get more information use this command on PVE: man zpool trim
Is that what you were asking for?
More information about the pve-user
mailing list