bradford bio photo

Twitter LinkedIn Github Stackoverflow

I needed a simple way to run SMART tests on my ZFS pools that didn’t require me to manually specify which devices to scan. The following BASH script makes it easy. It just grabs the output from zpool status and runs those against either a long test (-l) or a short test (-s).

Usage: [-p <POOL NAME>] [-s|-l]