2013-12-07 21:07:38 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
2014-01-12 16:48:00 +00:00
|
|
|
.TH "CEPH" "8" "January 12, 2014" "dev" "Ceph"
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH NAME
|
|
|
|
ceph \- ceph file system control 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
|
|
|
|
..
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
|
|
|
\fBceph\fP [ \-m \fImonaddr\fP ] [ \-w | \fIcommand\fP ... ]
|
|
|
|
.fi
|
|
|
|
.sp
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\fP is a control utility for communicating with the monitor
|
2013-12-07 21:07:38 +00:00
|
|
|
cluster of a running Ceph distributed storage system.
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2009-03-11 04:20:43 +00:00
|
|
|
There are three basic modes of operation.
|
2011-09-09 23:25:14 +00:00
|
|
|
.SS Interactive mode
|
|
|
|
.sp
|
|
|
|
To start in interactive mode, no arguments are necessary. Control\-d or
|
|
|
|
\(aqquit\(aq will exit.
|
|
|
|
.SS Watch mode
|
|
|
|
.sp
|
2012-02-17 22:11:18 +00:00
|
|
|
Watch mode shows cluster state changes as they occur. For example:
|
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
|
2012-02-17 22:11:18 +00:00
|
|
|
ceph \-w
|
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
|
|
|
.SS Command line mode
|
|
|
|
.sp
|
|
|
|
Finally, to send a single instruction to the monitor cluster (and wait
|
|
|
|
for a response), the command can be specified on the command line.
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH OPTIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
2009-03-11 04:20:43 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2009-03-11 04:20:43 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2009-03-11 04:20:43 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2009-03-11 04:20:43 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-m monaddress[:port]
|
|
|
|
Connect to specified monitor (instead of looking through ceph.conf).
|
|
|
|
.UNINDENT
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH EXAMPLES
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2009-03-11 04:20:43 +00:00
|
|
|
To grab a copy of the current OSD map:
|
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
|
|
|
|
ceph \-m 1.2.3.4:6789 osd getmap \-o osdmap
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2009-03-11 04:20:43 +00:00
|
|
|
To get a dump of placement group (PG) state:
|
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
|
|
|
|
ceph pg dump \-o pg.txt
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH MONITOR COMMANDS
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
A more complete summary of commands understood by the monitor cluster can be found in the
|
2013-01-29 00:44:22 +00:00
|
|
|
online documentation, at
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2013-01-29 00:44:22 +00:00
|
|
|
\fI\%http://ceph.com/docs/master/rados/operations/control\fP
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2013-12-07 21:07:38 +00:00
|
|
|
\fBceph\fP is part of the Ceph distributed storage system. Please refer to the Ceph documentation at
|
2012-09-27 21:23:42 +00:00
|
|
|
\fI\%http://ceph.com/docs\fP for more information.
|
2009-03-11 04:20:43 +00:00
|
|
|
.SH SEE ALSO
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\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.
|
|
|
|
.
|