2013-04-29 23:01:03 +00:00
|
|
|
.TH "RADOS" "8" "April 29, 2013" "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
|
|
|
|
..
|
2012-09-27 21:23:42 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
2010-02-09 18:19:57 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
|
|
|
\fBrados\fP [ \-m \fImonaddr\fP ] [ mkpool | rmpool \fIfoo\fP ] [ \-p | \-\-pool
|
|
|
|
\fIpool\fP ] [ \-s | \-\-snap \fIsnap\fP ] [ \-i \fIinfile\fP ] [ \-o \fIoutfile\fP ]
|
|
|
|
\fIcommand\fP ...
|
|
|
|
.fi
|
|
|
|
.sp
|
2010-02-09 18:19:57 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBrados\fP is a utility for interacting with a Ceph object storage
|
|
|
|
cluster (RADOS), part of the Ceph distributed file 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 \fBlspools\fP
|
2010-02-09 18:19:57 +00:00
|
|
|
List object pools
|
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBdf\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 \fBmkpool\fP \fIfoo\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 \fBrmpool\fP \fIfoo\fP [ \fIfoo\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 \fBget\fP \fIname\fP \fIoutfile\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 \fBput\fP \fIname\fP \fIinfile\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 \fBrm\fP \fIname\fP
|
|
|
|
Remove object name.
|
2010-02-09 18:19:57 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBls\fP \fIoutfile\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 \fBlssnap\fP
|
2010-02-09 18:19:57 +00:00
|
|
|
List snapshots for given pool.
|
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBmksnap\fP \fIfoo\fP
|
2010-02-09 18:19:57 +00:00
|
|
|
Create pool snapshot named \fIfoo\fP.
|
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBrmsnap\fP \fIfoo\fP
|
2010-02-09 18:19:57 +00:00
|
|
|
Remove pool snapshot names \fIfoo\fP.
|
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBbench\fP \fIseconds\fP \fImode\fP [ \-b \fIobjsize\fP ] [ \-t \fIthreads\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 \fBlistomapkeys\fP \fIname\fP
|
|
|
|
List all the keys stored in the object map of object name.
|
|
|
|
.TP
|
|
|
|
.B \fBlistomapvals\fP \fIname\fP
|
|
|
|
List all key/value pairs stored in the object map of object name.
|
|
|
|
The values are dumped in hexadecimal.
|
|
|
|
.TP
|
|
|
|
.B \fBgetomapval\fP \fIname\fP \fIkey\fP
|
|
|
|
Dump the hexadecimal value of key in the object map of object name.
|
|
|
|
.TP
|
|
|
|
.B \fBsetomapval\fP \fIname\fP \fIkey\fP \fIvalue\fP
|
|
|
|
Set the value of key in the object map of object name.
|
|
|
|
.TP
|
|
|
|
.B \fBrmomapkey\fP \fIname\fP \fIkey\fP
|
|
|
|
Remove key from the object map of object name.
|
|
|
|
.TP
|
|
|
|
.B \fBgetomapheader\fP \fIname\fP
|
|
|
|
Dump the hexadecimal value of the object map header of object name.
|
|
|
|
.TP
|
|
|
|
.B \fBsetomapheader\fP \fIname\fP \fIvalue\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:
|
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
|
|
|
|
.sp
|
|
|
|
To get a list object in pool foo sent to stdout:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
rados \-p foo ls \-
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
2010-02-09 18:19:57 +00:00
|
|
|
To write an object:
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
rados \-p foo put myobject blah.txt
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
2010-02-09 18:19:57 +00:00
|
|
|
To create a snapshot:
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
rados \-p foo mksnap mysnap
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
2010-02-09 18:19:57 +00:00
|
|
|
To delete the object:
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
rados \-p foo rm myobject
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
2010-02-09 18:19:57 +00:00
|
|
|
To read a previously snapshotted version of an object:
|
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
|
2010-02-09 18:19:57 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBrados\fP is part of the Ceph distributed file 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
|
|
|
|
\fBceph\fP(8)
|
|
|
|
.SH COPYRIGHT
|
2013-04-29 23:01:03 +00:00
|
|
|
2010-2013, Inktank Storage, Inc. and contributors. Licensed under Creative Commons BY-SA
|
2011-09-09 23:25:14 +00:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|