Changeset 12576


Ignore:
Timestamp:
11/20/11 07:13:35 (13 years ago)
Author:
Daniela Dorner
Message:
changed to new structure (nfs mount of disk); bugfix
Location:
trunk/DataCheck
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/RsyncAux.sh

    r12561 r12576  
    66logfile=/home/`whoami`/DataCheck/log/RsyncAux$today.log
    77
    8 auxdir=loc_data/aux/$date
    98echo "" >> $logfile 2>&1
    109echo "" >> $logfile 2>&1
    1110echo "" >> $logfile 2>&1
     11# auxiliary data directories on data
     12auxdirdaq=/daq/aux/$date/ # /loc_data from daq via nfs on data
     13auxdirdata=/loc_data/aux/$date
    1214echo `date`": processing files in "$auxdir >> $logfile 2>&1
    1315
     16# get current hour
    1417hour=`date +%k`
     18# define bwlimit for rsync depending on the time
    1519if [ $hour -lt 8 ] || [ $hour -gt 18 ]
    1620then
    17    bwlimit="--bwlimit=2000"
     21   # limit bw for rsync to 20 MB/s during night
     22   bwlimit="--bwlimit=20000"
    1823   echo "rsync data with "$bwlimit >> $logfile 2>&1
    1924else
     25   # no bw limit during day
    2026   echo "rsync data without bwlimit" >> $logfile 2>&1
    2127fi
    2228
    2329#rsync from daq to data
    24 if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$auxdir /$auxdir >> $logfile 2>&1
     30if ! /usr/bin/rsync -avxHP $bwlimit $auxdirdaq $auxdirdata >> $logfile 2>&1
    2531then
    2632   echo `date`": problem rsyncing auxiliary data from daq to data"
  • trunk/DataCheck/RsyncRaw.sh

    r12561 r12576  
    99echo "" >> $logfile 2>&1
    1010echo "" >> $logfile 2>&1
    11 rawdir=loc_data/raw/$date
     11# raw data directories on data
     12rawdirdaq=/daq/raw/$date/ # /loc_data from daq via nfs on data
     13rawdirdata=/loc_data/raw/$date
    1214echo `date`": processing files in "$rawdir >> $logfile 2>&1
    1315
     16# get current hour
    1417hour=`date +%k`
     18# define bwlimit for rsync depending on the time
    1519if [ $hour -lt 8 ] || [ $hour -gt 18 ]
    1620then
     21   # limit bw for rsync to 20 MB/s during night
    1722   bwlimit="--bwlimit=20000"
    1823   echo "rsync data with "$bwlimit >> $logfile 2>&1
    1924else
     25   # no bw limit during day
    2026   echo "rsync data without bwlimit" >> $logfile 2>&1
    2127fi
    2228
    2329#rsync from daq to data
    24 if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$rawdir /$rawdir >> $logfile 2>&1
     30if ! /usr/bin/rsync -avxHP $bwlimit $rawdirdaq $rawdirdata >> $logfile 2>&1
    2531then
    2632   echo `date`": problem rsyncing rawdata from daq to data"
Note: See TracChangeset for help on using the changeset viewer.