Changeset 42314 for trunk/tools/eam/rebalance/launch.trash.errors.sh
- Timestamp:
- Dec 1, 2022, 11:15:58 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/tools/eam/rebalance/launch.trash.errors.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rebalance/launch.trash.errors.sh
r41683 r42314 1 1 #!/bin/csh 2 2 3 set list = "ipp100 ipp101 ipp102 ipp104 ipp105 ipp108 ipp112 ipp114 ipp115 ipp117 ipp123 ipp124 ipp125 ipp126 ipp134 ipp136 ipp137 ipp139" 4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20220922 5 6 if ($#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 16 endif 17 18 set run = v0 19 set version = 20220922 20 21 set myhost = `hostname` 3 22 set Nhost = `hostname | sed s/ipp//` 4 23 5 set ver = "v0" 6 set verdate = "20201209" 24 set target = NONE 25 switch ($myhost) 26 # total of 23TB 27 case ipp100 28 case ipp101 29 case ipp123 30 set target = ipp153 31 breaksw; 7 32 33 # total of 35TB 34 case ipp102 35 case ipp104 36 case ipp124 37 case ipp136 38 set target = ipp154 39 breaksw; 8 40 9 set target = NONE 10 if (($Nhost > 101) && ($Nhost <= 111)) then 11 set target = ipp14512 endif 13 if ($Nhost > 111) then 14 set target = ipp1 4615 endif 41 # total of 35TB 42 case ipp105 43 case ipp108 44 case ipp125 45 case ipp137 46 set target = ipp155 47 breaksw; 16 48 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; 63 endsw 24 64 25 65 if ("$target" == "NONE") then … … 28 68 endif 29 69 30 set v = 0 ; set h = `hostname` ; set t = $target; grep ERROR /data/$h.$v/nebulous/??/rebalance/check.trash.$ver date.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.$ver date.log >& $h.$v/errors.trash.$verdate.$ver&70 set 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 & 71 set 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 & 32 72
Note:
See TracChangeset
for help on using the changeset viewer.
