1
0
mirror of https://github.com/Spearfoot/FreeNAS-scripts synced 2025-12-06 01:23:19 +00:00

Added fragmentation to report header section

This commit is contained in:
Keith Nash
2017-04-04 09:20:45 -05:00
committed by GitHub
parent bbb1cea46e
commit 724642a2e4

View File

@@ -42,7 +42,7 @@ for pool in $pools; do
if [ "${pool}" = "freenas-boot" ]; then
frag=""
else
frag="$(zpool list -H -o frag ${pool})"
frag="$(zpool list -H -o frag "$pool")"
fi
status="$(zpool list -H -o health "$pool")"
errors="$(zpool status "$pool" | grep -E "(ONLINE|DEGRADED|FAULTED|UNAVAIL|REMOVED)[ \t]+[0-9]+")"