2013-12-07 21:07:38 +00:00
. \" Man page generated from reStructuredText.
.
2014-01-12 16:48:00 +00:00
.TH "RADOS" "8" "January 12, 2014" "dev" "Ceph"
2010-02-09 18:19:57 +00:00
.SH NAME
rados \- rados object storage utility
2011-09-09 23:25:14 +00:00
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\ $1 \\ n[an-margin]
level \\ n[rst2man-indent-level]
level margin: \\ n[rst2man-indent\\ n[rst2man-indent-level]]
-
\\ n[rst2man-indent0]
\\ n[rst2man-indent1]
\\ n[rst2man-indent2]
. .
.de1 INDENT
. \" .rstReportMargin pre:
. RS \\ $1
. nr rst2man-indent\\n[rst2man-indent-level] \\ n[an-margin]
. nr rst2man-indent-level +1
. \" .rstReportMargin post:
. .
.de UNINDENT
. RE
. \" indent \\n[an-margin]
. \" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
. \" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\ n[rst2man-indent\\n[rst2man-indent-level]]u
. .
.
2013-12-07 21:07:38 +00:00
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\ $1 \\ n[an-margin]
level \\ n[rst2man-indent-level]
level margin: \\ n[rst2man-indent\\ n[rst2man-indent-level]]
-
\\ n[rst2man-indent0]
\\ n[rst2man-indent1]
\\ n[rst2man-indent2]
. .
.de1 INDENT
. \" .rstReportMargin pre:
. RS \\ $1
. nr rst2man-indent\\n[rst2man-indent-level] \\ n[an-margin]
. nr rst2man-indent-level +1
. \" .rstReportMargin post:
. .
.de UNINDENT
. RE
. \" indent \\n[an-margin]
. \" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
. \" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\ n[rst2man-indent\\n[rst2man-indent-level]]u
. .
2010-02-09 18:19:57 +00:00
.SH SYNOPSIS
2011-09-09 23:25:14 +00:00
.nf
\fB rados\fP [ \- m \fI monaddr\fP ] [ mkpool | rmpool \fI foo\fP ] [ \- p | \- \- pool
\fI pool\fP ] [ \- s | \- \- snap \fI snap\fP ] [ \- i \fI infile\fP ] [ \- o \fI outfile\fP ]
\fI command\fP ...
.fi
.sp
2010-02-09 18:19:57 +00:00
.SH DESCRIPTION
2011-09-09 23:25:14 +00:00
.sp
\fB rados\fP is a utility for interacting with a Ceph object storage
2013-12-07 21:07:38 +00:00
cluster (RADOS), part of the Ceph distributed storage system.
2010-02-09 18:19:57 +00:00
.SH OPTIONS
2011-09-09 23:25:14 +00:00
.INDENT 0 .0
.TP
.B \- p pool, \- \- pool pool
Interact with the given pool. Required by most commands.
.UNINDENT
.INDENT 0 .0
.TP
.B \- s snap, \- \- snap snap
Read from the given pool snapshot. Valid for all pool\- specific read operations.
.UNINDENT
.INDENT 0 .0
.TP
.B \- 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.
.UNINDENT
.INDENT 0 .0
.TP
.B \- 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.
.UNINDENT
.INDENT 0 .0
.TP
.B \- 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.
.UNINDENT
.INDENT 0 .0
.TP
.B \- m monaddress[:port]
Connect to specified monitor (instead of looking through ceph.conf).
.UNINDENT
2010-02-09 18:19:57 +00:00
.SH GLOBAL COMMANDS
2011-09-09 23:25:14 +00:00
.INDENT 0 .0
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB lspools\fP
2010-02-09 18:19:57 +00:00
List object pools
.TP
2011-09-09 23:25:14 +00:00
.B \fB df\fP
Show utilization statistics, including disk usage (bytes) and object
counts, over the entire system and broken down by pool.
2010-05-19 17:35:28 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB mkpool\fP \fI foo\fP
2010-05-19 17:35:28 +00:00
Create a pool with name foo.
.TP
2013-04-29 23:01:03 +00:00
.B \fB rmpool\fP \fI foo\fP [ \fI foo\fP \- \- yes\-i\-really\-really\-mean\-it ]
2010-05-19 17:35:28 +00:00
Delete the pool foo (and all its data)
2011-09-09 23:25:14 +00:00
.UNINDENT
2010-02-09 18:19:57 +00:00
.SH POOL SPECIFIC COMMANDS
2011-09-09 23:25:14 +00:00
.INDENT 0 .0
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB get\fP \fI name\fP \fI outfile\fP
Read object name from the cluster and write it to outfile.
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB put\fP \fI name\fP \fI infile\fP
Write object name to the cluster with contents from infile.
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB rm\fP \fI name\fP
Remove object name.
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB ls\fP \fI outfile\fP
List objects in given pool and write to outfile.
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB lssnap\fP
2010-02-09 18:19:57 +00:00
List snapshots for given pool.
.TP
2013-11-19 02:05:18 +00:00
.B \fB clonedata\fP \fI srcname\fP \fI dstname\fP \- \- object\-locator \fI key\fP
2013-12-07 21:07:38 +00:00
Clone object byte data from \fI srcname\fP to \fI dstname\fP \& . Both objects must be stored with the locator key \fI key\fP (usually either \fI srcname\fP or \fI dstname\fP ). Object attributes and omap keys are not copied or cloned.
2013-11-19 02:05:18 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB mksnap\fP \fI foo\fP
2013-12-07 21:07:38 +00:00
Create pool snapshot named \fI foo\fP \& .
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB rmsnap\fP \fI foo\fP
2013-12-07 21:07:38 +00:00
Remove pool snapshot named \fI foo\fP \& .
2010-02-09 18:19:57 +00:00
.TP
2011-09-09 23:25:14 +00:00
.B \fB bench\fP \fI seconds\fP \fI mode\fP [ \- b \fI objsize\fP ] [ \- t \fI threads\fP ]
Benchmark for seconds. The mode can be write or read. The default
2012-09-27 21:10:51 +00:00
object size is 4 MB, and the default number of simulated threads
2011-09-09 23:25:14 +00:00
(parallel writes) is 16.
2012-09-27 21:23:42 +00:00
.TP
.B \fB listomapkeys\fP \fI name\fP
List all the keys stored in the object map of object name.
.TP
.B \fB listomapvals\fP \fI name\fP
List all key/value pairs stored in the object map of object name.
The values are dumped in hexadecimal.
.TP
.B \fB getomapval\fP \fI name\fP \fI key\fP
Dump the hexadecimal value of key in the object map of object name.
.TP
.B \fB setomapval\fP \fI name\fP \fI key\fP \fI value\fP
Set the value of key in the object map of object name.
.TP
.B \fB rmomapkey\fP \fI name\fP \fI key\fP
Remove key from the object map of object name.
.TP
.B \fB getomapheader\fP \fI name\fP
Dump the hexadecimal value of the object map header of object name.
.TP
.B \fB setomapheader\fP \fI name\fP \fI value\fP
Set the value of the object map header of object name.
2011-09-09 23:25:14 +00:00
.UNINDENT
2010-02-09 18:19:57 +00:00
.SH EXAMPLES
2011-09-09 23:25:14 +00:00
.sp
2010-02-09 18:19:57 +00:00
To view cluster utilization:
2013-12-07 21:07:38 +00:00
.INDENT 0 .0
.INDENT 3 .5
2011-09-09 23:25:14 +00:00
.sp
.nf
.ft C
2010-02-09 18:19:57 +00:00
rados df
2011-09-09 23:25:14 +00:00
.ft P
.fi
2013-12-07 21:07:38 +00:00
.UNINDENT
.UNINDENT
2011-09-09 23:25:14 +00:00
.sp
To get a list object in pool foo sent to stdout:
2013-12-07 21:07:38 +00:00
.INDENT 0 .0
.INDENT 3 .5
2011-09-09 23:25:14 +00:00
.sp
.nf
.ft C
rados \- p foo ls \-
.ft P
.fi
2013-12-07 21:07:38 +00:00
.UNINDENT
.UNINDENT
2011-09-09 23:25:14 +00:00
.sp
2010-02-09 18:19:57 +00:00
To write an object:
2013-12-07 21:07:38 +00:00
.INDENT 0 .0
.INDENT 3 .5
2011-09-09 23:25:14 +00:00
.sp
.nf
.ft C
rados \- p foo put myobject blah.txt
.ft P
.fi
2013-12-07 21:07:38 +00:00
.UNINDENT
.UNINDENT
2011-09-09 23:25:14 +00:00
.sp
2010-02-09 18:19:57 +00:00
To create a snapshot:
2013-12-07 21:07:38 +00:00
.INDENT 0 .0
.INDENT 3 .5
2011-09-09 23:25:14 +00:00
.sp
.nf
.ft C
rados \- p foo mksnap mysnap
.ft P
.fi
2013-12-07 21:07:38 +00:00
.UNINDENT
.UNINDENT
2011-09-09 23:25:14 +00:00
.sp
2010-02-09 18:19:57 +00:00
To delete the object:
2013-12-07 21:07:38 +00:00
.INDENT 0 .0
.INDENT 3 .5
2011-09-09 23:25:14 +00:00
.sp
.nf
.ft C
rados \- p foo rm myobject
.ft P
.fi
2013-12-07 21:07:38 +00:00
.UNINDENT
.UNINDENT
2011-09-09 23:25:14 +00:00
.sp
2010-02-09 18:19:57 +00:00
To read a previously snapshotted version of an object:
2013-12-07 21:07:38 +00:00
.INDENT 0 .0
.INDENT 3 .5
2011-09-09 23:25:14 +00:00
.sp
.nf
.ft C
rados \- p foo \- s mysnap get myobject blah.txt.old
.ft P
.fi
2013-12-07 21:07:38 +00:00
.UNINDENT
.UNINDENT
2010-02-09 18:19:57 +00:00
.SH AVAILABILITY
2011-09-09 23:25:14 +00:00
.sp
2013-12-07 21:07:38 +00:00
\fB rados\fP is part of the Ceph distributed storage system. Please refer to
2012-09-27 21:23:42 +00:00
the Ceph documentation at \fI \% http://ceph.com/docs\fP for more information.
2010-02-09 18:19:57 +00:00
.SH SEE ALSO
2011-09-09 23:25:14 +00:00
.sp
\fB ceph\fP (8)
.SH COPYRIGHT
2014-01-12 16:48:00 +00:00
2010-2014, Inktank Storage, Inc. and contributors. Licensed under Creative Commons BY-SA
2011-09-09 23:25:14 +00:00
. \" Generated by docutils manpage writer.
.