]> git.proxmox.com Git - ceph.git/blame - ceph/doc/man/8/ceph.rst
bump version to 12.0.3-pve3
[ceph.git] / ceph / doc / man / 8 / ceph.rst
CommitLineData
7c673cae
FG
1:orphan:
2
3==================================
4 ceph -- ceph administration tool
5==================================
6
7.. program:: ceph
8
9Synopsis
10========
11
12| **ceph** **auth** [ *add* \| *caps* \| *del* \| *export* \| *get* \| *get-key* \| *get-or-create* \| *get-or-create-key* \| *import* \| *list* \| *print-key* \| *print_key* ] ...
13
14| **ceph** **compact**
15
16| **ceph** **config-key** [ *del* | *exists* | *get* | *list* | *dump* | *put* ] ...
17
18| **ceph** **daemon** *<name>* \| *<path>* *<command>* ...
19
20| **ceph** **daemonperf** *<name>* \| *<path>* [ *interval* [ *count* ] ]
21
22| **ceph** **df** *{detail}*
23
24| **ceph** **fs** [ *ls* \| *new* \| *reset* \| *rm* ] ...
25
26| **ceph** **fsid**
27
28| **ceph** **health** *{detail}*
29
30| **ceph** **heap** [ *dump* \| *start_profiler* \| *stop_profiler* \| *release* \| *stats* ] ...
31
32| **ceph** **injectargs** *<injectedargs>* [ *<injectedargs>*... ]
33
34| **ceph** **log** *<logtext>* [ *<logtext>*... ]
35
36| **ceph** **mds** [ *compat* \| *deactivate* \| *fail* \| *rm* \| *rmfailed* \| *set_state* \| *stat* \| *tell* ] ...
37
38| **ceph** **mon** [ *add* \| *dump* \| *getmap* \| *remove* \| *stat* ] ...
39
40| **ceph** **mon_status**
41
42| **ceph** **osd** [ *blacklist* \| *blocked-by* \| *create* \| *deep-scrub* \| *df* \| *down* \| *dump* \| *erasure-code-profile* \| *find* \| *getcrushmap* \| *getmap* \| *getmaxosd* \| *in* \| *lspools* \| *map* \| *metadata* \| *out* \| *pause* \| *perf* \| *pg-temp* \| *primary-affinity* \| *primary-temp* \| *repair* \| *reweight* \| *reweight-by-pg* \| *rm* \| *scrub* \| *set* \| *setcrushmap* \| *setmaxosd* \| *stat* \| *tree* \| *unpause* \| *unset* ] ...
43
44| **ceph** **osd** **crush** [ *add* \| *add-bucket* \| *create-or-move* \| *dump* \| *get-tunable* \| *link* \| *move* \| *remove* \| *rename-bucket* \| *reweight* \| *reweight-all* \| *reweight-subtree* \| *rm* \| *rule* \| *set* \| *set-tunable* \| *show-tunables* \| *tunables* \| *unlink* ] ...
45
46| **ceph** **osd** **pool** [ *create* \| *delete* \| *get* \| *get-quota* \| *ls* \| *mksnap* \| *rename* \| *rmsnap* \| *set* \| *set-quota* \| *stats* ] ...
47
48| **ceph** **osd** **tier** [ *add* \| *add-cache* \| *cache-mode* \| *remove* \| *remove-overlay* \| *set-overlay* ] ...
49
50| **ceph** **pg** [ *debug* \| *deep-scrub* \| *dump* \| *dump_json* \| *dump_pools_json* \| *dump_stuck* \| *force_create_pg* \| *getmap* \| *ls* \| *ls-by-osd* \| *ls-by-pool* \| *ls-by-primary* \| *map* \| *repair* \| *scrub* \| *set_full_ratio* \| *set_nearfull_ratio* \| *stat* ] ...
51
52| **ceph** **quorum** [ *enter* \| *exit* ]
53
54| **ceph** **quorum_status**
55
56| **ceph** **report** { *<tags>* [ *<tags>...* ] }
57
58| **ceph** **scrub**
59
60| **ceph** **status**
61
62| **ceph** **sync** **force** {--yes-i-really-mean-it} {--i-know-what-i-am-doing}
63
64| **ceph** **tell** *<name (type.id)> <args> [<args>...]*
65
66| **ceph** **version**
67
68Description
69===========
70
71:program:`ceph` is a control utility which is used for manual deployment and maintenance
72of a Ceph cluster. It provides a diverse set of commands that allows deployment of
73monitors, OSDs, placement groups, MDS and overall maintenance, administration
74of the cluster.
75
76Commands
77========
78
79auth
80----
81
82Manage authentication keys. It is used for adding, removing, exporting
83or updating of authentication keys for a particular entity such as a monitor or
84OSD. It uses some additional subcommands.
85
86Subcommand ``add`` adds authentication info for a particular entity from input
87file, or random key if no input is given and/or any caps specified in the command.
88
89Usage::
90
91 ceph auth add <entity> {<caps> [<caps>...]}
92
93Subcommand ``caps`` updates caps for **name** from caps specified in the command.
94
95Usage::
96
97 ceph auth caps <entity> <caps> [<caps>...]
98
99Subcommand ``del`` deletes all caps for ``name``.
100
101Usage::
102
103 ceph auth del <entity>
104
105Subcommand ``export`` writes keyring for requested entity, or master keyring if
106none given.
107
108Usage::
109
110 ceph auth export {<entity>}
111
112Subcommand ``get`` writes keyring file with requested key.
113
114Usage::
115
116 ceph auth get <entity>
117
118Subcommand ``get-key`` displays requested key.
119
120Usage::
121
122 ceph auth get-key <entity>
123
124Subcommand ``get-or-create`` adds authentication info for a particular entity
125from input file, or random key if no input given and/or any caps specified in the
126command.
127
128Usage::
129
130 ceph auth get-or-create <entity> {<caps> [<caps>...]}
131
132Subcommand ``get-or-create-key`` gets or adds key for ``name`` from system/caps
133pairs specified in the command. If key already exists, any given caps must match
134the existing caps for that key.
135
136Usage::
137
138 ceph auth get-or-create-key <entity> {<caps> [<caps>...]}
139
140Subcommand ``import`` reads keyring from input file.
141
142Usage::
143
144 ceph auth import
145
146Subcommand ``list`` lists authentication state.
147
148Usage::
149
150 ceph auth list
151
152Subcommand ``print-key`` displays requested key.
153
154Usage::
155
156 ceph auth print-key <entity>
157
158Subcommand ``print_key`` displays requested key.
159
160Usage::
161
162 ceph auth print_key <entity>
163
164
165compact
166-------
167
168Causes compaction of monitor's leveldb storage.
169
170Usage::
171
172 ceph compact
173
174
175config-key
176----------
177
178Manage configuration key. It uses some additional subcommands.
179
180Subcommand ``del`` deletes configuration key.
181
182Usage::
183
184 ceph config-key del <key>
185
186Subcommand ``exists`` checks for configuration keys existence.
187
188Usage::
189
190 ceph config-key exists <key>
191
192Subcommand ``get`` gets the configuration key.
193
194Usage::
195
196 ceph config-key get <key>
197
198Subcommand ``list`` lists configuration keys.
199
200Usage::
201
202 ceph config-key list
203
204Subcommand ``dump`` dumps configuration keys and values.
205
206Usage::
207
208 ceph config-key dump
209
210Subcommand ``put`` puts configuration key and value.
211
212Usage::
213
214 ceph config-key put <key> {<val>}
215
216
217daemon
218------
219
220Submit admin-socket commands.
221
222Usage::
223
224 ceph daemon {daemon_name|socket_path} {command} ...
225
226Example::
227
228 ceph daemon osd.0 help
229
230
231daemonperf
232----------
233
234Watch performance counters from a Ceph daemon.
235
236Usage::
237
238 ceph daemonperf {daemon_name|socket_path} [{interval} [{count}]]
239
240
241df
242--
243
244Show cluster's free space status.
245
246Usage::
247
248 ceph df {detail}
249
250
251fs
252--
253
254Manage cephfs filesystems. It uses some additional subcommands.
255
256Subcommand ``ls`` to list filesystems
257
258Usage::
259
260 ceph fs ls
261
262Subcommand ``new`` to make a new filesystem using named pools <metadata> and <data>
263
264Usage::
265
266 ceph fs new <fs_name> <metadata> <data>
267
268Subcommand ``reset`` is used for disaster recovery only: reset to a single-MDS map
269
270Usage::
271
272 ceph fs reset <fs_name> {--yes-i-really-mean-it}
273
274Subcommand ``rm`` to disable the named filesystem
275
276Usage::
277
278 ceph fs rm <fs_name> {--yes-i-really-mean-it}
279
280
281fsid
282----
283
284Show cluster's FSID/UUID.
285
286Usage::
287
288 ceph fsid
289
290
291health
292------
293
294Show cluster's health.
295
296Usage::
297
298 ceph health {detail}
299
300
301heap
302----
303
304Show heap usage info (available only if compiled with tcmalloc)
305
306Usage::
307
308 ceph heap dump|start_profiler|stop_profiler|release|stats
309
310
311injectargs
312----------
313
314Inject configuration arguments into monitor.
315
316Usage::
317
318 ceph injectargs <injected_args> [<injected_args>...]
319
320
321log
322---
323
324Log supplied text to the monitor log.
325
326Usage::
327
328 ceph log <logtext> [<logtext>...]
329
330
331mds
332---
333
334Manage metadata server configuration and administration. It uses some
335additional subcommands.
336
337Subcommand ``compat`` manages compatible features. It uses some additional
338subcommands.
339
340Subcommand ``rm_compat`` removes compatible feature.
341
342Usage::
343
344 ceph mds compat rm_compat <int[0-]>
345
346Subcommand ``rm_incompat`` removes incompatible feature.
347
348Usage::
349
350 ceph mds compat rm_incompat <int[0-]>
351
352Subcommand ``show`` shows mds compatibility settings.
353
354Usage::
355
356 ceph mds compat show
357
358Subcommand ``deactivate`` stops mds.
359
360Usage::
361
362 ceph mds deactivate <who>
363
364Subcommand ``fail`` forces mds to status fail.
365
366Usage::
367
368 ceph mds fail <who>
369
370Subcommand ``rm`` removes inactive mds.
371
372Usage::
373
374 ceph mds rm <int[0-]> <name> (type.id)>
375
376Subcommand ``rmfailed`` removes failed mds.
377
378Usage::
379
380 ceph mds rmfailed <int[0-]>
381
382Subcommand ``set_state`` sets mds state of <gid> to <numeric-state>.
383
384Usage::
385
386 ceph mds set_state <int[0-]> <int[0-20]>
387
388Subcommand ``stat`` shows MDS status.
389
390Usage::
391
392 ceph mds stat
393
394Subcommand ``tell`` sends command to particular mds.
395
396Usage::
397
398 ceph mds tell <who> <args> [<args>...]
399
400mon
401---
402
403Manage monitor configuration and administration. It uses some additional
404subcommands.
405
406Subcommand ``add`` adds new monitor named <name> at <addr>.
407
408Usage::
409
410 ceph mon add <name> <IPaddr[:port]>
411
412Subcommand ``dump`` dumps formatted monmap (optionally from epoch)
413
414Usage::
415
416 ceph mon dump {<int[0-]>}
417
418Subcommand ``getmap`` gets monmap.
419
420Usage::
421
422 ceph mon getmap {<int[0-]>}
423
424Subcommand ``remove`` removes monitor named <name>.
425
426Usage::
427
428 ceph mon remove <name>
429
430Subcommand ``stat`` summarizes monitor status.
431
432Usage::
433
434 ceph mon stat
435
436mon_status
437----------
438
439Reports status of monitors.
440
441Usage::
442
443 ceph mon_status
444
445osd
446---
447
448Manage OSD configuration and administration. It uses some additional
449subcommands.
450
451Subcommand ``blacklist`` manage blacklisted clients. It uses some additional
452subcommands.
453
454Subcommand ``add`` add <addr> to blacklist (optionally until <expire> seconds
455from now)
456
457Usage::
458
459 ceph osd blacklist add <EntityAddr> {<float[0.0-]>}
460
461Subcommand ``ls`` show blacklisted clients
462
463Usage::
464
465 ceph osd blacklist ls
466
467Subcommand ``rm`` remove <addr> from blacklist
468
469Usage::
470
471 ceph osd blacklist rm <EntityAddr>
472
473Subcommand ``blocked-by`` prints a histogram of which OSDs are blocking their peers
474
475Usage::
476
477 ceph osd blocked-by
478
479Subcommand ``create`` creates new osd (with optional UUID and ID).
480
481Usage::
482
483 ceph osd create {<uuid>} {<id>}
484
485Subcommand ``crush`` is used for CRUSH management. It uses some additional
486subcommands.
487
488Subcommand ``add`` adds or updates crushmap position and weight for <name> with
489<weight> and location <args>.
490
491Usage::
492
493 ceph osd crush add <osdname (id|osd.id)> <float[0.0-]> <args> [<args>...]
494
495Subcommand ``add-bucket`` adds no-parent (probably root) crush bucket <name> of
496type <type>.
497
498Usage::
499
500 ceph osd crush add-bucket <name> <type>
501
502Subcommand ``create-or-move`` creates entry or moves existing entry for <name>
503<weight> at/to location <args>.
504
505Usage::
506
507 ceph osd crush create-or-move <osdname (id|osd.id)> <float[0.0-]> <args>
508 [<args>...]
509
510Subcommand ``dump`` dumps crush map.
511
512Usage::
513
514 ceph osd crush dump
515
516Subcommand ``get-tunable`` get crush tunable straw_calc_version
517
518Usage::
519
520 ceph osd crush get-tunable straw_calc_version
521
522Subcommand ``link`` links existing entry for <name> under location <args>.
523
524Usage::
525
526 ceph osd crush link <name> <args> [<args>...]
527
528Subcommand ``move`` moves existing entry for <name> to location <args>.
529
530Usage::
531
532 ceph osd crush move <name> <args> [<args>...]
533
534Subcommand ``remove`` removes <name> from crush map (everywhere, or just at
535<ancestor>).
536
537Usage::
538
539 ceph osd crush remove <name> {<ancestor>}
540
541Subcommand ``rename-bucket`` renames buchket <srcname> to <stname>
542
543Usage::
544
545 ceph osd crush rename-bucket <srcname> <dstname>
546
547Subcommand ``reweight`` change <name>'s weight to <weight> in crush map.
548
549Usage::
550
551 ceph osd crush reweight <name> <float[0.0-]>
552
553Subcommand ``reweight-all`` recalculate the weights for the tree to
554ensure they sum correctly
555
556Usage::
557
558 ceph osd crush reweight-all
559
560Subcommand ``reweight-subtree`` changes all leaf items beneath <name>
561to <weight> in crush map
562
563Usage::
564
565 ceph osd crush reweight-subtree <name> <weight>
566
567Subcommand ``rm`` removes <name> from crush map (everywhere, or just at
568<ancestor>).
569
570Usage::
571
572 ceph osd crush rm <name> {<ancestor>}
573
574Subcommand ``rule`` is used for creating crush rules. It uses some additional
575subcommands.
576
577Subcommand ``create-erasure`` creates crush rule <name> for erasure coded pool
578created with <profile> (default default).
579
580Usage::
581
582 ceph osd crush rule create-erasure <name> {<profile>}
583
584Subcommand ``create-simple`` creates crush rule <name> to start from <root>,
585replicate across buckets of type <type>, using a choose mode of <firstn|indep>
586(default firstn; indep best for erasure pools).
587
588Usage::
589
590 ceph osd crush rule create-simple <name> <root> <type> {firstn|indep}
591
592Subcommand ``dump`` dumps crush rule <name> (default all).
593
594Usage::
595
596 ceph osd crush rule dump {<name>}
597
598Subcommand ``list`` lists crush rules.
599
600Usage::
601
602 ceph osd crush rule list
603
604Subcommand ``ls`` lists crush rules.
605
606Usage::
607
608 ceph osd crush rule ls
609
610Subcommand ``rm`` removes crush rule <name>.
611
612Usage::
613
614 ceph osd crush rule rm <name>
615
616Subcommand ``set`` used alone, sets crush map from input file.
617
618Usage::
619
620 ceph osd crush set
621
622Subcommand ``set`` with osdname/osd.id update crushmap position and weight
623for <name> to <weight> with location <args>.
624
625Usage::
626
627 ceph osd crush set <osdname (id|osd.id)> <float[0.0-]> <args> [<args>...]
628
629Subcommand ``set-tunable`` set crush tunable <tunable> to <value>. The only
630tunable that can be set is straw_calc_version.
631
632Usage::
633
634 ceph osd crush set-tunable straw_calc_version <value>
635
636Subcommand ``show-tunables`` shows current crush tunables.
637
638Usage::
639
640 ceph osd crush show-tunables
641
642Subcommand ``tree`` shows the crush buckets and items in a tree view.
643
644Usage::
645
646 ceph osd crush tree
647
648Subcommand ``tunables`` sets crush tunables values to <profile>.
649
650Usage::
651
652 ceph osd crush tunables legacy|argonaut|bobtail|firefly|hammer|optimal|default
653
654Subcommand ``unlink`` unlinks <name> from crush map (everywhere, or just at
655<ancestor>).
656
657Usage::
658
659 ceph osd crush unlink <name> {<ancestor>}
660
661Subcommand ``df`` shows OSD utilization
662
663Usage::
664
665 ceph osd df {plain|tree}
666
667Subcommand ``deep-scrub`` initiates deep scrub on specified osd.
668
669Usage::
670
671 ceph osd deep-scrub <who>
672
673Subcommand ``down`` sets osd(s) <id> [<id>...] down.
674
675Usage::
676
677 ceph osd down <ids> [<ids>...]
678
679Subcommand ``dump`` prints summary of OSD map.
680
681Usage::
682
683 ceph osd dump {<int[0-]>}
684
685Subcommand ``erasure-code-profile`` is used for managing the erasure code
686profiles. It uses some additional subcommands.
687
688Subcommand ``get`` gets erasure code profile <name>.
689
690Usage::
691
692 ceph osd erasure-code-profile get <name>
693
694Subcommand ``ls`` lists all erasure code profiles.
695
696Usage::
697
698 ceph osd erasure-code-profile ls
699
700Subcommand ``rm`` removes erasure code profile <name>.
701
702Usage::
703
704 ceph osd erasure-code-profile rm <name>
705
706Subcommand ``set`` creates erasure code profile <name> with [<key[=value]> ...]
707pairs. Add a --force at the end to override an existing profile (IT IS RISKY).
708
709Usage::
710
711 ceph osd erasure-code-profile set <name> {<profile> [<profile>...]}
712
713Subcommand ``find`` find osd <id> in the CRUSH map and shows its location.
714
715Usage::
716
717 ceph osd find <int[0-]>
718
719Subcommand ``getcrushmap`` gets CRUSH map.
720
721Usage::
722
723 ceph osd getcrushmap {<int[0-]>}
724
725Subcommand ``getmap`` gets OSD map.
726
727Usage::
728
729 ceph osd getmap {<int[0-]>}
730
731Subcommand ``getmaxosd`` shows largest OSD id.
732
733Usage::
734
735 ceph osd getmaxosd
736
737Subcommand ``in`` sets osd(s) <id> [<id>...] in.
738
739Usage::
740
741 ceph osd in <ids> [<ids>...]
742
743Subcommand ``lost`` marks osd as permanently lost. THIS DESTROYS DATA IF NO
744MORE REPLICAS EXIST, BE CAREFUL.
745
746Usage::
747
748 ceph osd lost <int[0-]> {--yes-i-really-mean-it}
749
750Subcommand ``ls`` shows all OSD ids.
751
752Usage::
753
754 ceph osd ls {<int[0-]>}
755
756Subcommand ``lspools`` lists pools.
757
758Usage::
759
760 ceph osd lspools {<int>}
761
762Subcommand ``map`` finds pg for <object> in <pool>.
763
764Usage::
765
766 ceph osd map <poolname> <objectname>
767
768Subcommand ``metadata`` fetches metadata for osd <id>.
769
770Usage::
771
772 ceph osd metadata {int[0-]} (default all)
773
774Subcommand ``out`` sets osd(s) <id> [<id>...] out.
775
776Usage::
777
778 ceph osd out <ids> [<ids>...]
779
780Subcommand ``pause`` pauses osd.
781
782Usage::
783
784 ceph osd pause
785
786Subcommand ``perf`` prints dump of OSD perf summary stats.
787
788Usage::
789
790 ceph osd perf
791
792Subcommand ``pg-temp`` set pg_temp mapping pgid:[<id> [<id>...]] (developers
793only).
794
795Usage::
796
797 ceph osd pg-temp <pgid> {<id> [<id>...]}
798
799Subcommand ``pool`` is used for managing data pools. It uses some additional
800subcommands.
801
802Subcommand ``create`` creates pool.
803
804Usage::
805
806 ceph osd pool create <poolname> <int[0-]> {<int[0-]>} {replicated|erasure}
807 {<erasure_code_profile>} {<ruleset>} {<int>}
808
809Subcommand ``delete`` deletes pool.
810
811Usage::
812
813 ceph osd pool delete <poolname> {<poolname>} {--yes-i-really-really-mean-it}
814
815Subcommand ``get`` gets pool parameter <var>.
816
817Usage::
818
819 ceph osd pool get <poolname> size|min_size|crash_replay_interval|pg_num|
820 pgp_num|crush_ruleset|auid|write_fadvise_dontneed
821
822Only for tiered pools::
823
824 ceph osd pool get <poolname> hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|
825 target_max_objects|target_max_bytes|cache_target_dirty_ratio|cache_target_dirty_high_ratio|
826 cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|
827 min_read_recency_for_promote|hit_set_grade_decay_rate|hit_set_search_last_n
828
829Only for erasure coded pools::
830
831 ceph osd pool get <poolname> erasure_code_profile
832
833Use ``all`` to get all pool parameters that apply to the pool's type::
834
835 ceph osd pool get <poolname> all
836
837Subcommand ``get-quota`` obtains object or byte limits for pool.
838
839Usage::
840
841 ceph osd pool get-quota <poolname>
842
843Subcommand ``ls`` list pools
844
845Usage::
846
847 ceph osd pool ls {detail}
848
849Subcommand ``mksnap`` makes snapshot <snap> in <pool>.
850
851Usage::
852
853 ceph osd pool mksnap <poolname> <snap>
854
855Subcommand ``rename`` renames <srcpool> to <destpool>.
856
857Usage::
858
859 ceph osd pool rename <poolname> <poolname>
860
861Subcommand ``rmsnap`` removes snapshot <snap> from <pool>.
862
863Usage::
864
865 ceph osd pool rmsnap <poolname> <snap>
866
867Subcommand ``set`` sets pool parameter <var> to <val>.
868
869Usage::
870
871 ceph osd pool set <poolname> size|min_size|crash_replay_interval|pg_num|
872 pgp_num|crush_ruleset|hashpspool|nodelete|nopgchange|nosizechange|
873 hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|debug_fake_ec_pool|
874 target_max_bytes|target_max_objects|cache_target_dirty_ratio|
875 cache_target_dirty_high_ratio|
876 cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|auid|
877 min_read_recency_for_promote|write_fadvise_dontneed|hit_set_grade_decay_rate|
878 hit_set_search_last_n
879 <val> {--yes-i-really-mean-it}
880
881Subcommand ``set-quota`` sets object or byte limit on pool.
882
883Usage::
884
885 ceph osd pool set-quota <poolname> max_objects|max_bytes <val>
886
887Subcommand ``stats`` obtain stats from all pools, or from specified pool.
888
889Usage::
890
891 ceph osd pool stats {<name>}
892
893Subcommand ``primary-affinity`` adjust osd primary-affinity from 0.0 <=<weight>
894<= 1.0
895
896Usage::
897
898 ceph osd primary-affinity <osdname (id|osd.id)> <float[0.0-1.0]>
899
900Subcommand ``primary-temp`` sets primary_temp mapping pgid:<id>|-1 (developers
901only).
902
903Usage::
904
905 ceph osd primary-temp <pgid> <id>
906
907Subcommand ``repair`` initiates repair on a specified osd.
908
909Usage::
910
911 ceph osd repair <who>
912
913Subcommand ``reweight`` reweights osd to 0.0 < <weight> < 1.0.
914
915Usage::
916
917 osd reweight <int[0-]> <float[0.0-1.0]>
918
919Subcommand ``reweight-by-pg`` reweight OSDs by PG distribution
920[overload-percentage-for-consideration, default 120].
921
922Usage::
923
924 ceph osd reweight-by-pg {<int[100-]>} {<poolname> [<poolname...]}
925 {--no-increasing}
926
927Subcommand ``reweight-by-utilization`` reweight OSDs by utilization
928[overload-percentage-for-consideration, default 120].
929
930Usage::
931
932 ceph osd reweight-by-utilization {<int[100-]>}
933 {--no-increasing}
934
935Subcommand ``rm`` removes osd(s) <id> [<id>...] in the cluster.
936
937Usage::
938
939 ceph osd rm <ids> [<ids>...]
940
941Subcommand ``scrub`` initiates scrub on specified osd.
942
943Usage::
944
945 ceph osd scrub <who>
946
947Subcommand ``set`` sets <key>.
948
949Usage::
950
951 ceph osd set full|pause|noup|nodown|noout|noin|nobackfill|
952 norebalance|norecover|noscrub|nodeep-scrub|notieragent
953
954Subcommand ``setcrushmap`` sets crush map from input file.
955
956Usage::
957
958 ceph osd setcrushmap
959
960Subcommand ``setmaxosd`` sets new maximum osd value.
961
962Usage::
963
964 ceph osd setmaxosd <int[0-]>
965
966Subcommand ``stat`` prints summary of OSD map.
967
968Usage::
969
970 ceph osd stat
971
972Subcommand ``tier`` is used for managing tiers. It uses some additional
973subcommands.
974
975Subcommand ``add`` adds the tier <tierpool> (the second one) to base pool <pool>
976(the first one).
977
978Usage::
979
980 ceph osd tier add <poolname> <poolname> {--force-nonempty}
981
982Subcommand ``add-cache`` adds a cache <tierpool> (the second one) of size <size>
983to existing pool <pool> (the first one).
984
985Usage::
986
987 ceph osd tier add-cache <poolname> <poolname> <int[0-]>
988
989Subcommand ``cache-mode`` specifies the caching mode for cache tier <pool>.
990
991Usage::
992
993 ceph osd tier cache-mode <poolname> none|writeback|forward|readonly|
994 readforward|readproxy
995
996Subcommand ``remove`` removes the tier <tierpool> (the second one) from base pool
997<pool> (the first one).
998
999Usage::
1000
1001 ceph osd tier remove <poolname> <poolname>
1002
1003Subcommand ``remove-overlay`` removes the overlay pool for base pool <pool>.
1004
1005Usage::
1006
1007 ceph osd tier remove-overlay <poolname>
1008
1009Subcommand ``set-overlay`` set the overlay pool for base pool <pool> to be
1010<overlaypool>.
1011
1012Usage::
1013
1014 ceph osd tier set-overlay <poolname> <poolname>
1015
1016Subcommand ``tree`` prints OSD tree.
1017
1018Usage::
1019
1020 ceph osd tree {<int[0-]>}
1021
1022Subcommand ``unpause`` unpauses osd.
1023
1024Usage::
1025
1026 ceph osd unpause
1027
1028Subcommand ``unset`` unsets <key>.
1029
1030Usage::
1031
1032 ceph osd unset full|pause|noup|nodown|noout|noin|nobackfill|
1033 norebalance|norecover|noscrub|nodeep-scrub|notieragent
1034
1035
1036pg
1037--
1038
1039It is used for managing the placement groups in OSDs. It uses some
1040additional subcommands.
1041
1042Subcommand ``debug`` shows debug info about pgs.
1043
1044Usage::
1045
1046 ceph pg debug unfound_objects_exist|degraded_pgs_exist
1047
1048Subcommand ``deep-scrub`` starts deep-scrub on <pgid>.
1049
1050Usage::
1051
1052 ceph pg deep-scrub <pgid>
1053
1054Subcommand ``dump`` shows human-readable versions of pg map (only 'all' valid
1055with plain).
1056
1057Usage::
1058
1059 ceph pg dump {all|summary|sum|delta|pools|osds|pgs|pgs_brief} [{all|summary|sum|delta|pools|osds|pgs|pgs_brief...]}
1060
1061Subcommand ``dump_json`` shows human-readable version of pg map in json only.
1062
1063Usage::
1064
1065 ceph pg dump_json {all|summary|sum|delta|pools|osds|pgs|pgs_brief} [{all|summary|sum|delta|pools|osds|pgs|pgs_brief...]}
1066
1067Subcommand ``dump_pools_json`` shows pg pools info in json only.
1068
1069Usage::
1070
1071 ceph pg dump_pools_json
1072
1073Subcommand ``dump_stuck`` shows information about stuck pgs.
1074
1075Usage::
1076
1077 ceph pg dump_stuck {inactive|unclean|stale|undersized|degraded [inactive|unclean|stale|undersized|degraded...]}
1078 {<int>}
1079
1080Subcommand ``force_create_pg`` forces creation of pg <pgid>.
1081
1082Usage::
1083
1084 ceph pg force_create_pg <pgid>
1085
1086Subcommand ``getmap`` gets binary pg map to -o/stdout.
1087
1088Usage::
1089
1090 ceph pg getmap
1091
1092Subcommand ``ls`` lists pg with specific pool, osd, state
1093
1094Usage::
1095
1096 ceph pg ls {<int>} {active|clean|down|replay|splitting|
1097 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1098 recovery|backfill_wait|incomplete|stale| remapped|
1099 deep_scrub|backfill|backfill_toofull|recovery_wait|
1100 undersized [active|clean|down|replay|splitting|
1101 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1102 recovery|backfill_wait|incomplete|stale|remapped|
1103 deep_scrub|backfill|backfill_toofull|recovery_wait|
1104 undersized...]}
1105
1106Subcommand ``ls-by-osd`` lists pg on osd [osd]
1107
1108Usage::
1109
1110 ceph pg ls-by-osd <osdname (id|osd.id)> {<int>}
1111 {active|clean|down|replay|splitting|
1112 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1113 recovery|backfill_wait|incomplete|stale| remapped|
1114 deep_scrub|backfill|backfill_toofull|recovery_wait|
1115 undersized [active|clean|down|replay|splitting|
1116 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1117 recovery|backfill_wait|incomplete|stale|remapped|
1118 deep_scrub|backfill|backfill_toofull|recovery_wait|
1119 undersized...]}
1120
1121Subcommand ``ls-by-pool`` lists pg with pool = [poolname]
1122
1123Usage::
1124
1125 ceph pg ls-by-pool <poolstr> {<int>} {active|
1126 clean|down|replay|splitting|
1127 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1128 recovery|backfill_wait|incomplete|stale| remapped|
1129 deep_scrub|backfill|backfill_toofull|recovery_wait|
1130 undersized [active|clean|down|replay|splitting|
1131 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1132 recovery|backfill_wait|incomplete|stale|remapped|
1133 deep_scrub|backfill|backfill_toofull|recovery_wait|
1134 undersized...]}
1135
1136Subcommand ``ls-by-primary`` lists pg with primary = [osd]
1137
1138Usage::
1139
1140 ceph pg ls-by-primary <osdname (id|osd.id)> {<int>}
1141 {active|clean|down|replay|splitting|
1142 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1143 recovery|backfill_wait|incomplete|stale| remapped|
1144 deep_scrub|backfill|backfill_toofull|recovery_wait|
1145 undersized [active|clean|down|replay|splitting|
1146 scrubbing|scrubq|degraded|inconsistent|peering|repair|
1147 recovery|backfill_wait|incomplete|stale|remapped|
1148 deep_scrub|backfill|backfill_toofull|recovery_wait|
1149 undersized...]}
1150
1151Subcommand ``map`` shows mapping of pg to osds.
1152
1153Usage::
1154
1155 ceph pg map <pgid>
1156
1157Subcommand ``repair`` starts repair on <pgid>.
1158
1159Usage::
1160
1161 ceph pg repair <pgid>
1162
1163Subcommand ``scrub`` starts scrub on <pgid>.
1164
1165Usage::
1166
1167 ceph pg scrub <pgid>
1168
1169Subcommand ``set_full_ratio`` sets ratio at which pgs are considered full.
1170
1171Usage::
1172
1173 ceph pg set_full_ratio <float[0.0-1.0]>
1174
1175Subcommand ``set_backfillfull_ratio`` sets ratio at which pgs are considered too full to backfill.
1176
1177Usage::
1178
1179 ceph pg set_backfillfull_ratio <float[0.0-1.0]>
1180
1181Subcommand ``set_nearfull_ratio`` sets ratio at which pgs are considered nearly
1182full.
1183
1184Usage::
1185
1186 ceph pg set_nearfull_ratio <float[0.0-1.0]>
1187
1188Subcommand ``stat`` shows placement group status.
1189
1190Usage::
1191
1192 ceph pg stat
1193
1194
1195quorum
1196------
1197
1198Cause MON to enter or exit quorum.
1199
1200Usage::
1201
1202 ceph quorum enter|exit
1203
1204Note: this only works on the MON to which the ``ceph`` command is connected.
1205If you want a specific MON to enter or exit quorum, use this syntax::
1206
1207 ceph tell mon.<id> quorum enter|exit
1208
1209quorum_status
1210-------------
1211
1212Reports status of monitor quorum.
1213
1214Usage::
1215
1216 ceph quorum_status
1217
1218
1219report
1220------
1221
1222Reports full status of cluster, optional title tag strings.
1223
1224Usage::
1225
1226 ceph report {<tags> [<tags>...]}
1227
1228
1229scrub
1230-----
1231
1232Scrubs the monitor stores.
1233
1234Usage::
1235
1236 ceph scrub
1237
1238
1239status
1240------
1241
1242Shows cluster status.
1243
1244Usage::
1245
1246 ceph status
1247
1248
1249sync force
1250----------
1251
1252Forces sync of and clear monitor store.
1253
1254Usage::
1255
1256 ceph sync force {--yes-i-really-mean-it} {--i-know-what-i-am-doing}
1257
1258
1259tell
1260----
1261
1262Sends a command to a specific daemon.
1263
1264Usage::
1265
1266 ceph tell <name (type.id)> <args> [<args>...]
1267
1268version
1269-------
1270
1271Show mon daemon version
1272
1273Usage::
1274
1275 ceph version
1276
1277Options
1278=======
1279
1280.. option:: -i infile
1281
1282 will specify an input file to be passed along as a payload with the
1283 command to the monitor cluster. This is only used for specific
1284 monitor commands.
1285
1286.. option:: -o outfile
1287
1288 will write any payload returned by the monitor cluster with its
1289 reply to outfile. Only specific monitor commands (e.g. osd getmap)
1290 return a payload.
1291
1292.. option:: -c ceph.conf, --conf=ceph.conf
1293
1294 Use ceph.conf configuration file instead of the default
1295 ``/etc/ceph/ceph.conf`` to determine monitor addresses during startup.
1296
1297.. option:: --id CLIENT_ID, --user CLIENT_ID
1298
1299 Client id for authentication.
1300
1301.. option:: --name CLIENT_NAME, -n CLIENT_NAME
1302
1303 Client name for authentication.
1304
1305.. option:: --cluster CLUSTER
1306
1307 Name of the Ceph cluster.
1308
1309.. option:: --admin-daemon ADMIN_SOCKET, daemon DAEMON_NAME
1310
1311 Submit admin-socket commands via admin sockets in /var/run/ceph.
1312
1313.. option:: --admin-socket ADMIN_SOCKET_NOPE
1314
1315 You probably mean --admin-daemon
1316
1317.. option:: -s, --status
1318
1319 Show cluster status.
1320
1321.. option:: -w, --watch
1322
1323 Watch live cluster changes.
1324
1325.. option:: --watch-debug
1326
1327 Watch debug events.
1328
1329.. option:: --watch-info
1330
1331 Watch info events.
1332
1333.. option:: --watch-sec
1334
1335 Watch security events.
1336
1337.. option:: --watch-warn
1338
1339 Watch warning events.
1340
1341.. option:: --watch-error
1342
1343 Watch error events.
1344
1345.. option:: --version, -v
1346
1347 Display version.
1348
1349.. option:: --verbose
1350
1351 Make verbose.
1352
1353.. option:: --concise
1354
1355 Make less verbose.
1356
1357.. option:: -f {json,json-pretty,xml,xml-pretty,plain}, --format
1358
1359 Format of output.
1360
1361.. option:: --connect-timeout CLUSTER_TIMEOUT
1362
1363 Set a timeout for connecting to the cluster.
1364
1365.. option:: --no-increasing
1366
1367 ``--no-increasing`` is off by default. So increasing the osd weight is allowed
1368 using the ``reweight-by-utilization`` or ``test-reweight-by-utilization`` commands.
1369 If this option is used with these commands, it will help not to increase osd weight
1370 even the osd is under utilized.
1371
1372
1373Availability
1374============
1375
1376:program:`ceph` is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to
1377the Ceph documentation at http://ceph.com/docs for more information.
1378
1379
1380See also
1381========
1382
1383:doc:`ceph-mon <ceph-mon>`\(8),
1384:doc:`ceph-osd <ceph-osd>`\(8),
1385:doc:`ceph-mds <ceph-mds>`\(8)