Changeset 14824 for trunk/DataCheck/Transfer
- Timestamp:
- 02/04/13 05:16:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r14192 r14824 7 7 printprocesslog "INFO starting $0" 8 8 9 source /home_nfs/isdc/fact_opr/myagent.sh 10 11 # check first the disk in LP and on dl00 9 12 ssh fact@161.72.93.131 "df -h /*da*" 10 11 13 df -h /scratch 14 echo "" 15 16 # check next the DB to know if some transfer processes failed or crashed 17 function check_runs_in_db() 18 { 19 query="SELECT "$toquery" FROM "$1" "$where 20 #echo $query 21 runs=( `sendquery $query` ) 22 if [ ${#runs[@]} -gt 0 ] 23 then 24 #for run in ${runs[@]} 25 #do 26 # echo $run 27 #done 28 echo -e "\e[1;31m\x1b[5m ==>\e[00m "$1": "${runs[@]}"\e[1;31m\x1b[5m <==\e[00m " 29 echo "SELECT fNight, fRunId FROM "$1" "$where";" 30 echo "UPDATE "$1" SET fStartTime=NULL, fStopTime=NULL, fAvailable=NULL, fReturnCode=NULL, fProcessingSiteKey=NULL "$where";" 31 fi 32 } 33 # get information of runs where transfer had a problem 34 toquery="fNight, fRunID, fStartTime, fStopTime, fAvailable, fProcessingSiteKey, fReturnCode " 35 toquery="CONCAT(fNight, '_', fRunID, '(', fStartTime, '-', fStopTime, ':', fReturnCode, ')') " 36 toquery="CONCAT(fNight, '_', fRunID, ':', fReturnCode) " 37 toquery="IF (ISNULL(fReturnCode), CONCAT(fNight, '_', fRunID, 'crashed'), CONCAT(fNight, '_', fRunID, 'failed', fReturnCode)) " 38 where="WHERE NOT ISNULL(fReturnCode) OR (NOT ISNULL(fStartTime) AND ISNULL(fStopTime)) AND fStartTime < DATE_ADD(Now(), INTERVAL -3 HOUR) " 39 check_runs_in_db "RawFileRsyncedISDCStatus" 40 check_runs_in_db "RawFileAvailWueStatus" 41 # RawFileAvailISDC needs a different treatment 42 # as return code 0 means that file is in fails folder in archive 43 where="WHERE fReturnCode>0 OR (NOT ISNULL(fStartTime) AND ISNULL(fStopTime)) " 44 check_runs_in_db "RawFileAvailISDCStatus" 45 12 46 13 47 # get last 10 nights (skip current night) … … 18 52 `date +%Y/%m/%d --date="-72hour"` `date +%Y/%m/%d --date="-48hour"` `date +%Y/%m/%d --date="-24hour"` \ 19 53 ) 20 54 # get nights from directory in LP 21 55 dates=( `ssh fact@161.72.93.131 "find /loc_data/zipraw -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/zipraw\///g' "` ) 22 56 57 #dates=( "2012/09/22" ) 58 #short="yes" 59 23 60 numdaysok=0 24 numdaysoklimit= 361 numdaysoklimit=5 25 62 sumdata=0 26 checklimit= 250063 checklimit=5000 27 64 for date in ${dates[@]} 28 65 do … … 48 85 # get paths 49 86 date2=`echo $date | sed -e 's/\///g'` 50 lprawpath="/daq/raw/"$date 51 lprawpath2="/loc_data/raw/"$date 87 # lprawpath="/daq/raw/"$date 88 lprawpath="/newdaq/raw/"$date 89 # lprawpath2="/loc_data/raw/"$date 90 lprawpath2="/daq/raw/"$date 52 91 lpziprawpath="/loc_data/zipraw/"$date 53 92 localrawpath="/scratch/from_lapalma/raw/"$date 54 93 localrawpath3="/fact/raw/"$date 55 localfailpath="/archive/fact/fails/raw/"$date 94 # localfailpath="/archive/fact/fails/raw/"$date 95 localfailpath="/gpfs/fact/fact-archive/fails/raw/"$date 56 96 wuerawpath="/fact/raw/"$date 97 #phidorawpath="/fhgfs/groups/app/fact-construction/raw/"$date 57 98 58 99 # get disk usage and number of files for directory 59 daq=( `ssh fact@161.72.93.131 "if [ -d $lprawpath ]; then ls $lprawpath/* | wc -l; du -s -b --apparent-size $lprawpath; else echo '-1 -1 -1'; fi"` )60 da ta=( `ssh fact@161.72.93.131 "if [ -d $lprawpath2 ]; then ls $lprawpath2/* | wc -l; du -s -b --apparent-size $lprawpath2; else echo '-1 -1 -1'; fi"` )61 if [ ${ daq[0]} -eq -1 ] && [ ${data[0]} -eq -1 ]62 then 63 echo "INFO no data available on daq for "$date100 newdaq=( `ssh fact@161.72.93.131 "if [ -d $lprawpath ]; then ls $lprawpath/* | wc -l; du -s -b --apparent-size $lprawpath; else echo '-1 -1 -1'; fi"` ) 101 daq=( `ssh fact@161.72.93.131 "if [ -d $lprawpath2 ]; then ls $lprawpath2/* | wc -l; du -s -b --apparent-size $lprawpath2; else echo '-1 -1 -1'; fi"` ) 102 if [ ${newdaq[0]} -eq -1 ] && [ ${daq[0]} -eq -1 ] 103 then 104 echo "INFO no data available on newdaq for "$date 64 105 continue 65 106 fi … … 69 110 fails=( `if [ -d $localfailpath ]; then ls $localfailpath/* | wc -l; du -L -s -b --apparent-size $localfailpath; else echo '-1 -1 -1'; fi` ) 70 111 wue=( `ssh operator@coma.astro.uni-wuerzburg.de "if [ -d $wuerawpath ]; then ls $wuerawpath/* | wc -l; du -s -b --apparent-size $wuerawpath; else echo '-1 -1 -1'; fi"` ) 112 #phido=( `ssh -i /home_nfs/isdc/fact_opr/.ssh/id_rsa.fact_opr.phido 129.217.160.201 "if [ -d $phidorawpath ]; then ls $phidorawpath/* | wc -l; du -s -b --apparent-size $phidorawpath; else echo '-1 -1 -1'; fi"` ) 71 113 query="SELECT Sum(if(fHasDrsFile=1,2,1)) FROM RunInfo WHERE fNight="$date2 72 114 querystart="SELECT Sum(if(fHasDrsFile=1,2,1)) FROM " … … 96 138 numwue=0 97 139 fi 140 #query=$querystart"RawFileAvailPhidoStatus "$queryjoin" "$querywhere 141 #numphido=`sendquery` 142 #if [ "$numphido" == "" ] 143 #then 144 # numphido=0 145 #fi 98 146 echo "disk: " 147 echo " newdaq "${newdaq[@]} 99 148 echo " daq "${daq[@]} 100 echo " data "${data[@]} 101 echo " zip "${zip[@]} 149 echo " data "${zip[@]} 102 150 echo " dl00 "${dl00[@]} 103 151 echo " wue "${wue[@]} 104 152 echo " arch "${archive[@]} 105 153 echo " fail "${fails[@]} 154 #echo " phido "${phido[@]} 106 155 echo "db: " 107 156 echo " runinfo "$numruns … … 109 158 echo " isdc "$numisdc 110 159 echo " wue "$numwue 160 #echo " phido "$numphido 111 161 112 162 # check if file are available in the different places … … 121 171 122 172 # check if number of files agree in the different places 173 # lp 174 if ! [ ${daq[0]} -eq -1 ] && ! [ ${daq[0]} -eq ${newdaq[0]} ] 175 then 176 echo "WARN number of files on daq (" ${daq[0]}") does not agree with number of files on newdaq (" ${newdaq[0]}") for "$date 177 numpb=`echo " $numpb + 1 " | bc -l ` 178 result="1" 179 else 180 numok=`echo " $numok + 1 " | bc -l ` 181 result="0" 182 fi 183 # dl00 184 if ! [ ${dl00[0]} -eq -1 ] && ! [ ${dl00[0]} -eq ${newdaq[0]} ] 185 then 186 echo "WARN number of files on dl00 (" ${dl00[0]}") does not agree with number of files in LP (" ${newdaq[0]}") for "$date 187 numpb=`echo " $numpb + 1 " | bc -l ` 188 result=$result"1" 189 else 190 numok=`echo " $numok + 1 " | bc -l ` 191 result=$result"0" 192 fi 123 193 # archive 124 if ! [ ${archive[0]} -eq -1 ] && ! [ ${archive[0]} -eq ${ daq[0]} ]125 then 126 echo "WARN number of files in archive (" ${archive[0]}") does not agree with number of files in LP (" ${ daq[0]}") for "$date194 if ! [ ${archive[0]} -eq -1 ] && ! [ ${archive[0]} -eq ${newdaq[0]} ] 195 then 196 echo "WARN number of files in archive (" ${archive[0]}") does not agree with number of files in LP (" ${newdaq[0]}") for "$date 127 197 #check /archive/rev_1/failed 128 198 if ! [ ${fails[0]} -eq -1 ] 129 199 then 130 200 sum=`echo " ${fails[0]} + ${archive[0]} " | bc -l ` 131 if ! [ $sum -eq ${ daq[0]} ]132 then 133 echo "ERROR number of files in archive ("$sum") is different from number of files in La Palma ("${daq[0]}")."201 if ! [ $sum -eq ${newdaq[0]} ] 202 then 203 echo "ERROR number of files in whole archive ("$sum") is different from number of files in La Palma ("${newdaq[0]}")." 134 204 numpb=`echo " $numpb + 1 " | bc -l ` 135 result= "1"205 result=$result"1" 136 206 else 137 207 numok=`echo " $numok + 1 " | bc -l ` 138 result= "0"139 fi 140 else 141 result= "1"142 fi 143 else 144 numok=`echo " $numok + 1 " | bc -l ` 145 result= "0"146 fi 147 # lp148 if ! [ ${ data[0]} -eq -1 ] && ! [ ${data[0]} -eq ${daq[0]} ]149 then 150 echo "WARN number of files on data (" ${data[0]}") does not agree with number of files on daq (" ${daq[0]}") for "$date208 result=$result"0" 209 fi 210 else 211 result=$result"1" 212 fi 213 else 214 numok=`echo " $numok + 1 " | bc -l ` 215 result=$result"0" 216 fi 217 # wue 218 if ! [ ${wue[0]} -eq -1 ] && ! [ ${wue[0]} -eq ${newdaq[0]} ] 219 then 220 echo "WARN number of files in Wue (" ${wue[0]}") does not agree with number of files in LP (" ${newdaq[0]}") for "$date 151 221 numpb=`echo " $numpb + 1 " | bc -l ` 152 222 result=$result"1" … … 155 225 result=$result"0" 156 226 fi 157 # dl00 158 if ! [ ${dl00[0]} -eq -1 ] && ! [ ${dl00[0]} -eq ${daq[0]} ] 159 then 160 echo "WARN number of files on dl00 (" ${dl00[0]}") does not agree with number of files in LP (" ${daq[0]}") for "$date 161 numpb=`echo " $numpb + 1 " | bc -l ` 162 result=$result"1" 163 else 164 numok=`echo " $numok + 1 " | bc -l ` 165 result=$result"0" 166 fi 167 # wue 168 if ! [ ${wue[0]} -eq -1 ] && ! [ ${wue[0]} -eq ${daq[0]} ] 169 then 170 echo "WARN number of files in Wue (" ${wue[0]}") does not agree with number of files in LP (" ${daq[0]}") for "$date 171 numpb=`echo " $numpb + 1 " | bc -l ` 172 result=$result"1" 173 else 174 numok=`echo " $numok + 1 " | bc -l ` 175 result=$result"0" 227 ## phido 228 #if ! [ ${phido[0]} -eq -1 ] && ! [ ${phido[0]} -eq ${newdaq[0]} ] 229 #then 230 # echo "WARN number of files on Phido (" ${phido[0]}") does not agree with number of files in LP (" ${newdaq[0]}") for "$date 231 # numpb=`echo " $numpb + 1 " | bc -l ` 232 # result=$result"1" 233 #else 234 # numok=`echo " $numok + 1 " | bc -l ` 235 # result=$result"0" 236 #fi 237 238 if [ "$short" = "yes" ] 239 then 240 continue 176 241 fi 177 242 … … 179 244 # check du for raw files 180 245 # la palma 181 if ! [ ${ daq[1]} -eq ${data[1]} ]182 then 183 echo "WARN size of data doesn't agree on daq ("${daq[1]}") and data ("${data[1]}") for "$date246 if ! [ ${newdaq[1]} -eq ${daq[1]} ] 247 then 248 echo "WARN size of data doesn't agree on newdaq ("${newdaq[1]}") and daq ("${daq[1]}") for "$date 184 249 numdiff=`echo " $numdiff + 1 " | bc -l ` 185 250 numpb=`echo " $numpb + 1 " | bc -l ` … … 241 306 result=$result"0" 242 307 fi 308 ## phido 309 #if ! [ ${zip[1]} -eq ${phido[1]} ] 310 #then 311 # echo "WARN size of data doesn't agree on data ("${zip[1]}") and on Phido ("${phido[1]}") for "$date 312 # if ! [ ${phido[1]} -eq -1 ] 313 # then 314 # numdiff=`echo " $numdiff + 1 " | bc -l ` 315 # numpb=`echo " $numpb + 1 " | bc -l ` 316 # result=$result"1" 317 # else 318 # numok=`echo " $numok + 1 " | bc -l ` 319 # result=$result"0" 320 # fi 321 #else 322 # numok=`echo " $numok + 1 " | bc -l ` 323 # result=$result"0" 324 #fi 243 325 result=$result"-" 244 326 … … 247 329 then 248 330 # lp 249 if ! [ $numruns -eq ${ daq[0]} ]250 then 251 echo "WARN number of runs on daq ("${daq[0]}") not equal to number of runs ("$numruns")"331 if ! [ $numruns -eq ${newdaq[0]} ] 332 then 333 echo "WARN number of runs on newdaq ("${newdaq[0]}") not equal to number of runs ("$numruns")" 252 334 numpb=`echo " $numpb + 1 " | bc -l ` 253 335 result=$result"1" … … 286 368 result=$result"0" 287 369 fi 370 ## phido 371 #if ! [ $numruns -eq $numphido ] 372 #then 373 # echo "WARN number of backuped on Phido ("$numrsynced") not equal to number of runs ("$numruns")" 374 # numpb=`echo " $numpb + 1 " | bc -l ` 375 # result=$result"1" 376 #else 377 # numok=`echo " $numok + 1 " | bc -l ` 378 # result=$result"0" 379 #fi 288 380 fi 289 381 … … 292 384 echo "INFO numok: "$numok 293 385 echo "INFO numpb: "$numpb 294 if [ $numdiff -gt 0 ] 386 #if [ $numdiff -gt 0 ] 387 if [ $numdiff -ge 0 ] 295 388 then 296 389 query="SELECT fRunID FROM RunInfo WHERE fNight="$date2 … … 300 393 wuediffcounter=0 301 394 wueokcounter=0 395 #phidodiffcounter=0 396 #phidookcounter=0 302 397 dl00diffcounter=0 303 398 dl00okcounter=0 304 da tadiffcounter=0305 da taokcounter=0399 daqdiffcounter=0 400 daqokcounter=0 306 401 echo "INFO found "${#runs[@]}" rawfiles in DB." 307 402 for run in ${runs[@]} … … 311 406 312 407 # get file sizes for run 313 size daq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` )314 sizeda ta=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` )408 sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 409 sizedaq=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` ) 315 410 sizezip=( `ssh fact@161.72.93.131 "ls -l $lpziprawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 316 411 if ! [ ${dl00[1]} -eq -1 ] … … 330 425 sizewue=( `ssh operator@coma.astro.uni-wuerzburg.de "ls -l $wuerawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 331 426 fi 427 # echo "vgl "$run": "$sizezip" - "$sizearchive 428 #if ! [ ${phido[1]} -eq -1 ] 429 #then 430 # sizephido=( `ssh -i /home_nfs/isdc/fact_opr/.ssh/id_rsa.fact_opr.phido 129.217.160.201 "ls -l $phidorawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 431 #fi 332 432 333 433 # check file sizes for run 334 434 # lp 335 if ! [ "$size daq" = "$sizedata" ]336 then 337 echo " "$rawfile" daq("$sizedaq") data("$sizedata")"338 da tadiffcounter=`echo " $datadiffcounter + 1 " | bc -l `339 else 340 da taokcounter=`echo " $dataokcounter + 1 " | bc -l `435 if ! [ "$sizenewdaq" = "$sizedaq" ] 436 then 437 echo " "$rawfile" newdaq("$sizenewdaq") daq("$sizedaq")" 438 daqdiffcounter=`echo " $daqdiffcounter + 1 " | bc -l ` 439 else 440 daqokcounter=`echo " $daqokcounter + 1 " | bc -l ` 341 441 fi 342 442 # dl00 … … 349 449 fi 350 450 # archive 351 if [ "$sizezip" != "$sizearchive" -a ${archive[1]} -ne -1 -a "$sizearchive" != "" ] || [ "$sizezip" != "$sizefails" -a ${fails[1]} -ne -1 -a "$sizefails" != "" ] 451 #if [ "$sizezip" != "$sizearchive" -a ${archive[1]} -ne -1 -a "$sizearchive" != "" ] || [ "$sizezip" != "$sizefails" -a ${fails[1]} -ne -1 -a "$sizefails" != "" ] #not yet ingested files are treated wrongly 452 #if [ ${archive[1]} -ne -1 ] && [ "$sizezip" != "$sizearchive" -o "$sizezip" != "$sizefails" ] 453 if [ ${archive[1]} -ne -1 -a "$sizezip" != "$sizearchive" -a "$sizezip" != "$sizefails" ] 352 454 then 353 455 echo " "$rawfile2" data("$sizezip") archive("$sizearchive"/"$sizefails")" … … 365 467 wueokcounter=`echo " $wueokcounter + 1 " | bc -l ` 366 468 fi 469 ## phido 470 #if ! [ "$sizezip" = "$sizephido" ] && ! [ ${phido[1]} -eq -1 ] 471 #then 472 # echo " "$rawfile2" data("$sizezip") phido("$sizephido")" 473 # phidodiffcounter=`echo " $phidodiffcounter + 1 " | bc -l ` 474 #else 475 # phidookcounter=`echo " $phidookcounter + 1 " | bc -l ` 476 #fi 367 477 done 368 478 query="SELECT fRunID FROM RunInfo WHERE fNight="$date2" AND fHasDrsFile=1" … … 371 481 for drsrun in ${drsruns[@]} 372 482 do 373 rawfile=$date2"_"`printf %03d $ run`"drs.fits"483 rawfile=$date2"_"`printf %03d $drsrun`".drs.fits" 374 484 rawfile2=$rawfile".gz" 375 485 # get file sizes for run 376 size daq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` )377 sizeda ta=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` )486 sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 487 sizedaq=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` ) 378 488 sizezip=( `ssh fact@161.72.93.131 "ls -l $lpziprawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 379 489 if ! [ ${dl00[1]} -eq -1 ] … … 393 503 sizewue=( `ssh operator@coma.astro.uni-wuerzburg.de "ls -l $wuerawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 394 504 fi 505 #if ! [ ${phido[1]} -eq -1 ] 506 #then 507 # sizephido=( `ssh -i /home_nfs/isdc/fact_opr/.ssh/id_rsa.fact_opr.phido 129.217.160.201 "ls -l $phidorawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 508 #fi 395 509 396 510 # check file sizes for run 397 511 # lp 398 if ! [ "$size daq" = "$sizedata" ]399 then 400 echo " "$rawfile" daq("$sizedaq") data("$sizedata")"401 da tadiffcounter=`echo " $datadiffcounter + 1 " | bc -l `402 else 403 da taokcounter=`echo " $dataokcounter + 1 " | bc -l `512 if ! [ "$sizenewdaq" = "$sizedaq" ] 513 then 514 echo " "$rawfile" newdaq("$sizenewdaq") daq("$sizedaq")" 515 daqdiffcounter=`echo " $daqdiffcounter + 1 " | bc -l ` 516 else 517 daqokcounter=`echo " $daqokcounter + 1 " | bc -l ` 404 518 fi 405 519 # dl00 … … 411 525 dl00okcounter=`echo " $dl00okcounter + 1 " | bc -l ` 412 526 fi 413 if [ "$sizezip" != "$sizearchive" -a ${archive[1]} -ne -1 ] || [ "$sizezip" != "$sizefails" -a ${fails[1]} -ne -1 ] 527 #if [ "$sizezip" != "$sizearchive" -a ${archive[1]} -ne -1 ] || [ "$sizezip" != "$sizefails" -a ${fails[1]} -ne -1 ] 528 if [ "$sizezip" != "$sizearchive" -a ${archive[1]} -ne -1 -a "$sizearchive" != "" ] || [ "$sizezip" != "$sizefails" -a ${fails[1]} -ne -1 -a "$sizefails" != "" ] 414 529 then 415 530 echo " "$rawfile2" data("$sizezip") archive("$sizearchive"/"$sizefails")" … … 426 541 wueokcounter=`echo " $wueokcounter + 1 " | bc -l ` 427 542 fi 543 ## phido 544 #if ! [ "$sizezip" = "$sizephido" ] && ! [ ${phido[1]} -eq -1 ] 545 #then 546 # echo " "$rawfile2" data("$sizezip") phido("$sizephido")" 547 # phidodiffcounter=`echo " $phidodiffcounter + 1 " | bc -l ` 548 #else 549 # phidookcounter=`echo " $phidookcounter + 1 " | bc -l ` 550 #fi 428 551 done 429 552 430 553 result=$result"-" 431 554 # raw files 432 if [ $da taokcounter -eq ${data[0]} ]555 if [ $daqokcounter -eq ${daq[0]} ] 433 556 then 434 557 numok=`echo " $numok + 1 " | bc -l ` … … 449 572 fi 450 573 # archive 574 # daq had been used, because archive[0] doesn't include fails[0] 575 #if [ $archiveokcounter -eq ${newdaq[0]} ] 576 # archive[0] had been used, because newdaq[0] might be empty 577 # in case the data was taken on data 578 #if [ $archiveokcounter -eq ${archive[0]} ] 579 # compare with daq[0] as there should be always data on data 451 580 if [ $archiveokcounter -eq ${daq[0]} ] 452 581 then … … 466 595 numpb=`echo " $numpb + 1 " | bc -l ` 467 596 fi 468 echo "INFO "$dataokcounter" files are ok on data (raw)." 597 ## phido 598 #if [ $phidookcounter -eq ${phido[0]} ] 599 #then 600 # result=$result"0" 601 # numok=`echo " $numok + 1 " | bc -l ` 602 #else 603 # result=$result"1" 604 # numpb=`echo " $numpb + 1 " | bc -l ` 605 #fi 606 echo "INFO "$daqokcounter" files are ok on daq (raw)." 469 607 echo "INFO "$dl00okcounter" files are ok on dl00." 470 608 echo "INFO "$wueokcounter" files are ok in Wue." 471 609 echo "INFO "$archiveokcounter" files are ok in the archive." 472 echo "WARN "$datadiffcounter" files have a different size on data (raw)." 610 #echo "INFO "$phidookcounter" files are ok on Phido." 611 echo "WARN "$daqdiffcounter" files have a different size on daq (raw)." 473 612 echo "WARN "$dl00diffcounter" files have a different size on dl00." 474 613 echo "WARN "$wuediffcounter" files have a different size in Wue." 475 614 echo "WARN "$archivediffcounter" files have a different size in the archive." 615 #echo "WARN "$phidodiffcounter" files have a different size on Phido." 476 616 fi 477 617 … … 482 622 echo "result:" 483 623 echo "(#files-dudir-db-filesize)" 624 #echo " ldawp-ldawp-ldawp-ldawp" 484 625 echo " ldaw-ldaw-ldaw-ldaw" 485 626 echo " "$result 486 sumdatanew=`echo " ( ${da ta[1]} + ${zip[1]} ) / 1024 / 1024 / 1024 " | bc -l | cut -d. -f1`627 sumdatanew=`echo " ( ${daq[1]} + ${zip[1]} ) / 1024 / 1024 / 1024 " | bc -l | cut -d. -f1` 487 628 sumdata=`echo " $sumdata + $sumdatanew " | bc -l | cut -d. -f1` 488 echo "checked alread "$sumdata" GB. "$sumdatanew" "${da ta[1]}" "${zip[1]}629 echo "checked alread "$sumdata" GB. "$sumdatanew" "${daq[1]}" "${zip[1]} 489 630 if [ $numpb -lt 4 ] 490 631 then
Note:
See TracChangeset
for help on using the changeset viewer.