SSD Trim maintenance best practice for ext4/LVM and ZFS disks

logui

Member
Feb 22, 2024
84
12
8
This is a home lab, nothing production critical, I have a small 3 node cluster, I am using on each node two consumer grade SSDs, a Boot/OS disk with ext4/LVM and a VM/CT disk using ZFS, because I use Replication/HA from some critical VMs/CTs.

Planning like a weekly SSD/Trim maintenance cron job, should I have to execute the following commands:

  • fstrim -a for the boot disk (ext4/LVM)
  • zpool trim for the VM/CT disk (ZFS)
Please could you share your best practices on how to perform these activities efficiently and effectively, thank you