Ignore:
Timestamp:
03/16/14 23:42:56 (11 years ago)
Author:
Daniela Dorner
Message:
added check for full disk - at 100GB transfer is stopped
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/RsyncRawToISDC.sh

    r17594 r17612  
    1717checklock
    1818
     19# stop transfer when less than 100 GB are left
     20function check_scratch()
     21{
     22   diskusage2=( `df -P /scratch | grep scratch ` )
     23   # check if more than X GB are left on /scratch
     24   if [ ${diskusage2[3]} -lt 100000 ]
     25   then
     26      printprocesslog "DISK less than 100 GB left on /scratch "
     27      #echo "WARN less than 100 GB left on /scratch "
     28      echo "WARN less than 100 GB left on /scratch " >> $logfile2 2>&1
     29      finish
     30   fi
     31}
     32
     33check_scratch
     34
    1935# get todo list
    2036gettodo
     
    2238for (( s=0 ; s < $num ; s++ ))
    2339do
     40   check_scratch
    2441   night=${primaries[$s+$s]}
    2542   runid=${primaries[$s+$s+1]}
Note: See TracChangeset for help on using the changeset viewer.