[PVE-User] ZFS 'zpool trim'?

Marco Gaiarin gaio at sv.lnf.it
Wed Nov 4 18:21:41 CET 2020


I've tried a 'zpool trim' on a SSD pool in one of my server, after
searching about and finding:

	https://openzfs.org/wiki/Features#TRIM_Support

Seems to work as expected (at least: print in logs:

	Nov  4 18:12:38 ino zed: eid=68 class=trim_start pool_guid=0x76DD565E9F8A86A8 vdev_path=/dev/disk/by-id/ata-KINGSTON_SEDC500M480G_50026B7683586349-part3 vdev_state=ONLINE
	Nov  4 18:12:38 ino zed: eid=69 class=history_event pool_guid=0x76DD565E9F8A86A8  
	Nov  4 18:13:37 ino zed: eid=70 class=trim_finish pool_guid=0x76DD565E9F8A86A8 vdev_path=/dev/disk/by-id/ata-KINGSTON_SEDC500M480G_50026B7683586349-part3 vdev_state=ONLINE
	Nov  4 18:13:37 ino zed: eid=71 class=history_event pool_guid=0x76DD565E9F8A86A8  

and don't destroy my disk. ;-)


But i've tried to look into PVE wiki, or in PVE ZFS packages for some
docs, or scripts, and found nothing.


There's some drawbacks of trimming ZFS pools in PVE, and so it is not
enabled by default?
Or simply there's no way to determine a ZFS pool composed of SSD disks,
and so it is up to the sysadmin to setup a script for trimming?


Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)




More information about the pve-user mailing list