-
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
Unaligned writes and other errors during trim #8552
Comments
@lnicola thanks for opening an issue for this. It does look like it could be an alignment issue. Would you mind checking the discard setting for you ssd and adding them to the issue. For example:
|
More likely this is a drive firmware bug. The misaligned errors are reported against read(10) and write (10) commands, not unmap. Also, there is a track record of Samsung SSDs exhibiting similar behaviour. |
Not sure abut the firmware version, I can't even see my drive under https://www.samsung.com/semiconductor/minisite/ssd/download/tools/. |
Unrelated to ZFS. Samsung firmware lies about supporting queued TRIM, and the drives stop responding while being trimmed. As a workaround, boot with |
System information
Distribution Name | Arch Linux
Linux Kernel | 5.0.5-arch1-1-ARCH
Architecture | x64
ZFS Version | 0.8.0-rc3_131_ge03b25a56
SPL Version | 0.8.0-rc3_131_ge03b25a56
Describe the problem you're observing
I tried to do a manual trim and the whole system hung for a couple minutes, but then came back. Running a scrub afterwards reported no errors.
Include any warning/errors/backtraces from the system logs
EDIT:
smart
is a pool with a single SSD. The errors also mention a different pool because one of the SSD partitions was used as a cache device for it.The text was updated successfully, but these errors were encountered: