Files
cis/definitions/default/check/all/system_zpool_alignment_of_pool.check.sh
Martin Berghaus 00b920763e Checks improved
2026-05-09 21:59:40 +02:00

11 lines
311 B
Bash
Executable File

#!/bin/bash
_CURRENT_POOL='zpool1'
#Check if the tool 'zpool' is available, then
#retrieve the property 'ashift' from 'zpool1', without header and compare the result with '12'
zpool version &> /dev/null \
&& [ "$(zpool get ashift -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "12" ] \
&& exit 0
exit 1