Update nodemgmt-scripts.sh
This commit is contained in:
@@ -572,6 +572,7 @@ STATUS(){
|
|||||||
for partition in "${partitions3[@]}"; do
|
for partition in "${partitions3[@]}"; do
|
||||||
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
|
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
|
||||||
pname=`echo "${partition}" | awk -F'/' ' { print $NF } '` >/dev/null 2>&1
|
pname=`echo "${partition}" | awk -F'/' ' { print $NF } '` >/dev/null 2>&1
|
||||||
|
pname=${pname#*vg-}
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
c=0; cw=40; spc=''
|
c=0; cw=40; spc=''
|
||||||
spc1=${cw}-${#pname}
|
spc1=${cw}-${#pname}
|
||||||
@@ -579,7 +580,7 @@ STATUS(){
|
|||||||
echo -en " ${pname}$spc: "
|
echo -en " ${pname}$spc: "
|
||||||
fi
|
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
|
freespace=`${NCMD} df -hPBM ${prt} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
|
||||||
|
|
||||||
if [ "${freespace}" -le "1000" ]; then
|
if [ "${freespace}" -le "1000" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user