summaryrefslogtreecommitdiffstats
path: root/python_pgms/cloud-on-fly/src/scripts/MIXED52_run2.sh
blob: 3ef6e5b9b524c78bfcdfd1039d6c40b0aa9cb271 (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
258
259
cd CLOUD_MNT_PT
i="870"
#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 18000  > /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 18000  > /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 100 -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 100 -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
        echo "run /tmp/postmark-out">>/opt/qa/nfstesting/$tool/LoG/`hostname`_$FN.pm
	echo "show">>/opt/qa/nfstesting/$tool/LoG/`hostname`_$FN.pm
	echo "quit">>/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 2>&1 | tee -a /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  2>&1 | tee -a  /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
	mkdir -p /tmp/rsynctest1
	#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/rsynctest1
	#umount CLOUD_MNT_PT
	rm -rf /tmp/rsynctest1
	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