Module ceph_async::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§
- Manager Metadata
Enums§
Functions§
- 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.
- Check with the monitor whether a given key exists
- Ask the monitor for the value of the configuration key
- Remove a given configuration key from the monitor cluster
- Set a given configuration key in the monitor cluster
- count ceph-mgr daemons by metadata field property
- Disable a mgr module
- dump the latest MgrMap
- Enable a mgr module
- Treat the named manager daemon as failed
- List active mgr modules
- List service endpoints provided by mgr modules
- dump metadata for all daemons. Note this only works for Luminous+
- check running versions of ceph-mgr daemons
- List all the monitors in the cluster and their current rank
- Get the mon quorum
- Get the mon status
- add or update crushmap position and weight for an osd
- reweight an osd in the CRUSH map
- dump metadata for all osds
- get osd metadata for a specific osd id
- Query a ceph pool.
- Get a list of all pools in the cluster
- Set a pool value
- check if a single osd is safe to destroy/remove
- get a crush tree of all osds that have the given status
- Show mon daemon version