rbd Block Á¤º¸È®ÀÎ
# rbd info volumes/volume-955805cb-6e7f-4b99-b4a8-01a1c7b904a8
rbd image 'volume-955805cb-6e7f-4b99-b4a8-01a1c7b904a8':
size 102400 MB in 25600 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.8fbe513dd09102
format: 2
features: layering
flags:
# rbd diff volumes/volume-955805cb-6e7f-4b99-b4a8-01a1c7b904a8
Offset Length Type
0 4194304 data
4194304 4194304 data
8388608 4194304 data
12582912 4194304 data
16777216 4194304 data
20971520 4194304 data
25165824 4194304 data
........................
# rbd diff volumes/volume-955805cb-6e7f-4b99-b4a8-01a1c7b904a8 | awk '{ SUM += $2 } END { print SUM/1024/1024 " MB" }'
3085.72 MB
Instance ³»¿¡¼ Block Storage È®ÀÎ
# df -Th |grep vdb1
/dev/vdb1 ext4 99G 1.2G 93G 2% /Block_Storage
Âü°í
Ãß°¡) 2019. 01.02
-- help
-l [ --long ] long listing format
# rbd -p <poolname> list --long
NAME SIZE PARENT FMT PROT LOCK
01ccc57e-3e31-4f5b-924e-b8b09ab20283 1947M 2
01ccc57e-3e31-4f5b-924e-b8b09ab20283@snap 1947M 2 yes
01faf23b-5ca1-4836-a9c2-a5969de49d41 24844M 2
01faf23b-5ca1-4836-a9c2-a5969de49d41@snap 24844M 2 yes
031f660a-4d6c-4315-b519-3ab12469e973 14552M 2 excl
044e37a8-3dca-4f4a-bea8-9bbeda5f1ce6 528M 2
044e37a8-3dca-4f4a-bea8-9bbeda5f1ce6@snap 528M 2 yes
............................................