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
Add trim_finish notify script for ZED #10491
Add trim_finish notify script for ZED #10491
Conversation
Allow users to configure notifications when TRIM operations are completed on pools. Unlike resilver_finish and scrub_finish, the trim_finish event is generated for each vdev in the pool which was trimmed, so the script will generate a notification for each one. Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
I don't know why |
Codecov Report
@@ Coverage Diff @@
## master #10491 +/- ##
==========================================
- Coverage 79.69% 79.67% -0.03%
==========================================
Files 391 391
Lines 123817 123817
==========================================
- Hits 98682 98656 -26
- Misses 25135 25161 +26
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and straight forward, but I'm curious what your use case is for this?
My NAS has three SSD-backed pools, and I've read things which claim that 'autotrim' can cause problems for some sorts of SSDS... so instead I have a monthly job to run |
Allow users to configure notifications when TRIM operations are completed on pools. Unlike resilver_finish and scrub_finish, the trim_finish event is generated for each vdev in the pool which was trimmed, so the script will generate a notification for each one. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Kevin P. Fleming <kevin@km6g.us> Closes openzfs#10491
Allow users to configure notifications when TRIM operations are completed on pools. Unlike resilver_finish and scrub_finish, the trim_finish event is generated for each vdev in the pool which was trimmed, so the script will generate a notification for each one. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Kevin P. Fleming <kevin@km6g.us> Closes openzfs#10491
Motivation and Context
This patch adds a ZED notification script which generates notifications when TRIM operations are completed.
Description
I copied the scrub_finish-notify script and removed the unnecessary portions.
How Has This Been Tested?
This has been tested on my ZoL machine running 0.8.4-1 on Debian Buster.
Types of changes
Checklist:
Signed-off-by
.