summaryrefslogtreecommitdiff
path: root/man/cephfs.8
blob: ce64faaca917d0935d1e671a289d2b21fc9ece4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.TH "CEPHFS" "8" "September 22, 2011" "dev" "Ceph"
.SH NAME
cephfs \- ceph file system options utility
.
.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
..
.\" Man page generated from reStructeredText.
.
.SH SYNOPSIS
.nf
\fBcephfs\fP [ \fIpath\fP \fIcommand\fP \fIoptions\fP ]
.fi
.sp
.SH DESCRIPTION
.sp
\fBcephfs\fP is a control utility for accessing and manipulating file
layout and location data in the Ceph distributed file system.
.sp
Choose one of the following three commands:
.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
.SH OPTIONS
.sp
Your applicable options differ depending on whether you are setting or viewing layout/location.
.SS Viewing options:
.INDENT 0.0
.TP
.B \-l \-\-offset
Specify an offset for which to retrieve location data
.UNINDENT
.SS Setting options:
.INDENT 0.0
.TP
.B \-u \-\-stripe_unit
Set the size of each stripe
.UNINDENT
.INDENT 0.0
.TP
.B \-c \-\-stripe_count
Set the number of stripes per object
.UNINDENT
.INDENT 0.0
.TP
.B \-s \-\-object_size
Set the size of the objects to stripe across
.UNINDENT
.INDENT 0.0
.TP
.B \-p \-\-pool
Set the pool (by numeric value, not name!) to use
.UNINDENT
.INDENT 0.0
.TP
.B \-o \-\-osd
Set the preferred OSD to use as the primary
.UNINDENT
.SH LIMITATIONS
.sp
When setting layout data, the specified stripe unit and stripe count
must multiply to the size of an object. Any parameters you don\(aqt set
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
preferred OSD for placement. This is allowed but is not recommended
since it can dramatically unbalance your storage cluster\(aqs space
utilization.
.SH AVAILABILITY
.sp
\fBcephfs\fP is part of the Ceph distributed file system. Please refer
to the Ceph wiki at \fI\%http://ceph.newdream.net/wiki\fP for more
information.
.SH SEE ALSO
.sp
\fBceph\fP(8)
.SH COPYRIGHT
2011, New Dream Network
.\" Generated by docutils manpage writer.
.\" 
.