Module cmd

Source
Expand description

Ceph has a command system defined in https://github.com/ceph/ceph/blob/master/src/mon/MonCommands.h The cli commands mostly use this json based system. This allows you to make the exact same calls without having to shell out with std::process::Command. Many of the commands defined in this file have a simulate parameter to allow you to test without actually calling Ceph.

Structs§

AddrVec
CephMon
ClusterHealth
CrushNode
CrushTree
Health
MgrDump
MgrMetadata
Manager Metadata
MgrStandby
Mon
MonDump
MonHealth
MonMap
MonStatus
MonTimeChecks
OsdMetadata
PgState
PgSummary
ServiceHealth
StoreStats
TimeChecks

Enums§

CrushNodeStatus
ExtraProbePeer
HealthStatus
Mem
MonState
ObjectStoreMeta
ObjectStoreType
OsdOption
PgStat
PoolOption
RoundStatus

Functions§

auth_del
auth_get_key
Get a ceph-x key. The id parameter can be either a number or a string depending on the type of client so I went with string.
cluster_health
config_key_exists
Check with the monitor whether a given key exists
config_key_get
Ask the monitor for the value of the configuration key
config_key_remove
Remove a given configuration key from the monitor cluster
config_key_set
Set a given configuration key in the monitor cluster
mgr_auth_add
mgr_count_metadata
count ceph-mgr daemons by metadata field property
mgr_disable_module
Disable a mgr module
mgr_dump
dump the latest MgrMap
mgr_enable_module
Enable a mgr module
mgr_fail
Treat the named manager daemon as failed
mgr_list_modules
List active mgr modules
mgr_list_services
List service endpoints provided by mgr modules
mgr_metadata
dump metadata for all daemons. Note this only works for Luminous+
mgr_versions
check running versions of ceph-mgr daemons
mon_dump
List all the monitors in the cluster and their current rank
mon_getmap
mon_quorum
Get the mon quorum
mon_status
Get the mon status
osd_auth_add
osd_create
osd_crush_add
add or update crushmap position and weight for an osd
osd_crush_remove
osd_crush_reweight
reweight an osd in the CRUSH map
osd_metadata
dump metadata for all osds
osd_metadata_by_id
get osd metadata for a specific osd id
osd_out
osd_pool_get
Query a ceph pool.
osd_pool_ls
Get a list of all pools in the cluster
osd_pool_quota_get
osd_pool_set
Set a pool value
osd_rm
osd_safe_to_destroy
check if a single osd is safe to destroy/remove
osd_set
osd_tree
osd_tree_status
get a crush tree of all osds that have the given status
osd_unset
pg_stat
status
version
Show mon daemon version