daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest May 31st, 2017 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. set -e
  4.  
  5. VPOOL=test
  6.  
  7. STOR_NODES=( 172.17.0.4:26203 )
  8.  
  9. PREFIX=$(hostname -s)
  10.  
  11. EDGEUSER=edgken01
  12. EDGEUSERPASS=MYpguF64q6SqPwD2
  13.  
  14. VDISK=( "test01" )
  15.  
  16. ##########################################
  17. echo "Install FIO EE"
  18.  
  19. if [ ! -x ./fio.bin ]
  20. then
  21.   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
  22.   chmod +x fio.bin || exit 1
  23. fi
  24. ##########################################
  25.  
  26. run_fio()
  27.   {
  28. date
  29.   echo "### FIO START"
  30.   (cat <<_EOF_
  31. [global]
  32. thread
  33. ioengine=openvstorage
  34. direct=1
  35. bs=4k
  36. size=10G
  37. rw=randrw
  38. rwmixread=75
  39. group_reporting=1
  40. time_based=1
  41. randrepeat=1
  42. username=${EDGEUSER}
  43. password=${EDGEUSERPASS}
  44. _EOF_
  45.  
  46. nid=1
  47. did=1
  48. for VD in ${VDISK}
  49. do
  50.   cat <<_EOF_
  51.  
  52. [${PREFIX}_${VD}]
  53. iodepth=128
  54. volumename=${VD}
  55. protocol=tcp
  56. hostname=${STOR_NODES[${nid}-1]%%:*}
  57. port=${STOR_NODES[${nid}-1]##*:}
  58. _EOF_
  59.   let nid++
  60.   if [ ${nid} -gt ${#STOR_NODES[@]} ]
  61.   then
  62.     nid=1
  63.     let did++
  64.   fi
  65. done
  66.   ) | ./fio.bin -
  67.   echo "### FIO END"
  68. date
  69.   }
  70.  
  71. ###########################################
  72.  
  73. run_fio
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top