Ignore:
Timestamp:
05/08/13 18:14:35 (12 years ago)
Author:
Daniela Dorner
Message:
bugfix in disk-usage-check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/Step1.sh

    r15520 r15558  
    6262}
    6363
    64 diskusage=( `df -P /raid10 | grep raid10 ` )
    65 # check if more than 700 GB are left on /loc_data
    66 if [ ${diskusage[3]} -lt 800000000 ]
    67 then
    68    echo "WARN less than 700 left on /raid10 on node "$HOSTNAME
    69    printprocesslog "WARN less than 700 left on /raid10 on node "$HOSTNAME
    70    df -h /raid10
    71    finish
    72 fi
     64function check_daq()
     65{
     66   diskusage=( `df -P /raid10 | grep raid10 ` )
     67   # check if more than 700 GB are left on /loc_data
     68   if [ ${diskusage[3]} -lt 800000000 ]
     69   then
     70      echo "WARN less than 700 left on /raid10 on node "$HOSTNAME
     71      printprocesslog "WARN less than 700 left on /raid10 on node "$HOSTNAME
     72      df -h /raid10
     73      finish
     74   fi
     75}
     76
     77check_daq
    7378
    7479printprocesslog "INFO get lists of raw files on newdaq and daq"
     
    9196while [ ${#fileslocal[@]} -ne ${#files[@]} ] || [ $numdataruns -ne ${#callistofiles[@]} ]
    9297do
     98   # only continue with script
     99   #  when there is more than 10% space on daq
     100   check_daq
     101   
    93102   numdataruns=0
    94103   #echo "INFO #files-daq:"${#fileslocal[@]}" #files-newdaq:"${#files[@]}" #callisto-logs:"${#callistofiles[@]}" #data-runs:"$numdataruns
Note: See TracChangeset for help on using the changeset viewer.