SSD Cache drives, the boot pool and auto trim

M3PH

Dabbler
Joined
Mar 3, 2024
Messages
21
In my primary pool I have 8 HDD's in a data vdev and one 250GB NVME ssd as a cache drive. I would like to know, can I enable auto trim on that pool and will it trim the cache drive?

Also, I have 2 cruical mx500's for my boot pool. Is auto trim enabled on the boot pool (some older posts say no but they are older posts refering to older versions)? if not can I enable it and how? I had a quick poke about but couldn't see anything but it's also been a rough night and it's way past my bedtime.
 
Joined
Oct 22, 2019
Messages
3,641
autotrim is a per-pool property. The GUI only exposes this option for your data pools.

To outright check this property for all pools:
Code:
zpool get autotrim


To enable it on a pool:
Code:
zpool set autotrim=on mypool


To disable it on a pool:
Code:
zpool set autotrim=off mypool


I'm not sure (nor can I recommend) enabling it for your boot-pool, or even your data pools. You might consider doing weekly trims via a schedule. (This is possible with Core, and should be possible with SCALE.)

Here is a post for reference and how to easily accomplish this:


I believe if you have a pool comprised of HDDs + SSDs, then a zpool trim command will only be issued to the SSDs in the pool. (In your case, the trim command will only be issued to your L2ARC vdev, ideally.)
 

M3PH

Dabbler
Joined
Mar 3, 2024
Messages
21
thank you very much
 
Top