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
- Cluster
Health - Crush
Node - Crush
Tree - Health
- MgrDump
- MgrMetadata
- Manager Metadata
- MgrStandby
- Mon
- MonDump
- MonHealth
- MonMap
- MonStatus
- MonTime
Checks - OsdMetadata
- PgState
- PgSummary
- Service
Health - Store
Stats - Time
Checks
Enums§
- Crush
Node Status - Extra
Probe Peer - Health
Status - Mem
- MonState
- Object
Store Meta - Object
Store Type - OsdOption
- PgStat
- Pool
Option - Round
Status
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