3
cephfs \- ceph file system options utility
6
[ \fIpath \fIcommand \fBoptions]
9
is a control utility for accessing and manipulating file layout
10
and location data in the Ceph distributed file system.
12
Choose one of the following three commands:
14
\fBshow_layout \fPView the layout information on a file or directory
16
\fBset_layout \fPSet the layout information on a file or directory.
18
\fBshow_location \fPView the location information on a file
21
Your applicable options differ depending on whether you are setting
22
or viewing layout/location.
27
\fPSpecify an offset for which to retrieve location data
34
Set the size of each stripe
38
Set the number of stripes per object
42
Set the size of the objects to stripe across
46
Set the pool (by numeric value, not name!) to use
50
Set the preferred OSD to use as the primary
53
When setting layout data, the specified stripe unit and stripe count
54
must multiply to the size of an object. Any parameters you don't set explicitly are left at the system defaults.
56
Obviously setting the layout of a file and a directory means different things.
57
Setting the layout of a file specifies exactly how to place the individual file. This must be done before writing *any* data to it. Truncating a file does not allow you to change the layout either.
59
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.
61
You'll 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's space utilization.
65
is part of the Ceph distributed file system. Please refer to the Ceph wiki at
66
http://ceph.newdream.net/wiki for more information.