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 即顺序写
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值