2013-04-29 23:01:38 +00:00
|
|
|
.TH "CEPHFS" "8" "April 29, 2013" "dev" "Ceph"
|
2010-12-02 22:14:50 +00:00
|
|
|
.SH NAME
|
|
|
|
cephfs \- ceph file system options 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-12-02 22:14:50 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
|
|
|
\fBcephfs\fP [ \fIpath\fP \fIcommand\fP \fIoptions\fP ]
|
|
|
|
.fi
|
|
|
|
.sp
|
2010-12-02 22:14:50 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBcephfs\fP is a control utility for accessing and manipulating file
|
|
|
|
layout and location data in the Ceph distributed file system.
|
|
|
|
.sp
|
2010-12-02 22:14:50 +00:00
|
|
|
Choose one of the following three commands:
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.IP \(bu 2
|
|
|
|
\fBshow_layout\fP View the layout information on a file or directory
|
|
|
|
.IP \(bu 2
|
|
|
|
\fBset_layout\fP Set the layout information on a file or directory
|
|
|
|
.IP \(bu 2
|
|
|
|
\fBshow_location\fP View the location information on a file
|
|
|
|
.UNINDENT
|
2010-12-02 22:14:50 +00:00
|
|
|
.SH OPTIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Your applicable options differ depending on whether you are setting or viewing layout/location.
|
|
|
|
.SS Viewing options:
|
|
|
|
.INDENT 0.0
|
2010-12-02 22:14:50 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-l \-\-offset
|
|
|
|
Specify an offset for which to retrieve location data
|
|
|
|
.UNINDENT
|
|
|
|
.SS Setting options:
|
|
|
|
.INDENT 0.0
|
2010-12-02 22:14:50 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-u \-\-stripe_unit
|
2010-12-02 22:14:50 +00:00
|
|
|
Set the size of each stripe
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-c \-\-stripe_count
|
2013-02-20 01:48:26 +00:00
|
|
|
Set the number of objects to stripe across
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-s \-\-object_size
|
2010-12-02 22:14:50 +00:00
|
|
|
Set the size of the objects to stripe across
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-p \-\-pool
|
2010-12-02 22:14:50 +00:00
|
|
|
Set the pool (by numeric value, not name!) to use
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-o \-\-osd
|
2010-12-02 22:14:50 +00:00
|
|
|
Set the preferred OSD to use as the primary
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2010-12-02 22:14:50 +00:00
|
|
|
.SH LIMITATIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2013-02-20 01:48:26 +00:00
|
|
|
When setting layout data, the specified object size must evenly divide
|
|
|
|
by the specified stripe unit. Any parameters you don\(aqt set
|
2011-09-09 23:25:14 +00:00
|
|
|
explicitly are left at the system defaults.
|
|
|
|
.sp
|
|
|
|
Obviously setting the layout of a file and a directory means different
|
|
|
|
things. Setting the layout of a file specifies exactly how to place
|
|
|
|
the individual file. This must be done before writing \fIany\fP data to
|
|
|
|
it. Truncating a file does not allow you to change the layout either.
|
|
|
|
.sp
|
|
|
|
Setting the layout of a directory sets the "default layout", which is
|
|
|
|
used to set the file layouts on any files subsequently created in the
|
|
|
|
directory (or any subdirectory). Pre\-existing files do not have their
|
|
|
|
layouts changed.
|
|
|
|
.sp
|
|
|
|
You\(aqll notice that the layout information allows you to specify a
|
2013-02-20 01:48:26 +00:00
|
|
|
preferred OSD for placement. This feature is unsupported and ignored
|
|
|
|
in modern versions of the Ceph servers; do not use it.
|
2010-12-02 22:14:50 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBcephfs\fP is part of the Ceph distributed file system. Please refer
|
2012-09-27 21:23:42 +00:00
|
|
|
to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more
|
2011-09-09 23:25:14 +00:00
|
|
|
information.
|
2010-12-02 22:14:50 +00:00
|
|
|
.SH SEE ALSO
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\fP(8)
|
|
|
|
.SH COPYRIGHT
|
2013-04-29 23:01:38 +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.
|
|
|
|
.
|