mirror of
https://github.com/m8tin/cis.git
synced 2025-12-06 07:48:26 +01:00
Checks that ensure the correct basic configuration of the host
This commit is contained in:
10
script/check/host/all/system_zpool_alignment_of_pool.check.sh
Executable file
10
script/check/host/all/system_zpool_alignment_of_pool.check.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user