Changeset 41456
- Timestamp:
- Dec 15, 2020, 9:26:14 AM (6 years ago)
- Location:
- trunk/tools/eam
- Files:
-
- 37 added
- 1 edited
-
cluster.checks (added)
-
cluster.checks/check.dataeugene (added)
-
cluster.checks/check.df (added)
-
cluster.checks/check.dirs (added)
-
cluster.checks/check.disks (added)
-
cluster.checks/check.dmesg (added)
-
cluster.checks/check.glockfail (added)
-
cluster.checks/check.glockfile (added)
-
cluster.checks/check.homedir (added)
-
cluster.checks/check.ipp014 (added)
-
cluster.checks/check.ipp031 (added)
-
cluster.checks/check.ipp032 (added)
-
cluster.checks/check.kill (added)
-
cluster.checks/check.localtime (added)
-
cluster.checks/check.messages (added)
-
cluster.checks/check.mountall.ippx (added)
-
cluster.checks/check.mounts (added)
-
cluster.checks/check.mounts.ex.cab2 (added)
-
cluster.checks/check.nfs (added)
-
cluster.checks/check.ping (added)
-
cluster.checks/check.process (added)
-
cluster.checks/check.psipp (added)
-
cluster.checks/check.psux (added)
-
cluster.checks/check.reboot (added)
-
cluster.checks/check.resolv (added)
-
cluster.checks/check.sar (added)
-
cluster.checks/check.scidbm (added)
-
cluster.checks/check.speed (added)
-
cluster.checks/check.speed.highc (added)
-
cluster.checks/check.stsci (added)
-
cluster.checks/check.umount (added)
-
cluster.checks/check.umountall (added)
-
cluster.checks/my.alt.force.umount (added)
-
cluster.checks/node.loop (added)
-
rebalance/rebalance.mana (modified) (5 diffs)
-
triples (added)
-
triples/find.triples.pl (added)
-
triples/triples.pl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rebalance/rebalance.mana
r41407 r41456 40 40 # generate the full paths: 41 41 $source = /data/$srchost.$srcvol/nebulous 42 $target = /data/$tgthost.$tgtvol/rebalance/$srchost.$srcvol/nebulous42 # $target = /data/$tgthost.$tgtvol/rebalance/$srchost.$srcvol/nebulous 43 43 44 44 ## make sure target exists 45 mkdir $target45 # mkdir $target 46 46 47 47 ## this script must be run on the same machine as the source … … 106 106 107 107 ## make sure target exists 108 mkdir $target108 # mkdir $target 109 109 110 110 ## this script must be run on the same machine as the source … … 159 159 sprintf movelog %s/rebalance/movefiles.%s.log $srcdir $VERSION 160 160 sprintf subdirset "%s/??" $srcdir 161 162 local isFound 163 file $movelist isFound 164 if ($isFound) continue 165 161 166 exec find $subdirset -size +$BIGSIZE > $filelist 162 167 … … 216 221 $target = /data/$tgthost.$tgtvol/rebalance/$srchost.$srcvol/nebulous 217 222 223 ## make sure target exists 224 mkdir $target 225 226 $TIMEFORMAT = mjd 227 $TIMEREF = 2000/01/01,00:00:00; # this is not used but required to exist for ctimes 228 229 # give the start of the night in HST hours: 230 $HSTNightStart = 18.5 231 $HSTNightEnd = 7.5 232 233 $UTNightStart = ($HSTNightStart + 10) / 24; $UTNightStart = $UTNightStart - int($UTNightStart) 234 $UTNightEnd = ($HSTNightEnd + 10) / 24; $UTNightEnd = $UTNightEnd - int($UTNightEnd) 235 218 236 for i 0 $NSUBDIR 219 237 sprintf srcdir "%s/%02x" $source $i … … 226 244 227 245 echo "rsyncing $srcdir/ to $tgtdir/ : $movelog" 246 break -auto off 228 247 exec rsync -auv --files-from=$movelist $srcdir/ $tgtdir/ >& $movelog 248 break -auto on 249 250 # check the time: is it night time (sleep and restart later) 251 $isNight = 1 252 while ($isNight) 253 ctimes -abs now -var tnow 254 $tfrac = $tnow - int($tnow) 255 $isNight = (($tfrac > $UTNightStart) && ($tfrac < $UTNightEnd)) 256 if ($isNight) 257 echo "it is night time, sleeping until the morning" 258 sleep 600 259 end 260 end 229 261 end 230 262 end
Note:
See TracChangeset
for help on using the changeset viewer.
