2015-04-07 10:11:29 +00:00
|
|
|
:orphan:
|
|
|
|
|
2011-09-09 23:21:52 +00:00
|
|
|
============================================
|
|
|
|
cephfs -- ceph file system options utility
|
|
|
|
============================================
|
|
|
|
|
|
|
|
.. program:: cephfs
|
|
|
|
|
|
|
|
Synopsis
|
|
|
|
========
|
|
|
|
|
|
|
|
| **cephfs** [ *path* *command* *options* ]
|
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
|
|
|
**cephfs** is a control utility for accessing and manipulating file
|
2013-12-07 20:52:16 +00:00
|
|
|
layout and location data in the Ceph distributed storage system.
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
.. TODO format this like a proper man page
|
|
|
|
|
|
|
|
Choose one of the following three commands:
|
|
|
|
|
|
|
|
- ``show_layout`` View the layout information on a file or directory
|
|
|
|
- ``set_layout`` Set the layout information on a file or directory
|
|
|
|
- ``show_location`` View the location information on a file
|
|
|
|
|
|
|
|
|
|
|
|
Options
|
|
|
|
=======
|
|
|
|
|
|
|
|
Your applicable options differ depending on whether you are setting or viewing layout/location.
|
|
|
|
|
|
|
|
Viewing options:
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. option:: -l --offset
|
|
|
|
|
|
|
|
Specify an offset for which to retrieve location data
|
|
|
|
|
|
|
|
Setting options:
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. option:: -u --stripe_unit
|
|
|
|
|
|
|
|
Set the size of each stripe
|
|
|
|
|
|
|
|
.. option:: -c --stripe_count
|
|
|
|
|
2013-02-20 02:00:44 +00:00
|
|
|
Set the number of objects to stripe across
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
.. option:: -s --object_size
|
|
|
|
|
|
|
|
Set the size of the objects to stripe across
|
|
|
|
|
|
|
|
.. option:: -p --pool
|
|
|
|
|
|
|
|
Set the pool (by numeric value, not name!) to use
|
|
|
|
|
|
|
|
.. option:: -o --osd
|
|
|
|
|
2015-03-23 03:59:40 +00:00
|
|
|
Set the preferred OSD to use as the primary (deprecated and ignored)
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
Limitations
|
|
|
|
===========
|
|
|
|
|
2013-02-20 02:00:44 +00:00
|
|
|
When setting layout data, the specified object size must evenly divide
|
|
|
|
by the specified stripe unit. Any parameters you don't set
|
2011-09-09 23:21:52 +00:00
|
|
|
explicitly are left at the system defaults.
|
|
|
|
|
|
|
|
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 *any* data to
|
|
|
|
it. Truncating a file does not allow you to change the layout either.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
You'll notice that the layout information allows you to specify a
|
2013-02-20 02:00:44 +00:00
|
|
|
preferred OSD for placement. This feature is unsupported and ignored
|
|
|
|
in modern versions of the Ceph servers; do not use it.
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
Availability
|
|
|
|
============
|
|
|
|
|
2015-01-22 02:16:35 +00:00
|
|
|
**cephfs** is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer
|
2012-06-16 21:50:29 +00:00
|
|
|
to the Ceph documentation at http://ceph.com/docs for more
|
2011-09-09 23:21:52 +00:00
|
|
|
information.
|
|
|
|
|
|
|
|
|
|
|
|
See also
|
|
|
|
========
|
|
|
|
|
|
|
|
:doc:`ceph <ceph>`\(8)
|