CEPHADM(8) | Ceph | CEPHADM(8) |
cephadm - manage the local cephadm host
cephadm** [-h] [--image IMAGE] [--docker] [--data-dir DATA_DIR]
[--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR] [--unit-dir UNIT_DIR] [--verbose] [--timeout TIMEOUT] [--retry RETRY] [--no-container-init] {version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,unit,logs,bootstrap,deploy,check-host,prepare-host,add-repo,rm-repo,install} ...
cephadm pull
cephadm --image IMAGE_NAME inspect-image
cephadm ls [-h] [--no-detail] [--legacy-dir LEGACY_DIR]
cephadm list-networks
cephadm adopt [-h] --name NAME --style STYLE [--cluster CLUSTER]
[--legacy-dir LEGACY_DIR] [--config-json CONFIG_JSON] [--skip-firewalld] [--skip-pull]
cephadm rm-daemon [-h] --name NAME --fsid FSID [--force]
[--force-delete-data]
cephadm rm-cluster [-h] --fsid FSID [--force]
cephadm run [-h] --name NAME --fsid FSID
cephadm shell [-h] [--fsid FSID] [--name NAME] [--config CONFIG] [--keyring KEYRING] --mount [MOUNT [MOUNT ...]] [--env ENV] [--] [command [command ...]]
cephadm enter [-h] [--fsid FSID] --name NAME [command [command ...]]
cephadm ceph-volume [-h] [--fsid FSID] [--config-json CONFIG_JSON] [--config CONFIG] [--keyring KEYRING] command [command ...]
cephadm unit [-h] [--fsid FSID] --name NAME command
cephadm logs [-h] [--fsid FSID] --name NAME [command [command ...]]
cephadm bootstrap [-h] [--config CONFIG] [--mon-id MON_ID]
[--mon-addrv MON_ADDRV] [--mon-ip MON_IP] [--mgr-id MGR_ID] [--fsid FSID] [--log-to-file] [--single-host-defaults] [--output-dir OUTPUT_DIR] [--output-keyring OUTPUT_KEYRING] [--output-config OUTPUT_CONFIG] [--output-pub-ssh-key OUTPUT_PUB_SSH_KEY] [--skip-ssh] [--initial-dashboard-user INITIAL_DASHBOARD_USER] [--initial-dashboard-password INITIAL_DASHBOARD_PASSWORD] [--ssl-dashboard-port SSL_DASHBOARD_PORT] [--dashboard-key DASHBOARD_KEY] [--dashboard-crt DASHBOARD_CRT] [--ssh-config SSH_CONFIG] [--ssh-private-key SSH_PRIVATE_KEY] [--ssh-public-key SSH_PUBLIC_KEY] [--ssh-user SSH_USER] [--skip-mon-network] [--skip-dashboard] [--dashboard-password-noupdate] [--no-minimize-config] [--skip-ping-check] [--skip-pull] [--skip-firewalld] [--allow-overwrite] [--allow-fqdn-hostname] [--skip-prepare-host] [--orphan-initial-daemons] [--skip-monitoring-stack] [--apply-spec APPLY_SPEC] [--registry-url REGISTRY_URL] [--registry-username REGISTRY_USERNAME] [--registry-password REGISTRY_PASSWORD] [--registry-json REGISTRY_JSON]
cephadm deploy [-h] --name NAME --fsid FSID [--config CONFIG]
[--config-json CONFIG_JSON] [--keyring KEYRING] [--key KEY] [--osd-fsid OSD_FSID] [--skip-firewalld] [--tcp-ports TCP_PORTS] [--reconfig] [--allow-ptrace]
cephadm check-host [-h] [--expect-hostname EXPECT_HOSTNAME]
cephadm prepare-host
cephadm add-repo [-h] [--release RELEASE] [--version VERSION]
[--dev DEV] [--dev-commit DEV_COMMIT] [--gpg-url GPG_URL] [--repo-url REPO_URL]
cephadm rm-repo
cephadm install [-h] [packages [packages ...]]
cephadm registry-login [-h] [--registry-url REGISTRY_URL]
[--registry-username REGISTRY_USERNAME] [--registry-password REGISTRY_PASSWORD] [--registry-json REGISTRY_JSON] [--fsid FSID]
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.
cephadm is not required on all hosts, but useful when investigating a particular daemon.
configure local package repository to also include the ceph repository.
Arguments:
Adopt a daemon deployed with a different deployment tool.
Arguments:
Configuration:
When starting the shell, cephadm looks for configuration in the following order. Only the first values found are used:
Bootstrap a cluster on the local host. It deploys a MON and a MGR and then also automatically deploys the monitoring stack on this host (see --skip-monitoring-stack) and calls ceph orch host add $(hostname) (see --skip-ssh).
Arguments:
Run ceph-volume inside a container:
cephadm ceph-volume inventory
Positional arguments: * [command] command
Arguments:
check host configuration to be suitable for a Ceph cluster.
Arguments:
deploy a daemon on the local host. Used by the orchestrator CLI:
cephadm shell -- ceph orch apply <type> ...
Arguments:
Run an interactive shell inside a running daemon container:
cephadm enter --name mgr.myhost.ysubfo
Positional arguments: * [command] command
Arguments:
install ceph package(s)
Positional arguments:
Inspect local Ceph container image. From Reef onward, requires specifying the image to inspect with --image:
cephadm --image IMAGE_NAME inspect-image
list IP networks
list daemon instances known to cephadm on this host:
$ cephadm ls [ { "style": "cephadm:v1", "name": "mgr.storage-14b-1.ysubfo", "fsid": "5110cb22-8332-11ea-9148-0894ef7e8bdc", "enabled": true, "state": "running", "container_id": "8562de72370a3836473ecfff8a22c9ccdd99815386b4692a2b30924fb5493c44", "container_image_name": "docker.io/ceph/ceph:v15", "container_image_id": "bc83a388465f0568dab4501fb7684398dca8b50ca12a342a57f21815721723c2", "version": "15.2.1", "started": "2020-04-21T01:16:41.831456", "created": "2020-04-21T01:16:41.775024", "deployed": "2020-04-21T01:16:41.415021", "configured": "2020-04-21T01:16:41.775024" }, ...
Arguments:
print journald logs for a daemon container:
cephadm logs --name mgr.myhost.ysubfo
This is similar to:
journalctl -u mgr.myhost.ysubfo
Can also specify additional journal arguments:
cephadm logs --name mgr.myhost.ysubfo -- -n 20 # last 20 lines cephadm logs --name mgr.myhost.ysubfo -- -f # follow the log
Positional arguments:
Arguments:
prepare a host for cephadm use
Arguments:
Pull the ceph image:
cephadm pull
Give cephadm login information for an authenticated registry (url, username and password). Cephadm will attempt to log the calling host into that registry:
cephadm registry-login --registry-url [REGISTRY_URL] --registry-username [USERNAME] --registry-password [PASSWORD]
Can also use a JSON file containing the login info formatted as:
{ "url":"REGISTRY_URL", "username":"REGISTRY_USERNAME", "password":"REGISTRY_PASSWORD" }
and turn it in with command:
cephadm registry-login --registry-json [JSON FILE]
Arguments:
Remove a specific daemon instance
Arguments:
remove all daemons for a cluster
Arguments:
remove package repository configuration
run a ceph daemon, in a container, in the foreground
Arguments:
Run an interactive shell:
cephadm shell
Or one specific command inside a container:
cephadm shell -- ceph orch ls
Positional arguments:
Arguments:
Operate on the daemon's systemd unit.
Positional arguments:
Arguments:
cephadm is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to the documentation at http://docs.ceph.com/ for more information.
ceph-volume(8),
2010-2024, Inktank Storage, Inc. and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0)
April 19, 2024 | dev |