diff --git a/doc/man/8/ceph.rst b/doc/man/8/ceph.rst index 21263a279088b..8e94d34faff8a 100644 --- a/doc/man/8/ceph.rst +++ b/doc/man/8/ceph.rst @@ -15,6 +15,8 @@ Synopsis | **ceph** **df** *{detail}* +| **ceph** **fs** [ *ls* \| *new* \| *rm* ] ... + | **ceph** **fsid** | **ceph** **health** *{detail}* @@ -31,9 +33,9 @@ Synopsis | **ceph** **mon_status** -| **ceph** **osd** [ *blacklist* \| *create* \| *deep-scrub* \| *down* \| *dump* \| *erasure-code-profile* \| *find* \| *getcrushmap* \| *getmap* \| *getmaxosd* \| *in* \| *lost* \| *ls* \| *lspools* \| *map* \| *metadata* \| *out* \| *pause* \| *perf* \| *primary-affinity* \| *primary-temp* \| *repair* \| *reweight* \| *reweight-by-utilization* \| *rm* \| *scrub* \| *set* \| *setcrushmap* \| *setmaxosd* \| *stat* \| *thrash* \| *tree* \| *unpause* \| *unset* ] ... +| **ceph** **osd** [ *blacklist* \| *blocked-by* \| *create* \| *deep-scrub* \| *down* \| *dump* \| *erasure-code-profile* \| *find* \| *getcrushmap* \| *getmap* \| *getmaxosd* \| *in* \| *lost* \| *ls* \| *lspools* \| *map* \| *metadata* \| *out* \| *pause* \| *perf* \| *pg-temp* \| *primary-affinity* \| *primary-temp* \| *repair* \| *reweight* \| *reweight-by-pg* \| *reweight-by-utilization* \| *rm* \| *scrub* \| *set* \| *setcrushmap* \| *setmaxosd* \| *stat* \| *thrash* \| *tree* \| *unpause* \| *unset* ] ... -| **ceph** **osd** **crush** [ *add* \| *add-bucket* \| *create-or-move* \| *dump* \| *get-tunable* \| *link* \| *move* \| *remove* \| *reweight* \| *reweight-all* \| *rm* \| *rule* \| *set* \| *set-tunable* \| *show-tunables* \| *tunables* \| *unlink* ] ... +| **ceph** **osd** **crush** [ *add* \| *add-bucket* \| *create-or-move* \| *dump* \| *link* \| *move* \| *remove* \| *reweight* \| *reweight-subtree* \| *rm* \| *rule* \| *set* \| *show-tunables* \| *tunables* \| *unlink* ] ... | **ceph** **osd** **pool** [ *create* \| *delete* \| *get* \| *get-quota* \| *mksnap* \| *rename* \| *rmsnap* \| *set* \| *set-quota* \| *stats* ] ... @@ -74,7 +76,7 @@ or updating of authentication keys for a particular entity such as a monitor or OSD. It uses some additional subcommands. Subcommand ``add`` adds authentication info for a particular entity from input -file, or random key if no input given and/or any caps specified in the command. +file, or random key if no input is given and/or any caps specified in the command. Usage:: @@ -208,6 +210,30 @@ Usage:: ceph df {detail} +fs +-- + +Manage cephfs filesystems. It uses some additional subcommands. + +Subcommand ``ls`` to list filesystems + +Usage:: + + ceph fs ls + +Subcommand ``new`` to make a new filesystem using named pools and + +Usage:: + + ceph fs new + +Subcommand ``rm`` to disable the named filesystem + +Usage:: + + ceph fs rm {--yes-i-really-mean-it} + + fsid ---- @@ -466,6 +492,12 @@ Usage:: ceph osd blacklist rm +Subcommand ``blocked-by`` prints a histogram of which OSDs are blocking their peers + +Usage:: + + ceph osd blocked-by + Subcommand ``create`` creates new osd (with optional UUID). Usage:: @@ -503,12 +535,6 @@ Usage:: ceph osd crush dump -Subcommand ``get-tunable`` get crush tunable straw_calc_version - -Usage:: - - ceph osd crush get-tunable straw_calc_version - Subcommand ``link`` links existing entry for under location . Usage:: @@ -534,12 +560,12 @@ Usage:: ceph osd crush reweight -Subcommand ``reweight-all`` recalculate the weights for the tree to -ensure they sum correctly +Subcommand ``reweight-subtree`` changes all leaf items beneath +to in crush map Usage:: - ceph osd crush reweight-all + ceph osd crush reweight-subtree Subcommand ``rm`` removes from crush map (everywhere, or just at ). @@ -603,13 +629,6 @@ Usage:: ceph osd crush set [...] -Subcommand ``set-tunable`` set crush tunable to . The only -tunable that can be set is straw_calc_version. - -Usage:: - - ceph osd crush set-tunable straw_calc_version - Subcommand ``show-tunables`` shows current crush tunables. Usage:: @@ -769,7 +788,7 @@ Subcommand ``create`` creates pool. Usage:: ceph osd pool create {} {replicated|erasure} - {} {} + {} {} {} Subcommand ``delete`` deletes pool. @@ -789,7 +808,7 @@ Usage:: ceph osd pool get cache_target_dirty_ratio|cache_target_full_ratio ceph osd pool get cache_min_flush_age|cache_min_evict_age| - erasure_code_profile + erasure_code_profile|min_read_recency_for_promote Subcommand ``get-quota`` obtains object or byte limits for pool. @@ -819,12 +838,12 @@ Subcommand ``set`` sets pool parameter to . Usage:: - ceph osd pool set size|min_size|crash_replay_interval| - pg_num|pgp_num|crush_ruleset|hashpspool|hit_set_type|hit_set_period| - hit_set_count|hit_set_fpp|debug_fake_ec_pool| target_max_bytes| + ceph osd pool set size|min_size|crash_replay_interval|pg_num| + pgp_num|crush_ruleset|hashpspool|hit_set_type|hit_set_period| + hit_set_count|hit_set_fpp|debug_fake_ec_pool|target_max_bytes| target_max_objects|cache_target_dirty_ratio|cache_target_full_ratio| - cache_min_flush_age|cache_min_evict_age|auid - {--yes-i-really-mean-it} + cache_min_flush_age|cache_min_evict_age|auid| + min_read_recency_for_promote {--yes-i-really-mean-it} Subcommand ``set-quota`` sets object or byte limit on pool. @@ -864,6 +883,13 @@ Usage:: osd reweight +Subcommand ``reweight-by-pg`` reweight OSDs by PG distribution +[overload-percentage-for-consideration, default 120]. + +Usage:: + + ceph osd reweight-by-pg {} { [. Usage:: - ceph osd set pause|noup|nodown|noout|noin|nobackfill|norecover|noscrub| - nodeep-scrub|notieragent + ceph osd set pause|noup|nodown|noout|noin|nobackfill| + norecover|noscrub|nodeep-scrub|notieragent Subcommand ``setcrushmap`` sets crush map from input file. @@ -935,7 +961,8 @@ Subcommand ``cache-mode`` specifies the caching mode for cache tier . Usage:: - ceph osd tier cache-mode none|writeback|forward|readonly + ceph osd tier cache-mode none|writeback|forward|readonly| + readforward Subcommand ``remove`` removes the tier (the second one) from base pool (the first one). @@ -973,8 +1000,8 @@ Subcommand ``unset`` unsets . Usage:: - osd unset pause|noup|nodown|noout|noin|nobackfill|norecover|noscrub| - nodeep-scrub|notieragent + ceph osd unset pause|noup|nodown|noout|noin|nobackfill| + norecover|noscrub|nodeep-scrub|notieragent pg @@ -1145,6 +1172,14 @@ Usage:: ceph tell [...] +version +------- + +Show mon daemon version + +Usage:: + + ceph version Options ======= diff --git a/man/ceph.8 b/man/ceph.8 index 16513e722def9..c9fc51174101e 100644 --- a/man/ceph.8 +++ b/man/ceph.8 @@ -75,6 +75,10 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .fi .sp .nf +\fBceph\fP \fBfs\fP [ \fIls\fP | \fInew\fP | \fIrm\fP ] ... +.fi +.sp +.nf \fBceph\fP \fBfsid\fP .fi .sp @@ -107,11 +111,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .fi .sp .nf -\fBceph\fP \fBosd\fP [ \fIblacklist\fP | \fIcreate\fP | \fIdeep\-scrub\fP | \fIdown\fP | \fIdump\fP | \fIerasure\-code\-profile\fP | \fIfind\fP | \fIgetcrushmap\fP | \fIgetmap\fP | \fIgetmaxosd\fP | \fIin\fP | \fIlost\fP | \fIls\fP | \fIlspools\fP | \fImap\fP | \fImetadata\fP | \fIout\fP | \fIpause\fP | \fIperf\fP | \fIprimary\-affinity\fP | \fIprimary\-temp\fP | \fIrepair\fP | \fIreweight\fP | \fIreweight\-by\-utilization\fP | \fIrm\fP | \fIscrub\fP | \fIset\fP | \fIsetcrushmap\fP | \fIsetmaxosd\fP | \fIstat\fP | \fIthrash\fP | \fItree\fP | \fIunpause\fP | \fIunset\fP ] ... +\fBceph\fP \fBosd\fP [ \fIblacklist\fP | \fIblocked\-by\fP | \fIcreate\fP | \fIdeep\-scrub\fP | \fIdown\fP | \fIdump\fP | \fIerasure\-code\-profile\fP | \fIfind\fP | \fIgetcrushmap\fP | \fIgetmap\fP | \fIgetmaxosd\fP | \fIin\fP | \fIlost\fP | \fIls\fP | \fIlspools\fP | \fImap\fP | \fImetadata\fP | \fIout\fP | \fIpause\fP | \fIperf\fP | \fIpg\-temp\fP | \fIprimary\-affinity\fP | \fIprimary\-temp\fP | \fIrepair\fP | \fIreweight\fP | \fIreweight\-by\-pg\fP | \fIreweight\-by\-utilization\fP | \fIrm\fP | \fIscrub\fP | \fIset\fP | \fIsetcrushmap\fP | \fIsetmaxosd\fP | \fIstat\fP | \fIthrash\fP | \fItree\fP | \fIunpause\fP | \fIunset\fP ] ... .fi .sp .nf -\fBceph\fP \fBosd\fP \fBcrush\fP [ \fIadd\fP | \fIadd\-bucket\fP | \fIcreate\-or\-move\fP | \fIdump\fP | \fIget\-tunable\fP | \fIlink\fP | \fImove\fP | \fIremove\fP | \fIreweight\fP | \fIreweight\-all\fP | \fIrm\fP | \fIrule\fP | \fIset\fP | \fIset\-tunable\fP | \fIshow\-tunables\fP | \fItunables\fP | \fIunlink\fP ] ... +\fBceph\fP \fBosd\fP \fBcrush\fP [ \fIadd\fP | \fIadd\-bucket\fP | \fIcreate\-or\-move\fP | \fIdump\fP | \fIlink\fP | \fImove\fP | \fIremove\fP | \fIreweight\fP | \fIreweight\-subtree\fP | \fIrm\fP | \fIrule\fP | \fIset\fP | \fIshow\-tunables\fP | \fItunables\fP | \fIunlink\fP ] ... .fi .sp .nf @@ -168,7 +172,7 @@ or updating of authentication keys for a particular entity such as a monitor or OSD. It uses some additional subcommands. .sp Subcommand \fBadd\fP adds authentication info for a particular entity from input -file, or random key if no input given and/or any caps specified in the command. +file, or random key if no input is given and/or any caps specified in the command. .sp Usage: .INDENT 0.0 @@ -443,6 +447,51 @@ ceph df {detail} .fi .UNINDENT .UNINDENT +.SS fs +.sp +Manage cephfs filesystems. It uses some additional subcommands. +.sp +Subcommand \fBls\fP to list filesystems +.sp +Usage: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +ceph fs ls +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +Subcommand \fBnew\fP to make a new filesystem using named pools and +.sp +Usage: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +ceph fs new +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +Subcommand \fBrm\fP to disable the named filesystem +.sp +Usage: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +ceph fs rm {\-\-yes\-i\-really\-mean\-it} +.ft P +.fi +.UNINDENT +.UNINDENT .SS fsid .sp Show cluster\(aqs FSID/UUID. @@ -959,6 +1008,20 @@ ceph osd blacklist rm .UNINDENT .UNINDENT .sp +Subcommand \fBblocked\-by\fP prints a histogram of which OSDs are blocking their peers +.sp +Usage: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +ceph osd blocked\-by +.ft P +.fi +.UNINDENT +.UNINDENT +.sp Subcommand \fBcreate\fP creates new osd (with optional UUID). .sp Usage: @@ -1036,20 +1099,6 @@ ceph osd crush dump .UNINDENT .UNINDENT .sp -Subcommand \fBget\-tunable\fP get crush tunable straw_calc_version -.sp -Usage: -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -ceph osd crush get\-tunable straw_calc_version -.ft P -.fi -.UNINDENT -.UNINDENT -.sp Subcommand \fBlink\fP links existing entry for under location . .sp Usage: @@ -1107,8 +1156,8 @@ ceph osd crush reweight .UNINDENT .UNINDENT .sp -Subcommand \fBreweight\-all\fP recalculate the weights for the tree to -ensure they sum correctly +Subcommand \fBreweight\-subtree\fP changes all leaf items beneath +to in crush map .sp Usage: .INDENT 0.0 @@ -1116,7 +1165,7 @@ Usage: .sp .nf .ft C -ceph osd crush reweight\-all +ceph osd crush reweight\-subtree .ft P .fi .UNINDENT @@ -1256,21 +1305,6 @@ ceph osd crush set [...] .UNINDENT .UNINDENT .sp -Subcommand \fBset\-tunable\fP set crush tunable to . The only -tunable that can be set is straw_calc_version. -.sp -Usage: -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -ceph osd crush set\-tunable straw_calc_version -.ft P -.fi -.UNINDENT -.UNINDENT -.sp Subcommand \fBshow\-tunables\fP shows current crush tunables. .sp Usage: @@ -1626,7 +1660,7 @@ Usage: .nf .ft C ceph osd pool create {} {replicated|erasure} -{} {} +{} {} {} .ft P .fi .UNINDENT @@ -1662,7 +1696,7 @@ ceph osd pool get auid|target_max_objects|target_max_bytes ceph osd pool get cache_target_dirty_ratio|cache_target_full_ratio ceph osd pool get cache_min_flush_age|cache_min_evict_age| -erasure_code_profile +erasure_code_profile|min_read_recency_for_promote .ft P .fi .UNINDENT @@ -1732,12 +1766,12 @@ Usage: .sp .nf .ft C -ceph osd pool set size|min_size|crash_replay_interval| -pg_num|pgp_num|crush_ruleset|hashpspool|hit_set_type|hit_set_period| -hit_set_count|hit_set_fpp|debug_fake_ec_pool| target_max_bytes| +ceph osd pool set size|min_size|crash_replay_interval|pg_num| +pgp_num|crush_ruleset|hashpspool|hit_set_type|hit_set_period| +hit_set_count|hit_set_fpp|debug_fake_ec_pool|target_max_bytes| target_max_objects|cache_target_dirty_ratio|cache_target_full_ratio| -cache_min_flush_age|cache_min_evict_age|auid - {\-\-yes\-i\-really\-mean\-it} +cache_min_flush_age|cache_min_evict_age|auid| +min_read_recency_for_promote {\-\-yes\-i\-really\-mean\-it} .ft P .fi .UNINDENT @@ -1829,6 +1863,21 @@ osd reweight .UNINDENT .UNINDENT .sp +Subcommand \fBreweight\-by\-pg\fP reweight OSDs by PG distribution +[overload\-percentage\-for\-consideration, default 120]. +.sp +Usage: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +ceph osd reweight\-by\-pg {} { [ none|writeback|forward|readonly +ceph osd tier cache\-mode none|writeback|forward|readonly| +readforward .ft P .fi .UNINDENT @@ -2070,8 +2120,8 @@ Usage: .sp .nf .ft C -osd unset pause|noup|nodown|noout|noin|nobackfill|norecover|noscrub| -nodeep\-scrub|notieragent +ceph osd unset pause|noup|nodown|noout|noin|nobackfill| +norecover|noscrub|nodeep\-scrub|notieragent .ft P .fi .UNINDENT @@ -2397,6 +2447,21 @@ ceph tell [...] .fi .UNINDENT .UNINDENT +.SS version +.sp +Show mon daemon version +.sp +Usage: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +ceph version +.ft P +.fi +.UNINDENT +.UNINDENT .SH OPTIONS .INDENT 0.0 .TP