IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2022, 11:15:58 AM (4 years ago)
Author:
eugene
Message:

update rebalance scripts for 2022.09 run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rebalance/launch.trash.errors.sh

    r41683 r42314  
    11#!/bin/csh
    22
     3set list = "ipp100 ipp101 ipp102 ipp104 ipp105 ipp108 ipp112 ipp114 ipp115 ipp117 ipp123 ipp124 ipp125 ipp126 ipp134 ipp136 ipp137 ipp139"
     4set mydir = /data/ipphome1.0/home/eugene/rebalance.20220922
     5
     6if ($#argv == 1) then
     7  if ("$1" != "launch") then
     8    echo "USAGE: launch.trash.errors.sh launch"
     9    exit 2
     10  endif
     11  foreach f ($list)
     12    echo ssh -f $f "cd $mydir && ./launch.trash.errors.sh"
     13         ssh -f $f "cd $mydir && ./launch.trash.errors.sh"
     14  end
     15  exit 0
     16endif
     17
     18set run = v0
     19set version = 20220922
     20
     21set myhost = `hostname`
    322set Nhost = `hostname | sed s/ipp//`
    423
    5 set ver = "v0"
    6 set verdate = "20201209"
     24set target = NONE
     25switch ($myhost)
     26  # total of 23TB
     27  case ipp100
     28  case ipp101
     29  case ipp123
     30  set target = ipp153
     31  breaksw;
    732
     33  # total of 35TB
     34  case ipp102
     35  case ipp104
     36  case ipp124
     37  case ipp136
     38  set target = ipp154
     39  breaksw;
    840
    9 set target = NONE
    10 if (($Nhost > 101) && ($Nhost <= 111)) then
    11   set target = ipp145
    12 endif
    13 if ($Nhost > 111) then
    14   set target = ipp146
    15 endif
     41  # total of 35TB
     42  case ipp105
     43  case ipp108
     44  case ipp125
     45  case ipp137
     46  set target = ipp155
     47  breaksw;
    1648
    17 if (($Nhost == 100) || ($Nhost == 101)) then
    18   set target = ipp140
    19   set v = 0 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$verdate.log >& $h.$v/errors.trash.$verdate.$ver &
    20   set target = ipp133
    21   set v = 1 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$verdate.log >& $h.$v/errors.trash.$verdate.$ver &
    22   exit 0
    23 endif
     49  # total of 23TB
     50  case ipp112
     51  case ipp114
     52  case ipp126
     53  set target = ipp156
     54  breaksw;
     55
     56  # total of 38TB
     57  case ipp115
     58  case ipp117
     59  case ipp134
     60  case ipp139
     61  set target = ipp157
     62  breaksw;
     63endsw
    2464
    2565if ("$target" == "NONE") then
     
    2868endif
    2969
    30 set v = 0 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$verdate.log >& $h.$v/errors.trash.$verdate.$ver &
    31 set v = 1 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$verdate.log >& $h.$v/errors.trash.$verdate.$ver &
     70set v = 0 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$version.log >& $h.$v/errors.trash.$version.$run &
     71set v = 1 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$version.log >& $h.$v/errors.trash.$version.$run &
    3272
Note: See TracChangeset for help on using the changeset viewer.