cephadm commands
The cephadm is a command line tool to manage the local host for the cephadm Orchestrator. It provides commands to investigate and modify the state of the current host.
Some of the commands are generally used for debugging.
Note:
cephadm is not required on all hosts, however, it is useful when investigating a particular daemon. The cephadm-ansible-preflight playbook installs cephadm on all hosts and the cephadm-ansible purge playbook requires cephadm be installed on all hosts to work properly.| Command | Description | Syntax | Example |
|---|---|---|---|
| adopt |
Convert an upgraded storage cluster daemon to run |
|
|
| ceph-volume | This command is used to list all the devices on the particular host. Run the ceph-volume command inside a container Deploys OSDs with different device technologies like lvm or physical disks using pluggable tools and follows a predictable, and robust way of preparing, activating, and starting OSDs. |
|
|
| check-host | Check the host configuration that is suitable for a Ceph cluster. |
|
|
| deploy | Deploys a daemon on the local host. |
|
|
| enter | Run an interactive shell inside a running daemon container. |
|
|
| help | View all the commands supported by cephadm. |
|
|
| install | Install the packages. |
|
|
| inspect-image | Inspect the local Ceph container image. |
|
|
| list-networks | List the IP networks. |
|
|
| ls | List daemon instances known to cephadm on the hosts. You can use --no-detail for the command to run faster, which gives details of the daemon name, fsid, style, and systemd unit per daemon. You can use --legacy-dir option to specify a legacy base directory to search for daemons. |
|
|
| logs | Print journald logs for a daemon container. This is similar to the journalctl command. |
|
|
| prepare-host | Prepare a host for cephadm. |
|
|
| pull | Pull the Ceph image. |
|
|
| registry-login | Give cephadm login information for an authenticated registry. cephadm attempts to log the calling host into that registry. |
You can also use a JSON registry file containing the login info formatted as:
|
|
Give cephadm login information for an authenticated registry. cephadm attempts to log the calling host into that registry. |
You can also use a JSON registry file containing the login info formatted as:
|
|
|
| rm-daemon | Removes a specific daemon instance. Use this command only for debugging or experimental purposes. If you run it directly on the host, cephadm removes the daemon, but the manager module detects the missing service and redeploys it. |
|
|
| rm-cluster | Removes all daemons from the storage cluster on the host where the command is run. If the Ceph Orchestrator is not paused and the removed daemons belong to managed services, cephadm redeploys them automatically. |
|
|
| rm-repo | Remove a package repository configuration. This is mainly used for the disconnected installation of IBM Storage Ceph. |
|
|
| run | Run a Ceph daemon, in a container, in the foreground. |
|
|
| shell | Run an interactive shell with access to Ceph commands over the inferred or specified Ceph cluster. You can enter the shell using the cephadm shell command and run all the orchestrator commands within the shell. |
|
|
| unit | Start, stop, restart, enable, and disable the daemons with this operation. This operates on the daemon’s systemd unit. |
|
|
| version | Provides the version of the storage cluster. |
|
|