Commit Graph

69 Commits

Author SHA1 Message Date
Sage Weil
13738cd752
Merge pull request #19939 from liewegas/wip-osd-new-class
mon,osd: do not use crush_device_class file to initalize class for new osds

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-02-12 11:17:14 -06:00
Sage Weil
59bdada5d5 mon/OSDMonitor: accept crush_device_class in 'osd new' json input
If provided, set the OSD device_class at OSD creation time.  This is
simpler than writing a file that the OSD has to read in and use to
set its initial device class, and also avoids a bit of sticky state
at the OSD that will make it keep trying to reset its device class on
startup if it ever gets cleared.

Note that we now ignore json input fields we don't understand, so remove
a test case.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-08 12:34:49 -06:00
Brad Hubbard
774b3735f0 doc/man: Add '--block' option for ceph command
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-01-12 12:47:36 +10:00
Patrick Donnelly
d1877b68d9
Merge PR #18512 into master
* refs/pull/18512/head:
	mon,mgr,doc,test: standardize argument as role

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:29 -08:00
Nathan Cutler
aea9fa01ae doc: globally change CRUSH ruleset to CRUSH rule
Since kraken, Ceph enforces a 1:1 correspondence between CRUSH ruleset and
CRUSH rule, so effectively ruleset and rule are the same thing, although
the term "ruleset" still survives - notably in the CRUSH rule itself, where it
effectively denotes the number of the rule.

This commit updates the documentation to more faithfully reflect the current
state of the code.

Fixes: http://tracker.ceph.com/issues/20559
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-12-11 17:15:23 +01:00
Rishabh Dave
39cd6f993f doc/man: mention "ls" in the ceph osd's subcommands list
Though "ls" command is explained and it's usage shown in the man page,
it is not mentioned in the subcommands list of "ceph osd" in the
beginning.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2017-12-07 20:04:19 +05:30
Jos Collin
3b6d6031ca mon,mgr,doc,test: standardize argument as role
`ceph rmfailed` refers to its argument as "who" and `ceph repaired` refers to its argument as "rank". We should make these commands and others consistent by standardizing the argument as "role".

Fixes: http://tracker.ceph.com/issues/21393

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-12-06 10:01:25 +05:30
Sage Weil
a8a514b957 osd/osd_types: pg_pool_t: remove crash_replay_interval member
We removed the dual ack before luminous, so this option is completely
obsolete now.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-18 16:05:19 -05:00
Sage Weil
b198236d68 doc/man/8/ceph.rst: remove pg set_*full_ratio
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:06 -04:00
Sage Weil
e467873e36 doc/man/8/ceph: remove old 'ceph pg ' force_create_pg, set_[near]full_ratio
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:06 -04:00
Neha Ojha
e474630289 doc: fix order of options in osd new
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-08-28 15:59:19 -07:00
Neha Ojha
834ab275b7 mon: warn about using osd new instead of osd create
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-08-24 12:46:41 -07:00
Sage Weil
bf9380457b mgr: implement 'osd safe-to-destroy' and 'ok-to-stop' commands
An osd is safe to destroy if

- we have osd_stat for it
- osd_stat indicates no pgs stored
- all pgs are known
- no pgs map to it

An osd is ok ot stop if

- we have pg stats
- no pgs will drop below min_size

Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-11 22:54:33 -04:00
Sage Weil
4eb1a518e3 mon: 'config-key put' -> 'config-key set'
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-26 14:10:08 -04:00
Kefu Chai
6ee0de8556 doc: document mClock related options
* rados/configuration/osd-config-ref.rst: document mClock related
  options
* release-notes.rst: fix syntax errors. link QoS to mClock related docs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-25 12:59:13 +08:00
Kefu Chai
780c9acd43 doc: document "ceph osd set-require-min-compat-client"
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-24 18:16:25 +08:00
Kefu Chai
4a6a3413b2 doc: document "ceph features"
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-24 16:54:10 +08:00
Sage Weil
7d59d0d0b0 doc/man/8/ceph: document 'ceph mgr *' commands
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 11:25:26 -04:00
Sage Weil
3de9f22ce0 Merge pull request #16423 from liewegas/wip-ls
mon: '* list' -> '* ls'

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-20 10:43:34 -05:00
Sage Weil
d6db84ca76 mon: hide 'osd crush rule list' (we prefer 'ls')
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 22:47:21 -04:00
Sage Weil
572a942f8f mon: 'auth list' -> 'auth ls'
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 12:33:14 -04:00
Sage Weil
2ebb8e13f6 mon: 'config-key list' -> 'config-key ls'
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 12:32:48 -04:00
Kefu Chai
a0d935966c doc: add instructions for replacing an OSD
* 8/ceph.rst: `rm` subcommand removes osd from osdmap, not the cluster.
  the latter is more ambiguous in different contexts.
* rados/operations/add-or-rm-osds.rst: add a subsection of "Replacing an
  OSD". update the subsection of "Removing the OSD" with "ceph osd
  purge" command
* release-notes.rst: link from it to the new subsection in add-or-rm-osds.rst

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-19 11:23:47 +08:00
Kefu Chai
0abee472e3 mon: add force-create-pg back
and now it's "ceph osd force-create-pg'

Fixes: http://tracker.ceph.com/issues/20605
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-17 21:18:06 +08:00
Joao Eduardo Luis
2fd3765440 mon: mark osd create as deprecated
With the introduction of `osd new`, we are now deprecating `osd create`
with the intent of removing it in a future release.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2017-06-12 20:59:01 +01:00
Joao Eduardo Luis
e80faf198b doc/man: document new mon commands
Includes brief description for `ceph osd new`, `ceph osd destroy` and
`ceph osd purge`.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2017-06-05 15:31:41 +01:00
liuchang0812
a1cf9ae766 doc/tool: introduce "ceph tell x help" command in man
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-05-26 10:27:26 +08:00
Drunkard Zhang
2df20b2b4b doc: cleanup in doc/man/8/ceph.rst
Subcommand doc has been removed in 904913b37f,
this is cleanup.

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
2017-05-03 15:45:35 +08:00
Dan Mick
9f2e5c2418 mon/ConfigKeyService: add 'config-key dump' to show keys and vals
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-04-27 20:09:24 -07:00
David Zafman
a5731076ad osd: Handle backfillfull_ratio just like nearfull and full
Add BACKFILLFULL as a local OSD cur_state
Notify monitor of this new fullness state

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-17 08:00:24 -07:00
runsisi
1852dd27b8 mon/PGMonitor: ceph pg ls-by-pool only supports string type of pool arg
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-01-17 09:56:40 +08:00
Nathan Cutler
b61c8158d3 Merge pull request #11787 from SUSE/wip-17802
doc: clarify "ceph quorum" syntax

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-04 00:16:47 +01:00
Nathan Cutler
76b31c1309 doc: clarify "ceph quorum" syntax
The man page did not prepare the user for the fact that "ceph quorum exit" will
cause a random monitor to leave quorum, nor did it say explicitly how to make
the command work on a specific monitor.

Fixes: http://tracker.ceph.com/issues/17802
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-12-27 12:11:04 +01:00
Sage Weil
904913b37f mon/OSDMonitor: remove 'osd thrash' command
This is a dev hack to generate a bunch of bogus osdmaps.  The maps are
all screwed up anyway (e.g., invalid addrs) and this is minimally useful.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-18 23:11:56 -05:00
Patrick Donnelly
4323d47122
mds: remove deprecated commands from docs
This mostly is just removing the commands from the man page ceph(1). I
left the legacy section in doc/cephfs/administration.rst as-is.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-10-12 10:58:38 -04:00
Vikhyat Umrao
f8eca5e7e7 doc : adding explanation of --no-increasing for
reweight-by-utilization and test-reweight-by-utilization
commands

Fixes: http://tracker.ceph.com/issues/15899

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2016-05-16 18:02:41 +05:30
Sage Weil
b0d9b0de15 mon: remove 'mds setmap' command
This command has no discernable purpose, and is difficult and
dangerous to support anyway.

Fixes: #15136
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-17 10:40:24 -04:00
Kefu Chai
797f1d41d9 man/8/ceph.rst: remove invalid option for reweight-by-*
--yes-i-really-mean-it is not valid option for reweight-by-*

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-10 11:13:42 -05:00
Dan van der Ster
ddf5c2b623 osd: add sure and no-increasing options to reweight-by-*
Add a --no-increasing option to reweight-by-* which can be used to only decrease
OSD weights without increasing any. This is useful for example if you need to
urgently lower the weight of nearly full OSDs.

Also add a --yes-i-really-mean-it confirmation to reweight-by-*.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
2016-03-01 11:37:58 -05:00
Danny Al-Gaaf
e794126371 man/8/ceph.rst: fix man page --admin-daemon
The option "--admin-socket ADMIN_SOCKET/DAEMON_NAME" was blocked
as fix for #3944, fix man page to reflect it.

Fix for make warning:

doc/man/8/ceph.rst:5: SEVERE: Duplicate ID: "cmdoption-ceph--admin-socket".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-01-29 21:51:17 +01:00
Sage Weil
6cbdd6750c mon/PGMonitor: remove map_pg_creates, send_pg_creates commands
These shouldn't be triggered manually.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-11-23 08:38:50 -05:00
MingXin Liu
738d64c7e4 Doc: add temperature related stuff in documents and test scripts
Signed-off-by: MingXin Liu <mingxinliu@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
2015-11-11 15:22:33 +08:00
Sage Weil
7d781f7a09 doc: 'ceph --admin-daemon ...' -> 'ceph daemon ...'
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-04 15:59:34 -04:00
Haomai Wang
7841455ca6 Mon: Make ceph osd metadata support dump all osds
Impl #12801
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-08-30 20:56:26 +08:00
Kefu Chai
b097e70732 Merge pull request #4840 from tchaikov/wip-11833-crush-dump-tree
mon: add an "osd crush dump tree" command

Reviewed-by: Min Chen <minchen@ubuntukylin.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
2015-06-24 17:39:49 +08:00
Kefu Chai
5436c290f3 mon: add an "osd crush tree" command
* to print crush buckets/items in a tree

Fixes: #11833
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-06-14 19:08:32 +08:00
liumingxin
7aba9476e6 Doc: add write back throttling stuff in document and test scripts
Signed-off-by: Mingxin Liu <mingxinliu@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
Suggested-by: Nick Fisk <nick@fisk.me.uk>
2015-06-03 15:57:14 +08:00
Mykola Golub
0d1e770391 mon: osd create: add optional 'id' parameter
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-12 14:25:45 +03:00
Kefu Chai
a0bdf6932b doc: add ":orphan:" field to avoid sphinx warnings
when building man pages from rst files, sphinx complains if any
rst file is not referenced by a doctree.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-04-07 23:26:50 +08:00
Kefu Chai
0e07ccc197 man: move man/8/*.rst back to doc/man/8
sphinx requires that a document tree to be in a single directory,
and the man pages are references by our document. so a simple solution
would be to put all the rst file under a single directory.

Fixes: #11320
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-04-07 23:26:49 +08:00