ceph rados

The Ceph Storage Cluster provides the basic storage service that allows Ceph to uniquely deliver object, block, and file storage in one unified system. However, you are not limited to using the RESTful, block, or POSIX interfaces. Based upon RADOS, the librados API enables you to create your own interface to the Ceph Storage Cluster.

command

1
2
3
4
5
6
7
8
9
# list objects by specify pool
rados -p <pool-name> ls

# read object
rados -p <pool-name> get <object-name> output.txt
cat output.txt

# Check xattr value
rados -p <pool-name> getxattr <object-name> <xattr-key>