#!/bin/sh # Output STDOUT and STDERR to log file # ./disktest1.sh > run1.log 2>&1 date echo uname -a # Create files into the following directories # ./ is the home directory for root # /data is a 120GB EBS mount (ext3 for linux, zfs for Solaris) # /mnt is the standard ec2 mount # /tmp is the standard ec2 tmp swap mount for d in ./ /data /mnt /tmp do echo echo # Create 10MB, 100MB, and 1000MB files from /dev/zero echo "-----${d}----------------------------------------------------------" for i in 10240000 102400000 1024000000 do # Wash, Rinse, Repeat for r in 1 2 3 do echo "RUN $r : time dd if=/dev/zero of=${d}/test1-$i count=1 bs=$i" time dd if=/dev/zero of=${d}/test1-$i count=1 bs=$i rm -rf ${d}/test1-$i done done done echo date echo