rbd常用命令

rbd常用命令

查看当前pool下有几个rbd
rbd ls pool_name
查看具体lun详细信息
rbd info pool_name/LUN
查看有哪些块设备
rbd ls san_index	
查看存了哪些数据		
rados -p san_index ls		
查看池中rbd的详细信息
rbd --image test-image info --pool test-pool  
删除rbd
rbd rm test-image -p test-pool		
创建rbd
rbd create   -p san1 --image LUN_DATA  --data-pool  san -s 4T
向rbd压数据:
rbd bench-write test_index/LUN --io-size 512K --io-pattern seq --io-threads 16 --io-total 1T
•--io-size:单位 byte,默认 4096 bytes = 4K
•--io-threads:线程数,默认 16
•--io-total:总写入字节,单位为字节,默认 1024M
•--io-pattern <seq|rand>:写模式,默认为 seq 即顺序写
发布了297 篇原创文章 · 获赞 6 · 访问量 8429

猜你喜欢

转载自blog.csdn.net/qq_23929673/article/details/94151858