Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- VPOOL=test
- STOR_NODES=( 172.17.0.4:26203 )
- PREFIX=$(hostname -s)
- EDGEUSER=edgken01
- EDGEUSERPASS=MYpguF64q6SqPwD2
- VDISK=( "test01" )
- ##########################################
- echo "Install FIO EE"
- if [ ! -x ./fio.bin ]
- then
- wget -O fio.bin http://apt-ee.openvstorage.com/pool/main/f/fio/fio-ee_2.19.0-2_amd64.deb --user=ovs --password=7R42MXyn
- chmod +x fio.bin || exit 1
- fi
- ##########################################
- run_fio()
- {
- date
- echo "### FIO START"
- (cat <<_EOF_
- [global]
- thread
- ioengine=openvstorage
- direct=1
- bs=4k
- size=10G
- rw=randrw
- rwmixread=75
- group_reporting=1
- time_based=1
- randrepeat=1
- username=${EDGEUSER}
- password=${EDGEUSERPASS}
- _EOF_
- nid=1
- did=1
- for VD in ${VDISK}
- do
- cat <<_EOF_
- [${PREFIX}_${VD}]
- iodepth=128
- volumename=${VD}
- protocol=tcp
- hostname=${STOR_NODES[${nid}-1]%%:*}
- port=${STOR_NODES[${nid}-1]##*:}
- _EOF_
- let nid++
- if [ ${nid} -gt ${#STOR_NODES[@]} ]
- then
- nid=1
- let did++
- fi
- done
- ) | ./fio.bin -
- echo "### FIO END"
- date
- }
- ###########################################
- run_fio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement