Bug #12764
openHoles prevent TRIM
90%
Description
Exactly what this ZoL bug states: https://github.com/openzfs/zfs/pull/10227
Added and later removed an SLOG.
Now I can't trim that pool anymore, but get the error message
"cannot remove hole: no such device in pool"
because ZFS apparently stumbles over the removed log device.
ZoL has a solution (linked above); the same could apply to illumos-ZFS.
Files
Updated by Nick Ewins over 3 years ago
Tested to generate the error by creating a zpool and associated SLOG. Removing the SLOG and performing zpool trim <pool> generated the error as expected.
After the modification, further testing was performed. From there, removal of the SLOG and a zpool trim <pool> is completed successfully. The error message is no longer present.
Updated by Nick Ewins over 3 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
Updated by Carsten Endres over 3 years ago
Anything I can do to help move this forward? Limited coding experience though...
Updated by Nick Ewins over 3 years ago
This patch needs to be tested against the ZFS test suite. I've been looking to get proper hardware. It appears the environment I'm testing against does not see the devices as supporting TRIM. If you would like to run the ZFS test suite, I can certainly help.
Updated by Carsten Endres over 2 years ago
- File zfs-test-results.tgz zfs-test-results.tgz added
Nick Ewins wrote in #note-6:
This patch needs to be tested against the ZFS test suite. I've been looking to get proper hardware. It appears the environment I'm testing against does not see the devices as supporting TRIM. If you would like to run the ZFS test suite, I can certainly help.
(W|L)ife interfered. I have now been able to dig out the result / log files of my ZFS test suite run that you, Nick, kindly walked me through this summer:
https://www.dropbox.com/s/y8cjadh9soh1vyd/zfs-test-results.tgz?dl=0
Updated by paolo marcheschi almost 2 years ago
Bug is still present in release-20210701.