:orphan: ======================================= rados -- rados object storage utility ======================================= .. program:: rados Synopsis ======== | **rados** [ -m *monaddr* ] [ mkpool | rmpool *foo* ] [ -p | --pool *pool* ] [ -s | --snap *snap* ] [ -i *infile* ] [ -o *outfile* ] *command* ... Description =========== **rados** is a utility for interacting with a Ceph object storage cluster (RADOS), part of the Ceph distributed storage system. Options ======= .. option:: -p pool, --pool pool Interact with the given pool. Required by most commands. .. option:: -s snap, --snap snap Read from the given pool snapshot. Valid for all pool-specific read operations. .. option:: -i infile will specify an input file to be passed along as a payload with the command to the monitor cluster. This is only used for specific monitor commands. .. option:: -o outfile will write any payload returned by the monitor cluster with its reply to outfile. Only specific monitor commands (e.g. osd getmap) return a payload. .. option:: -c ceph.conf, --conf=ceph.conf Use ceph.conf configuration file instead of the default /etc/ceph/ceph.conf to determine monitor addresses during startup. .. option:: -m monaddress[:port] Connect to specified monitor (instead of looking through ceph.conf). .. option:: -b block_size Set the block size for put/get/append ops and for write benchmarking. .. option:: --striper Uses the striping API of rados rather than the default one. Available for stat, stat2, get, put, append, truncate, rm, ls and all xattr related operation Global commands =============== :command:`lspools` List object pools :command:`df` Show utilization statistics, including disk usage (bytes) and object counts, over the entire system and broken down by pool. :command:`mkpool` *foo* Create a pool with name foo. :command:`rmpool` *foo* [ *foo* --yes-i-really-really-mean-it ] Delete the pool foo (and all its data). :command:`list-inconsistent-pg` *pool* List inconsistent PGs in given pool. :command:`list-inconsistent-obj` *pgid* List inconsistent objects in given PG. :command:`list-inconsistent-snapset` *pgid* List inconsistent snapsets in given PG. Pool specific commands ====================== :command:`get` *name* *outfile* Read object name from the cluster and write it to outfile. :command:`put` *name* *infile* [--offset offset] Write object name with start offset (default:0) to the cluster with contents from infile. :command:`append` *name* *infile* Append object name to the cluster with contents from infile. :command:`rm` *name* Remove object name. :command:`listwatchers` *name* List the watchers of object name. :command:`ls` *outfile* List objects in given pool and write to outfile. :command:`lssnap` List snapshots for given pool. :command:`clonedata` *srcname* *dstname* --object-locator *key* Clone object byte data from *srcname* to *dstname*. Both objects must be stored with the locator key *key* (usually either *srcname* or *dstname*). Object attributes and omap keys are not copied or cloned. :command:`mksnap` *foo* Create pool snapshot named *foo*. :command:`rmsnap` *foo* Remove pool snapshot named *foo*. :command:`bench` *seconds* *mode* [ -b *objsize* ] [ -t *threads* ] Benchmark for *seconds*. The mode can be *write*, *seq*, or *rand*. *seq* and *rand* are read benchmarks, either sequential or random. Before running one of the reading benchmarks, run a write benchmark with the *--no-cleanup* option. The default object size is 4 MB, and the default number of simulated threads (parallel writes) is 16. The *--run-name