blob: 1bf53bfc34d5db78cecd146474db929a32ee5eac (
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
cd CLOUD_MNT_PT
i="300"
WRKPATH="CLOUD_MNT_PT/`hostname`"
mkdir -p $WRKPATH
#fileop,dbench -
#IOzone
tool="iozone"
echo "2" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -vp /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -vp $WRKPATH/$tool/run_$i
#move to it
cd $WRKPATH/$tool/run_$i
# run iozone
CMD="/opt/qa/tools/32-bit/iozone -a -b /opt/qa/nfstesting/iozone/log/`hostname`_`date +%h%d%T`_excel.xls 2>&1 /opt/qa/nfstesting/iozone/log/`hostname`_`date +%h%d%T`_iozone.log "
echo "~~~~~~>running $tool at "$WRKPATH/$tool "with command ( $CMD ) &" >> /opt/qa/nfstesting/tools_status_`hostname`.log
( $CMD ) &
echo "~~~~~~>Done.started $tool in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#dbench
tool="dbench"
echo "3" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -vp /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -vp $WRKPATH/$tool/run_$i
#move to it
cd $WRKPATH/$tool/run_$i
# run dbench
CMD="dbench -s 10 -t 60 > /opt/qa/nfstesting/dbench/log/`hostname`_`date +%h%d%T`_Dbench.log "
echo "~~~~~~>running $tool at "$WRKPATH/$tool "with command ( $CMD ) &" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#( $CMD ) &
( dbench -s 10 -t 60 > /opt/qa/nfstesting/dbench/log/`hostname`_`date +%h%d%T`_Dbench.log ) &
echo "~~~~~~>Done.started $tool in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#fio
tool="fio"
echo "4" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -vp /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -vp $WRKPATH/$tool/run_$i
#move to it
cd $WRKPATH/$tool/run_$i
# run fio
CMD="fio /opt/qa/nfstesting/fio/randomread.fio > /opt/qa/nfstesting/fio/log/`hostname`_`date +%h%d%T`_fio.log "
echo "~~~~~~>running $tool at "$WRKPATH/$tool "with command ( $CMD ) &" >> /opt/qa/nfstesting/tools_status_`hostname`.log
( fio /opt/qa/nfstesting/fio/randomread.fio > /opt/qa/nfstesting/fio/log/`hostname`_`date +%h%d%T`_fio.log ) &
echo "~~~~~~>Done.started $tool in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#fileop
tool="fileop"
echo "5" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -vp /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -vp $WRKPATH/$tool/run_$i
#move to it
cd $WRKPATH/$tool/run_$i
# run fileop
CMD="( (time /opt/qa/tools/32-bit/tars/iozone3_347/src/current/fileop -f 10 -t) 2>&1 | tee -a /opt/qa/nfstesting/$tool/log/`hostname`_`date +%h%d%T`_fileop.log )"
echo "~~~~~~>running $tool at "$WRKPATH/$tool "with command ( $CMD ) &" >> /opt/qa/nfstesting/tools_status_`hostname`.log
( (/opt/qa/tools/32-bit/tars/iozone3_347/src/current/fileop -f 10 -t) 2>&1 | tee -a /opt/qa/nfstesting/fileop/log/`hostname`_`date +%h%d%T`_fileop.log ) &
echo "~~~~~~>Done.started $tool in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#bonnie
tool="bonnie"
echo "5" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -vp /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -vp $WRKPATH/$tool/run_bon/dir
#move to it
cd $WRKPATH/$tool/
# run bonnie
CMD="( ( /opt/qa/tools/32-bit/bonnie/sbin/bonnie++ -u `whoami` -d run_bon/dir ) 2>&1 | tee -a /opt/qa/nfstesting/bonnie/log/`hostname`_`date +%h%d%T`_bonnie.log )"
echo "~~~~~~>running $tool at "$WRKPATH/$tool "with command ( $CMD ) &" >> /opt/qa/nfstesting/tools_status_`hostname`.log
( ( /opt/qa/tools/32-bit/bonnie/sbin/bonnie++ -u `whoami` -d run_bon/dir ) 2>&1 | tee -a /opt/qa/nfstesting/bonnie/log/`hostname`_`date +%h%d%T`_bonnie.log ) &
echo "~~~~~~>Done.started $tool in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#postmark
tool="postmark"
echo "7" > /opt/qa/nfstesting/mixedtest
#create log directory - if needed.
mkdir -vp /opt/qa/nfstesting/$tool/log
#create a directory for tool to run.
mkdir -vp $WRKPATH/$tool/run_$i
#move to it
cd $WRKPATH/$tool/run_$i
# run postmark
FN=`date +%h%d%T`
echo "set number 10000" > /opt/qa/nfstesting/$tool/log/`hostname`_$FN.pm
echo "set subdirectories 10000" >> /opt/qa/nfstesting/$tool/log/`hostname`_$FN.pm
echo "set location $WRKPATH/$tool/run_$i" >> /opt/qa/nfstesting/$tool/log/`hostname`_$FN.pm
export FN
CMD=" /opt/qa/tools/32-bit/tars/tools.git/postmark/postmark /opt/qa/nfstesting/postmark/log/`hostname`_$FN.pm > > /opt/qa/nfstesting/postmark/log/`hostname`_`date +%h%d%T`.postmark.log"
echo "~~~~~~>running $tool at "$WRKPATH/$tool "with command ( $CMD ) &" >> /opt/qa/nfstesting/tools_status_`hostname`.log
( /opt/qa/tools/32-bit/tars/tools.git/postmark/postmark /opt/qa/nfstesting/postmark/log/`hostname`_$FN.pm > /opt/qa/nfstesting/postmark/log/`hostname`_`date +%h%d%T`.postmark.log ) &
echo "~~~~~~>Done.started $tool in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#nfstestcase-9
(
echo "8" > /opt/qa/nfstesting/mixedtest
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
) &
echo "~~~~~~>Done.started nfstestcase-9 in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#tc10
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
) &
echo "~~~~~~>Done.started nfstestcase-10 in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#tc12
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
) &
echo "~~~~~~>Done.started nfstestcase-12 in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#tc13
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/tc13/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
) &
echo "~~~~~~>Done.started nfstestcase-13 in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#tc17
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 ) &
echo "~~~~~~>Done.started nfstestcase-17 in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
#tc4
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
) &
echo "~~~~~~>Done.started nfstestcase-4 in bkground" >> /opt/qa/nfstesting/tools_status_`hostname`.log
|