Simple ZFS Pool SMART Test Script

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: zfs_smart.sh -p <POOL NAME> (-s|-l)

Leave a comment

Your email address will not be published. Required fields are marked *

Loading...