Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 16:34:37 -05:00
parent 5d71e4e1e2
commit 7c4a8f3b20

View File

@@ -572,6 +572,7 @@ STATUS(){
for partition in "${partitions3[@]}"; do
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
pname=`echo "${partition}" | awk -F'/' ' { print $NF } '` >/dev/null 2>&1
pname=${pname#*vg-}
if [ "${ST_ACTION}" != "check" ]; then
c=0; cw=40; spc=''
spc1=${cw}-${#pname}
@@ -579,7 +580,7 @@ STATUS(){
echo -en " ${pname}$spc: "
fi
[ "${partition}" == "/dev/root" ] && prt='/' || prt=${partition}
[[ "${partition}" =~ *"root"* ]] && prt='/' || prt=${partition}
freespace=`${NCMD} df -hPBM ${prt} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
if [ "${freespace}" -le "1000" ]; then