vdbench多节点测试文件系统读写

 

操作步骤:

1.首先在每台需要测试的节点上安装java(包含总控节点)

2.然后保证每节点的主机名不同,并且最好关闭每台防火墙

3.把需要测试的网络存储挂载到每台节点上

4.然后依次操作每节点,用cmd进入vdbench的目录,运行“vdbenchrsh”(进入监听模式)

5.到总控上打开host文件,写好每台节点的ip和主机名。

6.到总控节点,用cmd进入vdbench目录,运行“vdbench  -f  parmfile”(parmfile为事先配置好的配置文件)

 

 

写操作配置文件

hd=default,shell=vdbench

hd=hd1,system=10.20.16.96

hd=hd2,system=10.20.16.98

hd=hd3,system=10.20.16.99

fsd=default,depth=1,width=1,files=3,size=5g

fsd=fsd1,anchor=Z:\\1

fsd=fsd2,anchor=Z:\\2

fsd=fsd3,anchor=Z:\\3

fwd=default,operation=write,xfersize=1M,threads=2,fileio=random,fileselect=random,openflags=directio

fwd=fwd1,fsd=fsd1,host=hd1

fwd=fwd2,fsd=fsd2,host=hd2

fwd=fwd3,fsd=fsd3,host=hd3

rd=rd1,fwd=(fwd1-fwd3),fwdrate=max,format=yes

 

读操作配置文件:

hd=default,shell=vdbench

hd=hd1,system=10.20.16.96

hd=hd2,system=10.20.16.98

hd=hd3,system=10.20.16.99

fsd=default,depth=1,width=1,files=3,size=5g

fsd=fsd1,anchor=Z:\\1

fsd=fsd2,anchor=Z:\\2

fsd=fsd3,anchor=Z:\\3

fwd=default,operation=read,xfersize=1M,threads=2,fileio=random,fileselect=random,openflags=directio

fwd=fwd1,fsd=fsd1,host=hd1

fwd=fwd2,fsd=fsd2,host=hd2

fwd=fwd3,fsd=fsd3,host=hd3

rd=rd1,fwd=(fwd1-fwd3),fwdrate=max,format=no