.\" Man page generated from reStructuredText. . .TH "CEPH" "8" "Mar 03, 2019" "dev" "Ceph" .SH NAME ceph \- ceph administration tool . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .nf \fBceph\fP \fBauth\fP [ \fIadd\fP | \fIcaps\fP | \fIdel\fP | \fIexport\fP | \fIget\fP | \fIget\-key\fP | \fIget\-or\-create\fP | \fIget\-or\-create\-key\fP | \fIimport\fP | \fIlist\fP | \fIprint\-key\fP | \fIprint_key\fP ] ... .fi .sp .nf \fBceph\fP \fBcompact\fP .fi .sp .nf \fBceph\fP \fBconfig\-key\fP [ \fIdel\fP | \fIexists\fP | \fIget\fP | \fIlist\fP | \fIdump\fP | \fIput\fP ] ... .fi .sp .nf \fBceph\fP \fBdaemon\fP \fI\fP | \fI\fP \fI\fP ... .fi .sp .nf \fBceph\fP \fBdaemonperf\fP \fI\fP | \fI\fP [ \fIinterval\fP [ \fIcount\fP ] ] .fi .sp .nf \fBceph\fP \fBdf\fP \fI{detail}\fP .fi .sp .nf \fBceph\fP \fBfs\fP [ \fIls\fP | \fInew\fP | \fIreset\fP | \fIrm\fP ] ... .fi .sp .nf \fBceph\fP \fBfsid\fP .fi .sp .nf \fBceph\fP \fBhealth\fP \fI{detail}\fP .fi .sp .nf \fBceph\fP \fBheap\fP [ \fIdump\fP | \fIstart_profiler\fP | \fIstop_profiler\fP | \fIrelease\fP | \fIstats\fP ] ... .fi .sp .nf \fBceph\fP \fBinjectargs\fP \fI\fP [ \fI\fP\&... ] .fi .sp .nf \fBceph\fP \fBlog\fP \fI\fP [ \fI\fP\&... ] .fi .sp .nf \fBceph\fP \fBmds\fP [ \fIcompat\fP | \fIdeactivate\fP | \fIfail\fP | \fIrm\fP | \fIrmfailed\fP | \fIset_state\fP | \fIstat\fP | \fItell\fP ] ... .fi .sp .nf \fBceph\fP \fBmon\fP [ \fIadd\fP | \fIdump\fP | \fIgetmap\fP | \fIremove\fP | \fIstat\fP ] ... .fi .sp .nf \fBceph\fP \fBmon_status\fP .fi .sp .nf \fBceph\fP \fBosd\fP [ \fIblacklist\fP | \fIblocked\-by\fP | \fIcreate\fP | \fInew\fP | \fIdeep\-scrub\fP | \fIdf\fP | \fIdown\fP | \fIdump\fP | \fIerasure\-code\-profile\fP | \fIfind\fP | \fIgetcrushmap\fP | \fIgetmap\fP | \fIgetmaxosd\fP | \fIin\fP | \fIlspools\fP | \fImap\fP | \fImetadata\fP | \fIok\-to\-stop\fP | \fIout\fP | \fIpause\fP | \fIperf\fP | \fIpg\-temp\fP | \fIforce\-create\-pg\fP | \fIprimary\-affinity\fP | \fIprimary\-temp\fP | \fIrepair\fP | \fIreweight\fP | \fIreweight\-by\-pg\fP | \fIrm\fP | \fIdestroy\fP | \fIpurge\fP | \fIsafe\-to\-destroy\fP | \fIscrub\fP | \fIset\fP | \fIsetcrushmap\fP | \fIsetmaxosd\fP | \fIstat\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 | \fIrename\-bucket\fP | \fIreweight\fP | \fIreweight\-all\fP | \fIreweight\-subtree\fP | \fIrm\fP | \fIrule\fP | \fIset\fP | \fIset\-tunable\fP | \fIshow\-tunables\fP | \fItunables\fP | \fIunlink\fP ] ... .fi .sp .nf \fBceph\fP \fBosd\fP \fBpool\fP [ \fIcreate\fP | \fIdelete\fP | \fIget\fP | \fIget\-quota\fP | \fIls\fP | \fImksnap\fP | \fIrename\fP | \fIrmsnap\fP | \fIset\fP | \fIset\-quota\fP | \fIstats\fP ] ... .fi .sp .nf \fBceph\fP \fBosd\fP \fBtier\fP [ \fIadd\fP | \fIadd\-cache\fP | \fIcache\-mode\fP | \fIremove\fP | \fIremove\-overlay\fP | \fIset\-overlay\fP ] ... .fi .sp .nf \fBceph\fP \fBpg\fP [ \fIdebug\fP | \fIdeep\-scrub\fP | \fIdump\fP | \fIdump_json\fP | \fIdump_pools_json\fP | \fIdump_stuck\fP | \fIforce_create_pg\fP | \fIgetmap\fP | \fIls\fP | \fIls\-by\-osd\fP | \fIls\-by\-pool\fP | \fIls\-by\-primary\fP | \fImap\fP | \fIrepair\fP | \fIscrub\fP | \fIset_full_ratio\fP | \fIset_nearfull_ratio\fP | \fIstat\fP ] ... .fi .sp .nf \fBceph\fP \fBquorum\fP [ \fIenter\fP | \fIexit\fP ] .fi .sp .nf \fBceph\fP \fBquorum_status\fP .fi .sp .nf \fBceph\fP \fBreport\fP { \fI\fP [ \fI...\fP ] } .fi .sp .nf \fBceph\fP \fBscrub\fP .fi .sp .nf \fBceph\fP \fBstatus\fP .fi .sp .nf \fBceph\fP \fBsync\fP \fBforce\fP {\-\-yes\-i\-really\-mean\-it} {\-\-i\-know\-what\-i\-am\-doing} .fi .sp .nf \fBceph\fP \fBtell\fP \fI [...]\fP .fi .sp .nf \fBceph\fP \fBversion\fP .fi .sp .SH DESCRIPTION .sp \fBceph\fP is a control utility which is used for manual deployment and maintenance of a Ceph cluster. It provides a diverse set of commands that allows deployment of monitors, OSDs, placement groups, MDS and overall maintenance, administration of the cluster. .SH COMMANDS .SS auth .sp Manage authentication keys. It is used for adding, removing, exporting 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 is given and/or any caps specified in the command. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth add { [...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBcaps\fP updates caps for \fBname\fP from caps specified in the command. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth caps [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdel\fP deletes all caps for \fBname\fP\&. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth del .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBexport\fP writes keyring for requested entity, or master keyring if none given. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth export {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\fP writes keyring file with requested key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth get .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\-key\fP displays requested key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth get\-key .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\-or\-create\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. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth get\-or\-create { [...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\-or\-create\-key\fP gets or adds key for \fBname\fP from system/caps pairs specified in the command. If key already exists, any given caps must match the existing caps for that key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth get\-or\-create\-key { [...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBimport\fP reads keyring from input file. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth import .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP lists authentication state. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth ls .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBprint\-key\fP displays requested key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth print\-key .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBprint_key\fP displays requested key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph auth print_key .ft P .fi .UNINDENT .UNINDENT .SS compact .sp Causes compaction of monitor\(aqs leveldb storage. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph compact .ft P .fi .UNINDENT .UNINDENT .SS config\-key .sp Manage configuration key. It uses some additional subcommands. .sp Subcommand \fBdel\fP deletes configuration key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph config\-key del .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBexists\fP checks for configuration keys existence. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph config\-key exists .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\fP gets the configuration key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph config\-key get .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBlist\fP lists configuration keys. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph config\-key ls .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump\fP dumps configuration keys and values. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph config\-key dump .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\fP puts configuration key and value. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph config\-key set {} .ft P .fi .UNINDENT .UNINDENT .SS daemon .sp Submit admin\-socket commands. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph daemon {daemon_name|socket_path} {command} ... .ft P .fi .UNINDENT .UNINDENT .sp Example: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph daemon osd.0 help .ft P .fi .UNINDENT .UNINDENT .SS daemonperf .sp Watch performance counters from a Ceph daemon. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph daemonperf {daemon_name|socket_path} [{interval} [{count}]] .ft P .fi .UNINDENT .UNINDENT .SS df .sp Show cluster\(aqs free space status. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph df {detail} .ft P .fi .UNINDENT .UNINDENT .SS features .sp Show the releases and features of all connected daemons and clients connected to the cluster, along with the numbers of them in each bucket grouped by the corresponding features/releases. Each release of Ceph supports a different set of features, expressed by the features bitmask. New cluster features require that clients support the feature, or else they are not allowed to connect to these new features. As new features or capabilities are enabled after an upgrade, older clients are prevented from connecting. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph features .ft P .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 \fBreset\fP is used for disaster recovery only: reset to a single\-MDS map .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph fs reset {\-\-yes\-i\-really\-mean\-it} .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. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph fsid .ft P .fi .UNINDENT .UNINDENT .SS health .sp Show cluster\(aqs health. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph health {detail} .ft P .fi .UNINDENT .UNINDENT .SS heap .sp Show heap usage info (available only if compiled with tcmalloc) .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph heap dump|start_profiler|stop_profiler|release|stats .ft P .fi .UNINDENT .UNINDENT .SS injectargs .sp Inject configuration arguments into monitor. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph injectargs [...] .ft P .fi .UNINDENT .UNINDENT .SS log .sp Log supplied text to the monitor log. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph log [...] .ft P .fi .UNINDENT .UNINDENT .SS mds .sp Manage metadata server configuration and administration. It uses some additional subcommands. .sp Subcommand \fBcompat\fP manages compatible features. It uses some additional subcommands. .sp Subcommand \fBrm_compat\fP removes compatible feature. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds compat rm_compat .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm_incompat\fP removes incompatible feature. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds compat rm_incompat .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBshow\fP shows mds compatibility settings. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds compat show .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdeactivate\fP stops mds. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds deactivate .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBfail\fP forces mds to status fail. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds fail .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm\fP removes inactive mds. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds rm (type.id)> .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrmfailed\fP removes failed mds. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds rmfailed .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset_state\fP sets mds state of to . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds set_state .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBstat\fP shows MDS status. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds stat .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBtell\fP sends command to particular mds. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mds tell [...] .ft P .fi .UNINDENT .UNINDENT .SS mon .sp Manage monitor configuration and administration. It uses some additional subcommands. .sp Subcommand \fBadd\fP adds new monitor named at . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mon add .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump\fP dumps formatted monmap (optionally from epoch) .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mon dump {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBgetmap\fP gets monmap. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mon getmap {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBremove\fP removes monitor named . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mon remove .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBstat\fP summarizes monitor status. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mon stat .ft P .fi .UNINDENT .UNINDENT .SS mon_status .sp Reports status of monitors. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mon_status .ft P .fi .UNINDENT .UNINDENT .SS mgr .sp Ceph manager daemon configuration and management. .sp Subcommand \fBdump\fP dumps the latest MgrMap, which describes the active and standby manager daemons. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr dump .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBfail\fP will mark a manager daemon as failed, removing it from the manager map. If it is the active manager daemon a standby will take its place. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr fail .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmodule ls\fP will list currently enabled manager modules (plugins). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr module ls .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmodule enable\fP will enable a manager module. Available modules are included in MgrMap and visible via \fBmgr dump\fP\&. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr module enable .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmodule disable\fP will disable an active manager module. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr module disable .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmetadata\fP will report metadata about all manager daemons or, if the name is specified, a single manager daemon. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr metadata [name] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBversions\fP will report a count of running daemon versions. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr versions .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBcount\-metadata\fP will report a count of any daemon metadata field. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph mgr count\-metadata .ft P .fi .UNINDENT .UNINDENT .SS osd .sp Manage OSD configuration and administration. It uses some additional subcommands. .sp Subcommand \fBblacklist\fP manage blacklisted clients. It uses some additional subcommands. .sp Subcommand \fBadd\fP add to blacklist (optionally until seconds from now) .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd blacklist add {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP show blacklisted clients .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd blacklist ls .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm\fP remove from blacklist .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd blacklist rm .ft P .fi .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 and ID). .sp This command is DEPRECATED as of the Luminous release, and will be removed in a future release. .sp Subcommand \fBnew\fP should instead be used. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd create {} {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBnew\fP can be used to create a new OSD or to recreate a previously destroyed OSD with a specific \fIid\fP\&. The new OSD will have the specified \fIuuid\fP, and the command expects a JSON file containing the base64 cephx key for auth entity \fIclient.osd.\fP, as well as optional base64 cepx key for dm\-crypt lockbox access and a dm\-crypt key. Specifying a dm\-crypt requires specifying the accompanying lockbox cephx key. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd new {} {} \-i {} .ft P .fi .UNINDENT .UNINDENT .sp The parameters JSON file is optional but if provided, is expected to maintain a form of the following format: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C { "cephx_secret": "AQBWtwhZdBO5ExAAIDyjK2Bh16ZXylmzgYYEjg==", "crush_device_class": "myclass" } .ft P .fi .UNINDENT .UNINDENT .sp Or: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C { "cephx_secret": "AQBWtwhZdBO5ExAAIDyjK2Bh16ZXylmzgYYEjg==", "cephx_lockbox_secret": "AQDNCglZuaeVCRAAYr76PzR1Anh7A0jswkODIQ==", "dmcrypt_key": "", "crush_device_class": "myclass" } .ft P .fi .UNINDENT .UNINDENT .sp Or: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C { "crush_device_class": "myclass" } .ft P .fi .UNINDENT .UNINDENT .sp The "crush_device_class" property is optional. If specified, it will set the initial CRUSH device class for the new OSD. .sp Subcommand \fBcrush\fP is used for CRUSH management. It uses some additional subcommands. .sp Subcommand \fBadd\fP adds or updates crushmap position and weight for with and location . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush add [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBadd\-bucket\fP adds no\-parent (probably root) crush bucket of type . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush add\-bucket .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBcreate\-or\-move\fP creates entry or moves existing entry for at/to location . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush create\-or\-move [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump\fP dumps crush map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush dump .ft P .fi .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: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush link [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmove\fP moves existing entry for to location . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush move [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBremove\fP removes from crush map (everywhere, or just at ). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush remove {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrename\-bucket\fP renames buchket to .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rename\-bucket .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBreweight\fP change \(aqs weight to in crush map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush reweight .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBreweight\-all\fP recalculate the weights for the tree to ensure they sum correctly .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush reweight\-all .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBreweight\-subtree\fP changes all leaf items beneath to in crush map .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush reweight\-subtree .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm\fP removes from crush map (everywhere, or just at ). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rm {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrule\fP is used for creating crush rules. It uses some additional subcommands. .sp Subcommand \fBcreate\-erasure\fP creates crush rule for erasure coded pool created with (default default). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rule create\-erasure {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBcreate\-simple\fP creates crush rule to start from , replicate across buckets of type , using a choose mode of (default firstn; indep best for erasure pools). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rule create\-simple {firstn|indep} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump\fP dumps crush rule (default all). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rule dump {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP lists crush rules. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rule ls .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm\fP removes crush rule . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush rule rm .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\fP used alone, sets crush map from input file. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush set .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\fP with osdname/osd.id update crushmap position and weight for to with location . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush set [...] .ft P .fi .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: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush show\-tunables .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBtree\fP shows the crush buckets and items in a tree view. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush tree .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBtunables\fP sets crush tunables values to . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush tunables legacy|argonaut|bobtail|firefly|hammer|optimal|default .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBunlink\fP unlinks from crush map (everywhere, or just at ). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd crush unlink {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdf\fP shows OSD utilization .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd df {plain|tree} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdeep\-scrub\fP initiates deep scrub on specified osd. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd deep\-scrub .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdown\fP sets osd(s) [...] down. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd down [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump\fP prints summary of OSD map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd dump {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBerasure\-code\-profile\fP is used for managing the erasure code profiles. It uses some additional subcommands. .sp Subcommand \fBget\fP gets erasure code profile . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd erasure\-code\-profile get .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP lists all erasure code profiles. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd erasure\-code\-profile ls .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm\fP removes erasure code profile . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd erasure\-code\-profile rm .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\fP creates erasure code profile with [ ...] pairs. Add a \-\-force at the end to override an existing profile (IT IS RISKY). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd erasure\-code\-profile set { [...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBfind\fP find osd in the CRUSH map and shows its location. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd find .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBgetcrushmap\fP gets CRUSH map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd getcrushmap {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBgetmap\fP gets OSD map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd getmap {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBgetmaxosd\fP shows largest OSD id. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd getmaxosd .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBin\fP sets osd(s) [...] in. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd in [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBlost\fP marks osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd lost {\-\-yes\-i\-really\-mean\-it} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP shows all OSD ids. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd ls {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBlspools\fP lists pools. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd lspools {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmap\fP finds pg for in . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd map .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmetadata\fP fetches metadata for osd . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd metadata {int[0\-]} (default all) .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBout\fP sets osd(s) [...] out. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd out [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBok\-to\-stop\fP checks whether the list of OSD(s) can be stopped without immediately making data unavailable. That is, all data should remain readable and writeable, although data redundancy may be reduced as some PGs may end up in a degraded (but active) state. It will return a success code if it is okay to stop the OSD(s), or an error code and informative message if it is not or if no conclusion can be drawn at the current time. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd ok\-to\-stop [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBpause\fP pauses osd. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pause .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBperf\fP prints dump of OSD perf summary stats. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd perf .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBpg\-temp\fP set pg_temp mapping pgid:[ [...]] (developers only). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pg\-temp { [...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBforce\-create\-pg\fP forces creation of pg . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd force\-create\-pg .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBpool\fP is used for managing data pools. It uses some additional subcommands. .sp Subcommand \fBcreate\fP creates pool. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool create {} {replicated|erasure} {} {} {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdelete\fP deletes pool. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool delete {} {\-\-yes\-i\-really\-really\-mean\-it} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\fP gets pool parameter . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool get size|min_size|crash_replay_interval|pg_num| pgp_num|crush_rule|auid|write_fadvise_dontneed .ft P .fi .UNINDENT .UNINDENT .sp Only for tiered pools: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool get hit_set_type|hit_set_period|hit_set_count|hit_set_fpp| target_max_objects|target_max_bytes|cache_target_dirty_ratio|cache_target_dirty_high_ratio| cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age| min_read_recency_for_promote|hit_set_grade_decay_rate|hit_set_search_last_n .ft P .fi .UNINDENT .UNINDENT .sp Only for erasure coded pools: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool get erasure_code_profile .ft P .fi .UNINDENT .UNINDENT .sp Use \fBall\fP to get all pool parameters that apply to the pool\(aqs type: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool get all .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBget\-quota\fP obtains object or byte limits for pool. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool get\-quota .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP list pools .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool ls {detail} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmksnap\fP makes snapshot in . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool mksnap .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrename\fP renames to . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool rename .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrmsnap\fP removes snapshot from . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool rmsnap .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\fP sets pool parameter to . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool set size|min_size|crash_replay_interval|pg_num| pgp_num|crush_rule|hashpspool|nodelete|nopgchange|nosizechange| 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_dirty_high_ratio| cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|auid| min_read_recency_for_promote|write_fadvise_dontneed|hit_set_grade_decay_rate| hit_set_search_last_n {\-\-yes\-i\-really\-mean\-it} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\-quota\fP sets object or byte limit on pool. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool set\-quota max_objects|max_bytes .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBstats\fP obtain stats from all pools, or from specified pool. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd pool stats {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBprimary\-affinity\fP adjust osd primary\-affinity from 0.0 <= <= 1.0 .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd primary\-affinity .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBprimary\-temp\fP sets primary_temp mapping pgid:|\-1 (developers only). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd primary\-temp .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrepair\fP initiates repair on a specified osd. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd repair .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBreweight\fP reweights osd to 0.0 < < 1.0. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C osd reweight .ft P .fi .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 {} { [} {\-\-no\-increasing} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrm\fP removes osd(s) [...] from the OSD map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd rm [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdestroy\fP marks OSD \fIid\fP as \fIdestroyed\fP, removing its cephx entity\(aqs keys and all of its dm\-crypt and daemon\-private config key entries. .sp This command will not remove the OSD from crush, nor will it remove the OSD from the OSD map. Instead, once the command successfully completes, the OSD will show marked as \fIdestroyed\fP\&. .sp In order to mark an OSD as destroyed, the OSD must first be marked as \fBlost\fP\&. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd destroy {\-\-yes\-i\-really\-mean\-it} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBpurge\fP performs a combination of \fBosd destroy\fP, \fBosd rm\fP and \fBosd crush remove\fP\&. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd purge {\-\-yes\-i\-really\-mean\-it} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBsafe\-to\-destroy\fP checks whether it is safe to remove or destroy an OSD without reducing overall data redundancy or durability. It will return a success code if it is definitely safe, or an error code and informative message if it is not or if no conclusion can be drawn at the current time. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd safe\-to\-destroy [...] .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBscrub\fP initiates scrub on specified osd. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd scrub .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\fP sets . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd set full|pause|noup|nodown|noout|noin|nobackfill| norebalance|norecover|noscrub|nodeep\-scrub|notieragent .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBsetcrushmap\fP sets crush map from input file. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd setcrushmap .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBsetmaxosd\fP sets new maximum osd value. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd setmaxosd .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\-require\-min\-compat\-client\fP enforces the cluster to be backward compatible with the specified client version. This subcommand prevents you from making any changes (e.g., crush tunables, or using new features) that would violate the current setting. Please note, This subcommand will fail if any connected daemon or client is not compatible with the features offered by the given . To see the features and releases of all clients connected to cluster, please see \fI\%ceph features\fP\&. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd set\-require\-min\-compat\-client .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBstat\fP prints summary of OSD map. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd stat .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBtier\fP is used for managing tiers. It uses some additional subcommands. .sp Subcommand \fBadd\fP adds the tier (the second one) to base pool (the first one). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tier add {\-\-force\-nonempty} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBadd\-cache\fP adds a cache (the second one) of size to existing pool (the first one). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tier add\-cache .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBcache\-mode\fP specifies the caching mode for cache tier . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tier cache\-mode none|writeback|forward|readonly| readforward|readproxy .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBremove\fP removes the tier (the second one) from base pool (the first one). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tier remove .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBremove\-overlay\fP removes the overlay pool for base pool . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tier remove\-overlay .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset\-overlay\fP set the overlay pool for base pool to be . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tier set\-overlay .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBtree\fP prints OSD tree. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd tree {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBunpause\fP unpauses osd. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd unpause .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBunset\fP unsets . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph osd unset full|pause|noup|nodown|noout|noin|nobackfill| norebalance|norecover|noscrub|nodeep\-scrub|notieragent .ft P .fi .UNINDENT .UNINDENT .SS pg .sp It is used for managing the placement groups in OSDs. It uses some additional subcommands. .sp Subcommand \fBdebug\fP shows debug info about pgs. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg debug unfound_objects_exist|degraded_pgs_exist .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdeep\-scrub\fP starts deep\-scrub on . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg deep\-scrub .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump\fP shows human\-readable versions of pg map (only \(aqall\(aq valid with plain). .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg dump {all|summary|sum|delta|pools|osds|pgs|pgs_brief} [{all|summary|sum|delta|pools|osds|pgs|pgs_brief...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump_json\fP shows human\-readable version of pg map in json only. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg dump_json {all|summary|sum|delta|pools|osds|pgs|pgs_brief} [{all|summary|sum|delta|pools|osds|pgs|pgs_brief...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump_pools_json\fP shows pg pools info in json only. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg dump_pools_json .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBdump_stuck\fP shows information about stuck pgs. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg dump_stuck {inactive|unclean|stale|undersized|degraded [inactive|unclean|stale|undersized|degraded...]} {} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBgetmap\fP gets binary pg map to \-o/stdout. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg getmap .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\fP lists pg with specific pool, osd, state .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg ls {} {active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale| remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized [active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale|remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\-by\-osd\fP lists pg on osd [osd] .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg ls\-by\-osd {} {active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale| remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized [active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale|remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\-by\-pool\fP lists pg with pool = [poolname] .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg ls\-by\-pool {} {active| clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale| remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized [active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale|remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBls\-by\-primary\fP lists pg with primary = [osd] .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg ls\-by\-primary {} {active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale| remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized [active|clean|down|replay|splitting| scrubbing|degraded|inconsistent|peering|repair| recovery|backfill_wait|incomplete|stale|remapped| deep_scrub|backfill|backfill_toofull|recovery_wait| undersized...]} .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBmap\fP shows mapping of pg to osds. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg map .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBrepair\fP starts repair on . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg repair .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBscrub\fP starts scrub on . .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg scrub .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset_full_ratio\fP sets ratio at which pgs are considered full. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg set_full_ratio .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset_backfillfull_ratio\fP sets ratio at which pgs are considered too full to backfill. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg set_backfillfull_ratio .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBset_nearfull_ratio\fP sets ratio at which pgs are considered nearly full. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg set_nearfull_ratio .ft P .fi .UNINDENT .UNINDENT .sp Subcommand \fBstat\fP shows placement group status. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph pg stat .ft P .fi .UNINDENT .UNINDENT .SS quorum .sp Cause MON to enter or exit quorum. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph quorum enter|exit .ft P .fi .UNINDENT .UNINDENT .sp Note: this only works on the MON to which the \fBceph\fP command is connected. If you want a specific MON to enter or exit quorum, use this syntax: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph tell mon. quorum enter|exit .ft P .fi .UNINDENT .UNINDENT .SS quorum_status .sp Reports status of monitor quorum. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph quorum_status .ft P .fi .UNINDENT .UNINDENT .SS report .sp Reports full status of cluster, optional title tag strings. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph report { [...]} .ft P .fi .UNINDENT .UNINDENT .SS scrub .sp Scrubs the monitor stores. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph scrub .ft P .fi .UNINDENT .UNINDENT .SS status .sp Shows cluster status. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph status .ft P .fi .UNINDENT .UNINDENT .SS sync force .sp Forces sync of and clear monitor store. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph sync force {\-\-yes\-i\-really\-mean\-it} {\-\-i\-know\-what\-i\-am\-doing} .ft P .fi .UNINDENT .UNINDENT .SS tell .sp Sends a command to a specific daemon. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph tell [...] .ft P .fi .UNINDENT .UNINDENT .sp List all available commands. .sp Usage: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ceph tell help .ft P .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 .B \-i infile will specify an input file to be passed along as a payload with the command to the monitor cluster. This is only used for specific monitor commands. .UNINDENT .INDENT 0.0 .TP .B \-o outfile will write any payload returned by the monitor cluster with its reply to outfile. Only specific monitor commands (e.g. osd getmap) return a payload. .UNINDENT .INDENT 0.0 .TP .B \-c ceph.conf, \-\-conf=ceph.conf Use ceph.conf configuration file instead of the default \fB/etc/ceph/ceph.conf\fP to determine monitor addresses during startup. .UNINDENT .INDENT 0.0 .TP .B \-\-id CLIENT_ID, \-\-user CLIENT_ID Client id for authentication. .UNINDENT .INDENT 0.0 .TP .B \-\-name CLIENT_NAME, \-n CLIENT_NAME Client name for authentication. .UNINDENT .INDENT 0.0 .TP .B \-\-cluster CLUSTER Name of the Ceph cluster. .UNINDENT .INDENT 0.0 .TP .B \-\-admin\-daemon ADMIN_SOCKET, daemon DAEMON_NAME Submit admin\-socket commands via admin sockets in /var/run/ceph. .UNINDENT .INDENT 0.0 .TP .B \-\-admin\-socket ADMIN_SOCKET_NOPE You probably mean \-\-admin\-daemon .UNINDENT .INDENT 0.0 .TP .B \-s, \-\-status Show cluster status. .UNINDENT .INDENT 0.0 .TP .B \-w, \-\-watch Watch live cluster changes. .UNINDENT .INDENT 0.0 .TP .B \-\-watch\-debug Watch debug events. .UNINDENT .INDENT 0.0 .TP .B \-\-watch\-info Watch info events. .UNINDENT .INDENT 0.0 .TP .B \-\-watch\-sec Watch security events. .UNINDENT .INDENT 0.0 .TP .B \-\-watch\-warn Watch warning events. .UNINDENT .INDENT 0.0 .TP .B \-\-watch\-error Watch error events. .UNINDENT .INDENT 0.0 .TP .B \-\-version, \-v Display version. .UNINDENT .INDENT 0.0 .TP .B \-\-verbose Make verbose. .UNINDENT .INDENT 0.0 .TP .B \-\-concise Make less verbose. .UNINDENT .INDENT 0.0 .TP .B \-f {json,json\-pretty,xml,xml\-pretty,plain}, \-\-format Format of output. .UNINDENT .INDENT 0.0 .TP .B \-\-connect\-timeout CLUSTER_TIMEOUT Set a timeout for connecting to the cluster. .UNINDENT .INDENT 0.0 .TP .B \-\-no\-increasing \fB\-\-no\-increasing\fP is off by default. So increasing the osd weight is allowed using the \fBreweight\-by\-utilization\fP or \fBtest\-reweight\-by\-utilization\fP commands. If this option is used with these commands, it will help not to increase osd weight even the osd is under utilized. .UNINDENT .SH AVAILABILITY .sp \fBceph\fP is part of Ceph, a massively scalable, open\-source, distributed storage system. Please refer to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more information. .SH SEE ALSO .sp ceph\-mon(8), ceph\-osd(8), ceph\-mds(8) .SH COPYRIGHT 2010-2019, Inktank Storage, Inc. and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0) .\" Generated by docutils manpage writer. .