-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zpool trim service fails on pools that contain trimmable cache devices #14488
Comments
So it sounds like this might be intended behaviour, and we're supposed to set Not the most intuitive behaviour though, I too would expect TRIM to apply all TRIM enabled devices in the pool. That said, TRIM may not be necessary depending upon the SSD(s) you're using? |
I'll try that out. Had no idea. |
|
Actually, that tunable is not what I want anyway. I don't want |
what does it mean "l2arc_trim_ahead > 0" ? 1? anything? |
I've done log device gets trimmed anyway regardless of |
hm, description of that parameter is in the original pull request |
@mailinglists35 thanks for bringing this to my attention. Set the zfs module parameter |
same behaviour with |
|
interesting, it trims the l2arc on
|
it only trims on |
the untrimming showing in zpool status refers to whether the device was trimmed on addition. |
Setting this parameter does not change the error message produced by |
If the That would fix the weekly and monthly timer units that exist for trimming. |
Did you have any luck getting trim for cache to work? I am on Gentoo with ZFS 2.2.2 with a custom 6.5.10 kernel and cryptsetup 2.6.1.
|
Not on my side — I have been removing the cache device from the pool, trimming it manually, and re-adding the cache device once trim is done. This is, of course, a pain. |
System information
Type | Version/Name
Linux | 37
Distribution Name | Fedora
Distribution Version | 37
Kernel Version | 6.1.10-200.fc37.x86_64
Architecture | x86_64
OpenZFS Version |
master
branchDescribe the problem you're observing
I've enabled weekly trimming of my pool. The pool contains rotational devices as data bearing devices, and one SSD as cache device. All of them are encrypted with LUKS, with the dm option
discard
so the SSDs are trimmable.blkdiscard
of the LUKS device works perfectly.Nevertheless, attempting a trim through the unit (
/sbin/zpool trim -w backups
is basically what it resolves to) fails with log:I would expect at least to see the SSD cache device trimmed.
The text was updated successfully, but these errors were encountered: