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 即順序寫