我在Windows操作系统中创建4个挂载点磁盘。我需要将文件复制到阈值(例如50 GB)。
我尝试使用vdbench。它工作正常,但最后会抛出异常。
compratio=4 dedupratio=1 dedupunit=256k * Host Definition section hd=default,user=Administator,shell=vdbench,jvms=1 hd=localhost,system=localhost ******************************************************************************** * Storage Definition section fsd=fsd1,anchor=C:\UnMapTest-Volume1\disk1\,depth=1,width=1,files=1,size=5g fsd=fsd2,anchor=C:\UnMapTest-Volume2\disk2\,depth=1,width=1,files=1,size=5g fwd=fwd1,fsd=fsd*,operation=write,xfersize=1m,fileio=sequential,fileselect=random,threads=10 rd=rd1,fwd=fwd1,fwdrate=max,format=yes,elapsed=1h,interval=1
以下是vdbench的例外情况。由于这个原因,我的调用脚本会失败。
05:29:14.287 Message from slave localhost-0: 05:29:14.289 file=C:\UnMapTest-Volume1\disk1\\vdb.1_1.dir\vdb_f0001.file,busy=true 05:29:14.290 Thread: FwgThread write C:\UnMapTest-Volume1\disk1\ rd=rd1 For loops: None 05:29:14.291 05:29:14.292 last_ok_request: Thu Dec 28 05:28:57 PST 2017 05:29:14.292 Duration: 16.92 seconds 05:29:14.293 consecutive_blocks: 10001 05:29:14.294 last_block: FILE_BUSY File busy 05:29:14.294 operation: write 05:29:14.295 05:29:14.296 Do you maybe have more threads running than that you have 05:29:14.296 files and therefore some threads ultimately give up after 10000 tries? 05:29:14.300 * 05:29:14.301 ****************************************************** 05:29:14.302 * Slave localhost-0 aborting: Too many thread blocks * 05:29:14.302 ****************************************************** 05:29:14.303 * 05:29:21.235 05:29:21.235 Slave localhost-0 prematurely terminated. 05:29:21.235 05:29:21.235 Slave aborted. Abort message received: 05:29:21.235 Too many thread blocks 05:29:21.235 05:29:21.235 Look at file localhost-0.stdout.html for more information. 05:29:21.735 05:29:21.735 Slave localhost-0 prematurely terminated. 05:29:21.735 java.lang.RuntimeException: Slave localhost-0 prematurely terminated. at Vdb.common.failure(common.java:335) at Vdb.SlaveStarter.startSlave(SlaveStarter.java:198) at Vdb.SlaveStarter.run(SlaveStarter.java:47)
我在Windows机器上使用PowerShell。即使像Diskspd这样的其他工具有办法将数据填充到某个阈值,请提供给我。
答案 0 :(得分:0)
我自己找到了答案。
我使用Diskspd.exe完成此操作,如下所示
以下命令填充上述磁盘文件夹中的50 GB数据
.\diskspd.exe -c50G -b4K -t2 C:\UnMapTest-Volume1\disk1\testfile1.dat
根据我的要求,它比Vdbench简单。
警告:但它没有真正的数据,所以阵列端磁盘大小是 没有显示大小