mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-08 20:15:28 +02:00
add missing ctl count to script
This commit is contained in:
@@ -9,6 +9,10 @@ LIMIT=1000
|
||||
while [ 1 ]; do
|
||||
sleep "${WAIT_TIME_SECS}"
|
||||
|
||||
# ctl targets
|
||||
CTL_TARGET_COUNT=$(ctladm portlist | grep iqn | wc -l | sed 's/^[ \t]*//;s/[ \t]*$//')
|
||||
echo "ctl target count: ${CTL_TARGET_COUNT}"
|
||||
|
||||
# ctl extents
|
||||
CTL_EXTENT_COUNT=$(ctladm devlist | tail -n +2 | wc -l | sed 's/^[ \t]*//;s/[ \t]*$//')
|
||||
echo "ctl extent count: ${CTL_EXTENT_COUNT}"
|
||||
|
||||
Reference in New Issue
Block a user