Changeset 100


Ignore:
Timestamp:
Aug 13, 2009, 10:17:28 AM (15 years ago)
Author:
jazz
Message:
  • tiny update
Location:
drbl-green-benchmark
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • drbl-green-benchmark/diskfull-benchmark.sh

    r99 r100  
    44export LC_ALL=en_US
    55log_start=$(date +"%y%m%d-%H%M%S_")
    6 log_file="/var/log/${log_start}diskfull-benchmark.log"
    7 #status_file="/var/log/${log_start}diskfull-benchmark-status.log"
     6log_file="/root/log/${log_start}diskfull-benchmark.log"
     7#status_file="/root/log/${log_start}diskfull-benchmark-status.log"
    88status_file="/dev/null"
    9 local_zip="/var/log/${log_start}diskfull.tar.gz"
     9local_zip="/root/log/${log_start}diskfull.tar.gz"
    1010echo "0. Rebooting...." > $log_file
    1111echo "0. Rebooting...."
     
    1414up-host-a > /root/.dsh/machines.list
    1515rm -f /root/.ssh/known_hosts
     16mkdir -p /root/log/
    1617
    1718function mydsh()
    1819{
    19   dsh -a -c "date > /var/log/$2.time.$1; /usr/bin/time -a -o /var/log/$2.time.$i $3; date >> /var/log/$2.time.$1" >> $status_file 2>&1
     20  dsh -a -c "date > /root/log/$2.time.$1; /usr/bin/time -a -o /root/log/$2.time.$i $3; date >> /root/log/$2.time.$1" >> $status_file 2>&1
    2021}
    2122
     
    2425  echo "[$i] 1. Booting...." >> $log_file
    2526  echo "[$i] 1. Booting...."
    26   dsh -a -c "rm -f /var/log/*.time.*" >> $status_file 2>&1
    2727  dsh -a -c "reboot" >> $status_file 2>&1
    2828  `date >> $log_file`
     
    9595  `date >> $log_file`
    9696done
    97 mydsh "F" "collect" "tar zcvf $local_zip /var/log/*.time.*"
     97mydsh "F" "collect" "tar zcvf $local_zip /root/log/*.time.*"
  • drbl-green-benchmark/diskless-benchmark.sh

    r99 r100  
    44export LC_ALL=en_US
    55log_start=$(date +"%y%m%d-%H%M%S_")
    6 log_file="/var/log/${log_start}diskless-benchmark.log"
    7 #status_file="/var/log/${log_start}diskless-benchmark-status.log"
     6log_file="/root/log/${log_start}diskless-benchmark.log"
     7#status_file="/root/log/${log_start}diskless-benchmark-status.log"
    88status_file="/dev/null"
    9 local_zip="/var/log/${log_start}diskless.tar.gz"
     9local_zip="/root/log/${log_start}diskless.tar.gz"
    1010echo "0. Rebooting...." > $log_file
    1111echo "0. Rebooting...."
     
    1414up-host-a > /root/.dsh/machines.list
    1515rm -f /root/.ssh/known_hosts
     16mkdir -p /root/log/
    1617
    1718function mydsh()
    1819{
    19   dsh -a -c "date > /var/log/$2.time.$1; /usr/bin/time -a -o /var/log/$2.time.$i $3; date >> /var/log/$2.time.$1" >> $status_file 2>&1
     20  dsh -a -c "date > /root/log/$2.time.$1; /usr/bin/time -a -o /root/log/$2.time.$i $3; date >> /root/log/$2.time.$1" >> $status_file 2>&1
    2021}
    2122
     
    2425  echo "[$i] 1. Booting...." >> $log_file
    2526  echo "[$i] 1. Booting...."
    26   dsh -a -c "rm -f /var/log/*.time.*" >> $status_file 2>&1
    2727  dsh -a -c "reboot" >> $status_file 2>&1
    2828  `date >> $log_file`
     
    9595  `date >> $log_file`
    9696done
    97 mydsh "F" "collect" "tar zcvf $local_zip /var/log/*.time.*"
     97mydsh "F" "collect" "tar zcvf $local_zip /root/log/*.time.*"
Note: See TracChangeset for help on using the changeset viewer.