2016-02-17 14:58:16 +00:00
|
|
|
|
|
|
|
CephFS Administrative commands
|
|
|
|
==============================
|
|
|
|
|
|
|
|
Filesystems
|
|
|
|
-----------
|
|
|
|
|
|
|
|
These commands operate on the CephFS filesystems in your Ceph cluster.
|
|
|
|
Note that by default only one filesystem is permitted: to enable
|
|
|
|
creation of multiple filesystems use ``ceph fs flag set enable_multiple true``.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs new <filesystem name> <metadata pool name> <data pool name>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs ls
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs rm <filesystem name> [--yes-i-really-mean-it]
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs reset <filesystem name>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs get <filesystem name>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs set <filesystem name> <var> <val>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs add_data_pool <filesystem name> <pool name/id>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-03-12 11:47:48 +00:00
|
|
|
fs rm_data_pool <filesystem name> <pool name/id>
|
2016-02-17 14:58:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
Daemons
|
|
|
|
-------
|
|
|
|
|
2016-11-14 02:51:17 +00:00
|
|
|
These commands act on specific mds daemons or ranks.
|
2016-02-17 14:58:16 +00:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds fail <gid/name/role
|
|
|
|
|
2016-11-14 02:51:35 +00:00
|
|
|
This command deactivates an MDS causing it to flush its entire journal to
|
|
|
|
backing RADOS objects and close all open client sessions. Deactivating an MDS
|
|
|
|
is primarily intended for bringing down a rank after reducing the number of
|
|
|
|
active MDS (max_mds).
|
|
|
|
|
2016-02-17 14:58:16 +00:00
|
|
|
::
|
|
|
|
|
|
|
|
mds deactivate <role>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
tell mds.<daemon name>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds metadata <gid/name/role>
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds repaired <role>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Global settings
|
|
|
|
---------------
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
fs dump
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-04-07 00:29:30 +00:00
|
|
|
fs flag set <flag name> <flag val> [<confirmation string>]
|
2016-02-17 14:58:16 +00:00
|
|
|
|
|
|
|
flag name must be one of ['enable_multiple']
|
|
|
|
|
2016-04-07 00:29:30 +00:00
|
|
|
some flags require you to confirm your intentions with "--yes-i-really-mean-it"
|
|
|
|
or a similar string they will prompt you with. Consider these actions carefully
|
|
|
|
before proceeding; they are placed on especially dangerous activities.
|
|
|
|
|
2016-02-17 14:58:16 +00:00
|
|
|
Advanced
|
|
|
|
--------
|
|
|
|
|
|
|
|
These commands are not required in normal operation, and exist
|
|
|
|
for use in exceptional circumstances. Incorrect use of these
|
|
|
|
commands may cause serious problems, such as an inaccessible
|
|
|
|
filesystem.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds compat rm_compat
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds compat rm_incompat
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds compat show
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds getmap
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds set_state
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds rmfailed
|
|
|
|
|
|
|
|
Legacy
|
2016-11-04 09:58:28 +00:00
|
|
|
------
|
2016-02-17 14:58:16 +00:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mds stat
|
|
|
|
mds dump # replaced by "fs get"
|
|
|
|
mds stop # replaced by "mds deactivate"
|
|
|
|
mds set_max_mds # replaced by "fs set max_mds"
|
|
|
|
mds set # replaced by "fs set"
|
|
|
|
mds cluster_down # replaced by "fs set cluster_down"
|
2016-10-27 17:26:34 +00:00
|
|
|
mds cluster_up # replaced by "fs set cluster_up"
|
2016-02-17 14:58:16 +00:00
|
|
|
mds newfs # replaced by "fs new"
|
|
|
|
mds add_data_pool # replaced by "fs add_data_pool"
|
|
|
|
mds remove_data_pool #replaced by "fs remove_data_pool"
|
|
|
|
|