I wrote a script that checks various server's HDDs for SMART errors and takes some action if it finds any.
Non of our servers are reporting any SMART errors and instead of waiting to see if my script picks them up when disks start failing I'd like to be definitively sure it is working correctly.
Is there some utility that can generate "fake" smart errors so I can see my script in action? I'm about to bang an old HDD on my desk to see if I get it almost broken enough to throw errors, but I don't think that's gonna work.
Also, this is not a question about my script, I'm just wondering if I can generate SMART errors to test detection of them (which would be useful for any server monitoring software).