blob: fff106588ea7b6c23b487cbe89e744cd87f369ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
#script to run mixed test on client mount pts
cd CLOUD_MNT_PT
y=`cat /opt/qa/nfstesting/mixedtest`
i=1 #change this value to reuse this file
for y in {1..13};
do
if [ $y -eq 13 ];then
echo "1" > /opt/qa/nfstesting/mixedtest
fi
if [ $y -eq 1 ];then
tool="iozone"
echo "2" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -p /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -p `hostname`/$tool/run_$i
#move to it
cd `hostname`/$tool/run_$i
# run iozone
( /opt/qa/tools/32-bit/iozone -a -b /opt/qa/nfstesting/$tool/log/`hostname`_`date +%h%d%T`_excel.xls > /opt/qa/nfstesting/$tool/log/`hostname`_`date +%h%d%T`_iozone.log ) &
elif [ $y -eq 2 ];then
tool="dbench"
echo "3" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -p /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -p `hostname`/$tool/run_$i
#move to it
cd `hostname`/$tool/run_$i
# run dbench
( dbench -s 10 -t 18000 > /opt/qa/nfstesting/$tool/log/`hostname`_`date +%h%d%T`_Dbench.log ) &
elif [ $y -eq 3 ];then
tool="fio"
echo "4" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -p /opt/qa/nfstesting/$tool/log
#create a directory for tool to run and move to it
mkdir -p `hostname`/$tool/run_$i
cd `hostname`/$tool/run_$i
( fio /opt/qa/nfstesting/$tool/randomread.fio > /opt/qa/nfstesting/$tool/log/`hostname`_`date +%h%d%T`_fio.log ) &
elif [ $y -eq 4 ];then
tool="fileop"
echo "5" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -p /opt/qa/nfstesting/$tool/log
mkdir -p `hostname`/$tool/run_$i
cd `hostname`/$tool/run_$i
#( /opt/qa/tools/kernel_compile.sh http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.34-rc5.tar.bz2 ) &
( (time /opt/qa/tools/32-bit/tars/iozone3_347/src/current/fileop -f 200 -t) 2>&1 | tee -a /opt/qa/nfstesting/$tool/log/`hostname`_`date +%%h%d%T`_fileop.log ) &
elif [ $y -eq 5 ];then
tool="bonnie"
echo "6" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -p /opt/qa/nfstesting/$tool/log
#adduser gluster
mkdir -p `hostname`/$tool/scratch/run_$i
chmod -R 777 `hostname`/$tool/scratch/run_$i
( /opt/qa/tools/32-bit/bonnie/sbin/bonnie++ -u gluster -d `hostname`/bonnie/scratch/run_$i > /opt/qa/nfstesting/$tool/log/`hostname`_`date +%h%d%T`_bonnie.log ) &
elif [ $y -eq 6 ];then
tool="postmark"
echo "7" > /opt/qa/nfstesting/mixedtest
#creat log
mkdir -p /opt/qa/nfstesting/$tool/log
mkdir -p CLOUD_MNT_PT/`hostname`/postmark
#create config file
echo "set number 10000" > /opt/qa/nfstesting/$tool/log/`hostname`.pm
echo "set subdirectories 10000" >> /opt/qa/nfstesting/$tool/log/`hostname`.pm
echo "set location CLOUD_MNT_PT/`hostname`/postmark" >> /opt/qa/nfstesting/$tool/log/`hostname`.pm
#run postmark
( /opt/qa/tools/32-bit/tars/tools.git/postmark/postmark /opt/qa/nfstesting/$tool/log/`hostname`.pm ) &
elif [ $y -eq 7 ];then
echo "8" > /opt/qa/nfstesting/mixedtest
#creat log
(
mkdir -p CLOUD_MNT_PT/`hostname`/tc9
cd CLOUD_MNT_PT/`hostname`/tc9
mkdir -p /opt/qa/nfstesting/tc9
cd /opt/qa/nfstesting/tc9
if [ ! -f /opt/qa/nfstesting/tc9/linux-2.6.33.2.tar.bz2 ];
then
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2
tar -xjf linux-2.6.33.2.tar.bz2
fi
mkdir -p CLOUD_MNT_PT/`hostname`/tc9
cp -R /opt/qa/nfstesting/tc9/linux-2.6.33.2 CLOUD_MNT_PT/`hostname`/tc9
cd /tmp
#umount CLOUD_MNT_PT
for k in {1..500};
do
#mount "ec2-67-202-6-25.compute-1.amazonaws.com:/statprefetch " CLOUD_MNT_PT
tar -c CLOUD_MNT_PT/`hostname`/tc9/linux-2.6.33.2 > CLOUD_MNT_PT/`hostname`/tc9/tarball.tar
rm -f CLOUD_MNT_PT/`hostname`/tc9/tarball.tar
#umount CLOUD_MNT_PT
done
) &
elif [ $y -eq 8 ];then
echo "9" > /opt/qa/nfstesting/mixedtest
#creat log
mkdir -p /opt/qa/nfstesting/log/tc10
( for k in {1..5000};
do
#mount "ec2-67-202-6-25.compute-1.amazonaws.com:/statprefetch -o noresvport " CLOUD_MNT_PT
df >> /opt/qa/nfstesting/log/tc10/hostname.log
#umount CLOUD_MNT_PT
done
) &
elif [ $y -eq 9 ];then
echo "10" > /opt/qa/nfstesting/mixedtest
#creat log
mkdir -p CLOUD_MNT_PT/`hostname`/tc12
cd CLOUD_MNT_PT/`hostname`/tc12
mkdir -p /opt/qa/nfstesting/tc12
cd /opt/qa/nfstesting/tc12
(
if [ ! -f /opt/qa/nfstesting/tc12/linux-2.6.33.2.tar.bz2 ]
then
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2
tar -xjf linux-2.6.33.2.tar.bz2
fi
mkdir -p CLOUD_MNT_PT/`hostname`/tc12
cd /tmp
#umount CLOUD_MNT_PT
for k in {1..100};
do
#mount "ec2-67-202-6-25.compute-1.amazonaws.com:/statprefetch " CLOUD_MNT_PT
rsync -avz -ignore-times /opt/qa/nfstesting/tc12/linux-2.6.33.2 CLOUD_MNT_PT/`hostname`/tc12
#umount CLOUD_MNT_PT
done
) &
elif [ $y -eq 10 ];then
echo "11" > /opt/qa/nfstesting/mixedtest
#creat log
mkdir -p CLOUD_MNT_PT/`hostname`/tc13
cd CLOUD_MNT_PT/`hostname`/tc13
(
mkdir -p /opt/qa/nfstesting/tc13
cd /opt/qa/nfstesting/tc13
if [ ! -f /opt/qa/nfstesting/tc13/linux-2.6.33.2.tar.bz2 ]
then
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2
tar -xjf linux-2.6.33.2.tar.bz2
fi
mkdir -p CLOUD_MNT_PT/`hostname`/tc13
cd /tmp
cp -R /opt/qa/nfstesting/t13/linux-2.6.33.2 CLOUD_MNT_PT/`hostname`/tc13
#umount CLOUD_MNT_PT
for k in {1..100};
do
#mount "ec2-67-202-6-25.compute-1.amazonaws.com:/statprefetch " CLOUD_MNT_PT
rsync -avz -ignore-times CLOUD_MNT_PT/`hostname`/tc13/linux-2.6.33.2 /tmp/rsynctest
#umount CLOUD_MNT_PT
rm -rf /tmp/rsynctest
done
) &
elif [ $y -eq 11 ];then
echo "12" > /opt/qa/nfstesting/mixedtest
#creat log
mkdir -p CLOUD_MNT_PT/`hostname`/tc17
cd CLOUD_MNT_PT/`hostname`/tc17
cd CLOUD_MNT_PT/`hostname`/tc17
( dbench -D CLOUD_MNT_PT/`hostname`/tc17 -t 86400 ) &
elif [ $y -eq 12 ];then
echo "13" > /opt/qa/nfstesting/mixedtest
#creat log
mkdir -p CLOUD_MNT_PT/`hostname`/tc4
cd CLOUD_MNT_PT/`hostname`/tc4
(
mkdir -p /opt/qa/nfstesting/tc4
cd /opt/qa/nfstesting/tc4
if [ ! -f /opt/qa/nfstesting/tc4/linux-2.6.33.2.tar.bz2 ]
then
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2
tar -xjf linux-2.6.33.2.tar.bz2
fi
mkdir -p CLOUD_MNT_PT/`hostname`/tc4
cd /tmp
#umount CLOUD_MNT_PT
for k in {1..1000};
do
#mount "ec2-67-202-6-25.compute-1.amazonaws.com:/statprefetch " CLOUD_MNT_PT
cp -R /opt/qa/nfstesting/tc4/linux-2.6.33.2 CLOUD_MNT_PT/`hostname`/tc4
find CLOUD_MNT_PT/`hostname`/tc4
rm -rf CLOUD_MNT_PT/`hostname`/tc4/*
#umount CLOUD_MNT_PT
done
) &
fi
done
|