天天看點

利用VMware Storage Performance Tester進行一鍵式存儲性能測試

storage performance tester 是一款一鍵式存儲性能測試工具,它能夠為 esxi 存儲堆棧收集每個 i/o 的 iops、延遲和 cpu 周期。該工具可自動執行所有測試步驟,包括自定義 vm 部署、i/o 工作負載運作和存儲性能分析。它通過多個可視化圖形圖表顯示性能名額。使用者唯一需要做的就是輸入一個指令并等待伺服器的性能報告。

利用VMware Storage Performance Tester進行一鍵式存儲性能測試

python 3

sshpass

2 gb of storage space

linux environments (kernel version is older than 2.6.31)

​​https://flings.vmware.com/storage-performance-tester​​​

 第一部分:安裝sshpass:

yum install -y sshpass

利用VMware Storage Performance Tester進行一鍵式存儲性能測試

第二部分:安裝python3:

1.安裝相應的編譯工具:

yum -y groupinstall "development tools"

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

yum install -y libffi-devel zlib1g-dev

yum install zlib* -y

2.下載下傳安裝包

wget https://www.python.org/ftp/python/3.7.2/python-3.7.2.tar.xz

3.解壓壓縮包

tar -xvjf  python-3.7.2.tar.xz

4.建立編譯安裝目錄

mkdir /usr/local/python3

5.安裝

cd python-3.7.2

./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl

make && make install

6.建立軟連結

ln -s /usr/local/python3/bin/python3 /usr/bin/python3

unzip storageperformancetester.zip

./sperf.py hostname -d datastorename

利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試
利用VMware Storage Performance Tester進行一鍵式存儲性能測試

1、部署過程中檢查測試虛拟機是否有5快硬碟或者修改測試用例(包含一塊系統盤)

2、檢查esxi是否被vcenter納管,納管可能測試不通過

基本指令如下:

host上測試多資料存儲的指令:

​./sperf.py host -d datastore1 -d datastore2 -d datastore3 -d datastore4

繼續閱讀