ansitest/ZFS/zpool-show-last-scrub.sh

14 lines
370 B
Bash
Raw Normal View History

2023-11-19 13:46:44 -07:00
#!/bin/bash
2023-11-19 13:50:39 -07:00
zpool status -v |egrep 'pool:|scan' #|less
exit;
# sample output
pool: zint500
scan: scrub repaired 0B in 00:48:16 with 0 errors on Thu Nov 16 00:49:16 2023
pool: zsam53
scan: scrub repaired 0B in 01:42:37 with 0 errors on Wed Nov 15 01:43:37 2023
pool: ztoshtera6
scan: scrub repaired 0B in 22:32:04 with 0 errors on Fri Nov 17 22:33:05 2023