Ceph - Block Storage (Rados BD)
Globals
Display block device info (Global/Pools):
Client
Configs
Example of keyring config:
# /etc/ceph/ceph.client.server1.keyring
[client.server1]
key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXxx=="
caps mon = "allow r"
caps osd = "allow rwx pool=my-pool"
Note
With this config you must specify the hostname of server with --id option.
You can also specify the keyring file path with --keyring option.
Pool/Volume
Display pool's volumes:
Display volume detail:
List host's mapped devices:
Map/Unmap a volume to client:
rbd [map|unmap] {pool}/{volume}
# Ex:
# Map Vol: rbd map pool-1/vol-1
# Unmap Vol: rbd unmap pool-1/vol-1
Snapshot
List volume's snapshots:
Create snapshot: