Changeset 12642 for trunk


Ignore:
Timestamp:
11/25/11 06:03:29 (13 years ago)
Author:
Daniela Dorner
Message:
during day check for 500 GB, during night during 200 GB
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/CheckDU.sh

    r12631 r12642  
    77fi
    88
     9# get current hour
     10hour=`date +%k`
     11# define bwlimit for rsync depending on the time
     12if [ $hour -lt 10 ] || [ $hour -gt 18 ]
     13then
     14   # check 200 GB
     15   dulimit=209715200
     16   dutext="200 GB"
     17else
     18   # check 500 GB
     19   dulimit=524288000
     20   dutext="500 GB"
     21fi
     22
     23# get available disk space
    924diskusage=( `df -P $dir | grep $dir ` )
    1025# check if more than X GB are left on /loc_data
    11 if [ ${diskusage[3]} -lt 209715200 ]  # 200 GB
    12 #if [ ${diskusage[3]} -lt 104857600 ] # 100 GB
     26if [ ${diskusage[3]} -lt $dulimit ]
    1327then
    14    echo "WARN less than 200 GB left on /loc_data on node "$HOSTNAME
     28   echo "WARN less than "$dutext" left on /loc_data on node "$HOSTNAME
    1529   df -h $dir
    1630fi
Note: See TracChangeset for help on using the changeset viewer.