Notice

This document is for a development version of Ceph.

alerts send

(re)send alerts immediately

Example command:
ceph alerts send
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer

balancer dump

Show an optimization plan

Example command:
ceph balancer dump my_plan
Parameters:
  • plan: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer eval

Evaluate data distribution for the current cluster or specific pool or specific plan

Example command:
ceph balancer eval my_option
Parameters:
  • option: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer eval-verbose

Evaluate data distribution for the current cluster or specific pool or specific plan (verbosely)

Example command:
ceph balancer eval-verbose my_option
Parameters:
  • option: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer execute

Execute an optimization plan

Example command:
ceph balancer execute my_plan
Parameters:
  • plan: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer ls

List all plans

Example command:
ceph balancer ls
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer mode

Set balancer mode

Example command:
ceph balancer mode none
Parameters:
  • mode: CephChoices strings=(none crush-compat upmap read upmap-read)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer off

Disable automatic balancing

Example command:
ceph balancer off
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer on

Enable automatic balancing

Example command:
ceph balancer on
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer optimize

Run optimizer to create a new plan

Example command:
ceph balancer optimize --plan=string --pools=string
Parameters:
  • plan: (string)

  • pools: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer pool add

Enable automatic balancing for specific pools

Example command:
ceph balancer pool add --pools=string
Parameters:
  • pools: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer pool ls

List automatic balancing pools Note that empty list means all existing pools will be automatic balancing targets, which is the default behaviour of balancer.

Example command:
ceph balancer pool ls
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer pool rm

Disable automatic balancing for specific pools

Example command:
ceph balancer pool rm --pools=string
Parameters:
  • pools: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer reset

Discard all optimization plans

Example command:
ceph balancer reset
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer rm

Discard an optimization plan

Example command:
ceph balancer rm my_plan
Parameters:
  • plan: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

balancer show

Show details of an optimization plan

Example command:
ceph balancer show my_plan
Parameters:
  • plan: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer status

Show balancer status

Example command:
ceph balancer status
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

balancer status detail

Show balancer status (detailed)

Example command:
ceph balancer status detail
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm

cephadm check-host

Check whether we can access and manage a remote host

Example command:
ceph cephadm check-host my_host my_addr
Parameters:
  • host: (string)

  • addr: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm clear-key

Clear cluster SSH key

Example command:
ceph cephadm clear-key
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm clear-ssh-config

Clear the ssh_config file

Example command:
ceph cephadm clear-ssh-config
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm config-check disable

Disable a specific configuration check

Example command:
ceph cephadm config-check disable my_check_name
Parameters:
  • check_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm config-check enable

Enable a specific configuration check

Example command:
ceph cephadm config-check enable my_check_name
Parameters:
  • check_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm config-check ls

List the available configuration checks and their current state

Example command:
ceph cephadm config-check ls plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm config-check status

Show whether the configuration checker feature is enabled/disabled

Example command:
ceph cephadm config-check status
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm generate-key

Generate a cluster SSH key (if not present)

Example command:
ceph cephadm generate-key
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm get-extra-ceph-conf

Get extra ceph conf that is appended

Example command:
ceph cephadm get-extra-ceph-conf
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm get-pub-key

Show SSH public key for connecting to cluster hosts

Example command:
ceph cephadm get-pub-key
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm get-signed-cert

Show SSH signed cert for connecting to cluster hosts using CA signed keys

Example command:
ceph cephadm get-signed-cert
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm get-ssh-config

Returns the ssh config as used by cephadm

Example command:
ceph cephadm get-ssh-config
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm get-user

Show user for SSHing to cluster hosts

Example command:
ceph cephadm get-user
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm osd activate

Start OSD containers for existing OSDs

Example command:
ceph cephadm osd activate --host=string
Parameters:
  • host: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm prepare-host

Prepare a remote host for use with cephadm

Example command:
ceph cephadm prepare-host my_host my_addr
Parameters:
  • host: (string)

  • addr: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm registry-login

Set custom registry login info by providing url, username and password or json file with login info (-i <file>)

Example command:
ceph cephadm registry-login my_url my_username my_password
Parameters:
  • url: (string)

  • username: (string)

  • password: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm set-extra-ceph-conf

Text that is appended to all daemon’s ceph.conf. Mainly a workaround, till config generate-minimal-conf generates a complete ceph.conf. Warning: this is a dangerous operation.

Example command:
ceph cephadm set-extra-ceph-conf
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm set-priv-key

Set cluster SSH private key (use -i <private_key>)

Example command:
ceph cephadm set-priv-key
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm set-pub-key

Set cluster SSH public key (use -i <public_key>)

Example command:
ceph cephadm set-pub-key
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm set-signed-cert

Set a signed cert if CA signed keys are being used (use -i <cert_filename>)

Example command:
ceph cephadm set-signed-cert
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm set-ssh-config

Set the ssh_config file (use -i <ssh_config>)

Example command:
ceph cephadm set-ssh-config
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

cephadm set-user

Set user for SSHing to cluster hosts, passwordless sudo will be needed for non-root users

Example command:
ceph cephadm set-user my_user
Parameters:
  • user: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

cephadm systemd-unit ls

Example command:
ceph cephadm systemd-unit ls my_hostname my_daemon_type my_daemon_id
Parameters:
  • hostname: (string)

  • daemon_type: (string)

  • daemon_id: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

count

Do some counting

Example command:
ceph count 1
Parameters:
  • num: CephInt

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

crash

crash archive

Acknowledge a crash and silence health warning(s)

Example command:
ceph crash archive my_id
Parameters:
  • id: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

crash archive-all

Acknowledge all new crashes and silence health warning(s)

Example command:
ceph crash archive-all
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

crash info

show crash dump metadata

Example command:
ceph crash info my_id
Parameters:
  • id: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

crash json_report

Crashes in the last <hours> hours

Example command:
ceph crash json_report 1
Parameters:
  • hours: CephInt

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

crash ls

Show new and archived crash dumps

Example command:
ceph crash ls my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

crash ls-new

Show new crash dumps

Example command:
ceph crash ls-new my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

crash post

Add a crash dump (use -i <jsonfile>)

Example command:
ceph crash post
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

crash prune

Remove crashes older than <keep> days

Example command:
ceph crash prune 1
Parameters:
  • keep: CephInt

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

crash rm

Remove a saved crash <id>

Example command:
ceph crash rm my_id
Parameters:
  • id: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

crash stat

Summarize recorded crashes

Example command:
ceph crash stat
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard

dashboard ac-role-add-scope-perms

Add the scope permissions for a role

Example command:
ceph dashboard ac-role-add-scope-perms --rolename=string
  --scopename=string --permissions=string
Parameters:
  • rolename: (string)

  • scopename: (string)

  • permissions: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-role-create

Create a new access control role

Example command:
ceph dashboard ac-role-create my_rolename my_description
Parameters:
  • rolename: (string)

  • description: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-role-del-scope-perms

Delete the scope permissions for a role

Example command:
ceph dashboard ac-role-del-scope-perms my_rolename my_scopename
Parameters:
  • rolename: (string)

  • scopename: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-role-delete

Delete an access control role

Example command:
ceph dashboard ac-role-delete my_rolename
Parameters:
  • rolename: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-role-show

Show role info

Example command:
ceph dashboard ac-role-show my_rolename
Parameters:
  • rolename: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard ac-user-add-roles

Add roles to user

Example command:
ceph dashboard ac-user-add-roles --username=string --roles=string
Parameters:
  • username: (string)

  • roles: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-create

Create a user. Password read from -i <file>

Example command:
ceph dashboard ac-user-create --username=string --rolename=string
  --name=string --email=string --enabled --force_password
  --pwd_expiration_date=1 --pwd_update_required
Parameters:
  • username: (string)

  • rolename: (string)

  • name: (string)

  • email: (string)

  • --enabled: CephBool

  • --force_password: CephBool

  • --pwd_expiration_date: CephInt

  • --pwd_update_required: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-del-roles

Delete roles from user

Example command:
ceph dashboard ac-user-del-roles --username=string --roles=string
Parameters:
  • username: (string)

  • roles: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-delete

Delete user

Example command:
ceph dashboard ac-user-delete my_username
Parameters:
  • username: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-disable

Disable a user

Example command:
ceph dashboard ac-user-disable my_username
Parameters:
  • username: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-enable

Enable a user

Example command:
ceph dashboard ac-user-enable my_username
Parameters:
  • username: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-set-info

Set user info

Example command:
ceph dashboard ac-user-set-info my_username my_name my_email
Parameters:
  • username: (string)

  • name: (string)

  • email: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-set-password

Set user password from -i <file>

Example command:
ceph dashboard ac-user-set-password my_username --force_password
Parameters:
  • username: (string)

  • --force_password: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-set-password-hash

Set user password bcrypt hash from -i <file>

Example command:
ceph dashboard ac-user-set-password-hash my_username
Parameters:
  • username: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-set-roles

Set user roles

Example command:
ceph dashboard ac-user-set-roles --username=string --roles=string
Parameters:
  • username: (string)

  • roles: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard ac-user-show

Show user info

Example command:
ceph dashboard ac-user-show my_username
Parameters:
  • username: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard create-self-signed-cert

Example command:
ceph dashboard create-self-signed-cert
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard debug

Control and report debug status in Ceph-Dashboard

Example command:
ceph dashboard debug enable
Parameters:
  • action: CephChoices strings=(enable disable status)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

dashboard feature

Enable or disable features in Ceph-Mgr Dashboard

Example command:
ceph dashboard feature --action=enable --features=rbd
Parameters:
  • action: CephChoices strings=(enable disable status)

  • features: CephChoices strings=(rbd mirroring iscsi cephfs rgw nfs dashboard) (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

dashboard get-cross-origin-url

Example command:
ceph dashboard get-cross-origin-url
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard get-login-banner

Get the custom login banner text

Example command:
ceph dashboard get-login-banner
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard iscsi-gateway-add

Add iSCSI gateway configuration. Gateway URL read from -i <file>

Example command:
ceph dashboard iscsi-gateway-add my_name
Parameters:
  • name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard iscsi-gateway-list

List iSCSI gateways

Example command:
ceph dashboard iscsi-gateway-list
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard iscsi-gateway-rm

Remove iSCSI gateway configuration

Example command:
ceph dashboard iscsi-gateway-rm my_name
Parameters:
  • name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard motd clear

Example command:
ceph dashboard motd clear
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

dashboard motd get

Example command:
ceph dashboard motd get
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

dashboard motd set

Example command:
ceph dashboard motd set info my_expires my_message
Parameters:
  • severity: CephChoices strings=(info warning danger)

  • expires: (string)

  • message: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

dashboard nvmeof-gateway-add

Add NVMe-oF gateway configuration. Gateway URL read from -i <file>

Example command:
ceph dashboard nvmeof-gateway-add my_name my_group my_daemon_name
Parameters:
  • name: (string)

  • group: (string)

  • daemon_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard nvmeof-gateway-list

List NVMe-oF gateways

Example command:
ceph dashboard nvmeof-gateway-list
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard nvmeof-gateway-rm

Remove NVMe-oF gateway configuration

Example command:
ceph dashboard nvmeof-gateway-rm my_name my_daemon_name
Parameters:
  • name: (string)

  • daemon_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard rm-cross-origin-url

Example command:
ceph dashboard rm-cross-origin-url my_value
Parameters:
  • value: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

dashboard set-cross-origin-url

Example command:
ceph dashboard set-cross-origin-url my_value
Parameters:
  • value: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard set-login-banner

Set the custom login banner read from -i <file>

Example command:
ceph dashboard set-login-banner
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard set-login-credentials

Set the login credentials. Password read from -i <file>

Example command:
ceph dashboard set-login-credentials my_username
Parameters:
  • username: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard set-rgw-credentials

Example command:
ceph dashboard set-rgw-credentials
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard set-rgw-hostname

Example command:
ceph dashboard set-rgw-hostname my_daemon_name my_hostname
Parameters:
  • daemon_name: (string)

  • hostname: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard set-ssl-certificate

Example command:
ceph dashboard set-ssl-certificate my_mgr_id
Parameters:
  • mgr_id: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard set-ssl-certificate-key

Example command:
ceph dashboard set-ssl-certificate-key my_mgr_id
Parameters:
  • mgr_id: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard sso enable oauth2

Example command:
ceph dashboard sso enable oauth2 my_roles_path
Parameters:
  • roles_path: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard unset-login-banner

Unset the custom login banner

Example command:
ceph dashboard unset-login-banner
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

dashboard unset-rgw-hostname

Example command:
ceph dashboard unset-rgw-hostname my_daemon_name
Parameters:
  • daemon_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

device

device check-health

Check life expectancy of devices

Example command:
ceph device check-health
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

device get-health-metrics

Show stored device metrics for the device

Example command:
ceph device get-health-metrics my_devid my_sample
Parameters:
  • devid: (string)

  • sample: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

device light

Enable or disable the device light. Default type is ident ‘Usage: device light (on|off) <devid> [ident|fault] [--force]’

Example command:
ceph device light --enable=on --devid=string --light_type=ident
  --force
Parameters:
  • enable: CephChoices strings=(on off)

  • devid: (string)

  • light_type: CephChoices strings=(ident fault)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

device ls-lights

List currently active device indicator lights

Example command:
ceph device ls-lights
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

device monitoring off

Disable device health monitoring

Example command:
ceph device monitoring off
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

device monitoring on

Enable device health monitoring

Example command:
ceph device monitoring on
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

device predict-life-expectancy

Predict life expectancy with local predictor

Example command:
ceph device predict-life-expectancy my_devid
Parameters:
  • devid: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

device query-daemon-health-metrics

Get device health metrics for a given daemon

Example command:
ceph device query-daemon-health-metrics string
Parameters:
  • who: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

device scrape-daemon-health-metrics

Scrape and store device health metrics for a given daemon

Example command:
ceph device scrape-daemon-health-metrics string
Parameters:
  • who: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

device scrape-health-metrics

Scrape and store device health metrics

Example command:
ceph device scrape-health-metrics my_devid
Parameters:
  • devid: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

feedback

feedback delete api-key

Delete Ceph Issue Tracker API key

Example command:
ceph feedback delete api-key
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

feedback get api-key

Get Ceph Issue Tracker API key

Example command:
ceph feedback get api-key
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

feedback issue list

Fetch issue list

Example command:
ceph feedback issue list
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

feedback issue report

Create an issue

Example command:
ceph feedback issue report --project=string --tracker=string
  --subject=string --description=string
Parameters:
  • project: (string)

  • tracker: (string)

  • subject: (string)

  • description: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

feedback set api-key

Set Ceph Issue Tracker API key

Example command:
ceph feedback set api-key my_key
Parameters:
  • key: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs

fs clone cancel

Cancel an pending or ongoing clone operation.

Example command:
ceph fs clone cancel my_vol_name my_clone_name my_group_name
Parameters:
  • vol_name: (string)

  • clone_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs clone status

Get status on a cloned subvolume.

Example command:
ceph fs clone status my_vol_name my_clone_name my_group_name
Parameters:
  • vol_name: (string)

  • clone_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs perf stats

retrieve ceph fs performance stats

Example command:
ceph fs perf stats my_mds_rank my_client_id my_client_ip
Parameters:
  • mds_rank: (string)

  • client_id: (string)

  • client_ip: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs quiesce --

Manage quiesce sets of subvolumes

Example command:
ceph fs quiesce -- --vol_name=string --members=string --set_id=string
  --timeout=0 --expiration=0 --await_for=0 --await --if_version=0
  --include --exclude --reset --release --query --all --cancel
  --group_name=string --leader --with_leader=0
Parameters:
  • vol_name: (string)

  • members: (can be repeated)

  • set_id: (string)

  • timeout: CephFloat range= 0

  • expiration: CephFloat range= 0

  • await_for: CephFloat range= 0

  • await: CephBool

  • if_version: CephInt range= 0

  • include: CephBool

  • exclude: CephBool

  • reset: CephBool

  • release: CephBool

  • query: CephBool

  • all: CephBool

  • cancel: CephBool

  • group_name: (string)

  • leader: CephBool

  • with_leader: CephInt range= 0

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs snap-schedule activate

Activate a snapshot schedule for <path>

Example command:
ceph fs snap-schedule activate --path=string --repeat=string
  --start=string --fs=string --subvol=string --group=string
Parameters:
  • path: (string)

  • repeat: (string)

  • start: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snap-schedule add

Set a snapshot schedule for <path>

Example command:
ceph fs snap-schedule add --path=string --snap_schedule=string
  --start=string --fs=string --subvol=string --group=string
Parameters:
  • path: (string)

  • snap_schedule: (string)

  • start: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snap-schedule deactivate

Deactivate a snapshot schedule for <path>

Example command:
ceph fs snap-schedule deactivate --path=string --repeat=string
  --start=string --fs=string --subvol=string --group=string
Parameters:
  • path: (string)

  • repeat: (string)

  • start: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snap-schedule list

Get current snapshot schedule for <path>

Example command:
ceph fs snap-schedule list --path=string --recursive --fs=string
  --subvol=string --group=string --format=string
Parameters:
  • path: (string)

  • --recursive: CephBool

  • --fs: (string)

  • --subvol: (string)

  • --group: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs snap-schedule remove

Remove a snapshot schedule for <path>

Example command:
ceph fs snap-schedule remove --path=string --repeat=string
  --start=string --fs=string --subvol=string --group=string
Parameters:
  • path: (string)

  • repeat: (string)

  • start: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snap-schedule retention add

Set a retention specification for <path>

Example command:
ceph fs snap-schedule retention add --path=string
  --retention_spec_or_period=string --retention_count=string --fs=string
  --subvol=string --group=string
Parameters:
  • path: (string)

  • retention_spec_or_period: (string)

  • retention_count: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snap-schedule retention remove

Remove a retention specification for <path>

Example command:
ceph fs snap-schedule retention remove --path=string
  --retention_spec_or_period=string --retention_count=string --fs=string
  --subvol=string --group=string
Parameters:
  • path: (string)

  • retention_spec_or_period: (string)

  • retention_count: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snap-schedule status

List current snapshot schedules

Example command:
ceph fs snap-schedule status --path=string --fs=string --subvol=string
  --group=string --format=string
Parameters:
  • path: (string)

  • fs: (string)

  • subvol: (string)

  • group: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs snapshot mirror add

Add a directory for snapshot mirroring

Example command:
ceph fs snapshot mirror add my_fs_name my_path
Parameters:
  • fs_name: (string)

  • path: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror daemon status

Get mirror daemon status

Example command:
ceph fs snapshot mirror daemon status my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs snapshot mirror dirmap

Get current mirror instance map for a directory

Example command:
ceph fs snapshot mirror dirmap my_fs_name my_path
Parameters:
  • fs_name: (string)

  • path: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs snapshot mirror disable

Disable snapshot mirroring for a filesystem

Example command:
ceph fs snapshot mirror disable my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror enable

Enable snapshot mirroring for a filesystem

Example command:
ceph fs snapshot mirror enable my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror ls

List the snapshot mirrored directories

Example command:
ceph fs snapshot mirror ls my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs snapshot mirror peer_add

Add a remote filesystem peer

Example command:
ceph fs snapshot mirror peer_add --fs_name=string
  --remote_cluster_spec=string --remote_fs_name=string
  --remote_mon_host=string --cephx_key=string
Parameters:
  • fs_name: (string)

  • remote_cluster_spec: (string)

  • remote_fs_name: (string)

  • remote_mon_host: (string)

  • cephx_key: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror peer_bootstrap create

Bootstrap a filesystem peer

Example command:
ceph fs snapshot mirror peer_bootstrap create my_fs_name
  my_client_name my_site_name
Parameters:
  • fs_name: (string)

  • client_name: (string)

  • site_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror peer_bootstrap import

Import a bootstrap token

Example command:
ceph fs snapshot mirror peer_bootstrap import my_fs_name my_token
Parameters:
  • fs_name: (string)

  • token: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror peer_list

List configured peers for a file system

Example command:
ceph fs snapshot mirror peer_list my_fs_name my_format
Parameters:
  • fs_name: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs snapshot mirror peer_remove

Remove a filesystem peer

Example command:
ceph fs snapshot mirror peer_remove my_fs_name my_peer_uuid
Parameters:
  • fs_name: (string)

  • peer_uuid: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror remove

Remove a snapshot mirrored directory

Example command:
ceph fs snapshot mirror remove my_fs_name my_path
Parameters:
  • fs_name: (string)

  • path: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

fs snapshot mirror show distribution

Get current instance to directory map for a filesystem

Example command:
ceph fs snapshot mirror show distribution my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs status

Show the status of a CephFS filesystem

Example command:
ceph fs status my_fs my_format
Parameters:
  • fs: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume authorize

Allow a cephx auth ID access to a subvolume

Example command:
ceph fs subvolume authorize --vol_name=string --sub_name=string
  --auth_id=string --group_name=string --access_level=string
  --tenant_id=string --allow_existing_id
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • auth_id: (string)

  • group_name: (string)

  • access_level: (string)

  • tenant_id: (string)

  • allow_existing_id: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume authorized_list

List auth IDs that have access to a subvolume

Example command:
ceph fs subvolume authorized_list my_vol_name my_sub_name
  my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume charmap get

Get charmap settings for subvolumegroup

Example command:
ceph fs subvolume charmap get --vol_name=string --sub_name=string
  --setting=casesensitive --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • setting: CephChoices strings=(casesensitive normalization encoding)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume charmap rm

Remove charmap settings for subvolume

Example command:
ceph fs subvolume charmap rm my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume charmap set

Set charmap settings for subvolumegroup

Example command:
ceph fs subvolume charmap set --vol_name=string --sub_name=string
  --setting=casesensitive --value=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • setting: CephChoices strings=(casesensitive normalization encoding)

  • value: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume create

Create a CephFS subvolume in a volume, and optionally, with a specific size (in bytes), a specific data pool layout, a specific mode, in a specific subvolume group and in separate RADOS namespace

Example command:
ceph fs subvolume create --vol_name=string --sub_name=string --size=1
  --group_name=string --pool_layout=string --uid=1 --gid=1 --mode=string
  --namespace_isolated --earmark=string --normalization=nfd
  --casesensitive --enctag=string
Parameters:
  • vol_name: (string)

  • sub_name: goodchars= [A-Za-z0-9-_.]

  • size: CephInt

  • group_name: (string)

  • pool_layout: (string)

  • uid: CephInt

  • gid: CephInt

  • mode: (string)

  • namespace_isolated: CephBool

  • earmark: (string)

  • normalization: CephChoices strings=(nfd nfc nfkd nfkc)

  • casesensitive: CephBool

  • enctag: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume deauthorize

Deny a cephx auth ID access to a subvolume

Example command:
ceph fs subvolume deauthorize --vol_name=string --sub_name=string
  --auth_id=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • auth_id: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume earmark get

Get earmark for a subvolume

Example command:
ceph fs subvolume earmark get my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume earmark rm

Remove earmark from a subvolume

Example command:
ceph fs subvolume earmark rm my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume earmark set

Set earmark for a subvolume

Example command:
ceph fs subvolume earmark set --vol_name=string --sub_name=string
  --earmark=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • earmark: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume enctag get

Get encryption tag for a subvolume

Example command:
ceph fs subvolume enctag get my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume enctag rm

Remove encryption tag from a subvolume

Example command:
ceph fs subvolume enctag rm my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume enctag set

Set encryption tag for a subvolume

Example command:
ceph fs subvolume enctag set --vol_name=string --sub_name=string
  --enctag=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • enctag: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume evict

Evict clients based on auth IDs and subvolume mounted

Example command:
ceph fs subvolume evict --vol_name=string --sub_name=string
  --auth_id=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • auth_id: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume exist

Check a volume for the existence of a subvolume, optionally in a specified subvolume group

Example command:
ceph fs subvolume exist my_vol_name my_group_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume getpath

Get the mountpath of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume getpath my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume info

Get the information of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume info my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume ls

List subvolumes

Example command:
ceph fs subvolume ls my_vol_name my_group_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume metadata get

Get custom metadata associated with the key of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume metadata get --vol_name=string --sub_name=string
  --key_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • key_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume metadata ls

List custom metadata (key-value pairs) of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume metadata ls my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume metadata rm

Remove custom metadata (key-value) associated with the key of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume metadata rm --vol_name=string --sub_name=string
  --key_name=string --group_name=string --force
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • key_name: (string)

  • group_name: (string)

  • force: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume metadata set

Set custom metadata (key-value) for a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume metadata set --vol_name=string --sub_name=string
  --key_name=string --value=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • key_name: (string)

  • value: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume pin

Set MDS pinning policy for subvolume

Example command:
ceph fs subvolume pin --vol_name=string --sub_name=string
  --pin_type=export --pin_setting=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • pin_type: CephChoices strings=(export distributed random)

  • pin_setting: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume resize

Resize a CephFS subvolume

Example command:
ceph fs subvolume resize --vol_name=string --sub_name=string
  --new_size=string --group_name=string --no_shrink
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • new_size: (string)

  • group_name: (string)

  • no_shrink: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume rm

Delete a CephFS subvolume in a volume, and optionally, in a specific subvolume group, force deleting a cancelled or failed clone, and retaining existing subvolume snapshots

Example command:
ceph fs subvolume rm --vol_name=string --sub_name=string
  --group_name=string --force --retain_snapshots
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

  • force: CephBool

  • retain_snapshots: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot clone

Clone a snapshot to target subvolume

Example command:
ceph fs subvolume snapshot clone --vol_name=string --sub_name=string
  --snap_name=string --target_sub_name=string --pool_layout=string
  --group_name=string --target_group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • target_sub_name: (string)

  • pool_layout: (string)

  • group_name: (string)

  • target_group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot create

Create a snapshot of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot create --vol_name=string --sub_name=string
  --snap_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot getpath

Get path for a snapshot of a CephFS subvolume located in a specific volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot getpath --vol_name=string --sub_name=string
  --snap_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume snapshot info

Get the information of a CephFS subvolume snapshot and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot info --vol_name=string --sub_name=string
  --snap_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume snapshot ls

List subvolume snapshots

Example command:
ceph fs subvolume snapshot ls my_vol_name my_sub_name my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume snapshot metadata get

Get custom metadata associated with the key of a CephFS subvolume snapshot in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot metadata get --vol_name=string
  --sub_name=string --snap_name=string --key_name=string
  --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • key_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume snapshot metadata ls

List custom metadata (key-value pairs) of a CephFS subvolume snapshot in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot metadata ls --vol_name=string
  --sub_name=string --snap_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolume snapshot metadata rm

Remove custom metadata (key-value) associated with the key of a CephFS subvolume snapshot in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot metadata rm --vol_name=string
  --sub_name=string --snap_name=string --key_name=string
  --group_name=string --force
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • key_name: (string)

  • group_name: (string)

  • force: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot metadata set

Set custom metadata (key-value) for a CephFS subvolume snapshot in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot metadata set --vol_name=string
  --sub_name=string --snap_name=string --key_name=string --value=string
  --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • key_name: (string)

  • value: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot protect

(deprecated) Protect snapshot of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot protect --vol_name=string --sub_name=string
  --snap_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot rm

Delete a snapshot of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot rm --vol_name=string --sub_name=string
  --snap_name=string --group_name=string --force
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

  • force: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot unprotect

(deprecated) Unprotect a snapshot of a CephFS subvolume in a volume, and optionally, in a specific subvolume group

Example command:
ceph fs subvolume snapshot unprotect --vol_name=string
  --sub_name=string --snap_name=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • snap_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot_visibility get

Get snapdir visibility for subvolume

Example command:
ceph fs subvolume snapshot_visibility get my_vol_name my_sub_name
  my_group_name
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolume snapshot_visibility set

Set snapdir visibility for subvolume

Example command:
ceph fs subvolume snapshot_visibility set --vol_name=string
  --sub_name=string --value=string --group_name=string
Parameters:
  • vol_name: (string)

  • sub_name: (string)

  • value: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup charmap get

Get charmap settings for subvolumegroup

Example command:
ceph fs subvolumegroup charmap get my_vol_name my_group_name
  casesensitive
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • setting: CephChoices strings=(casesensitive normalization encoding)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup charmap rm

Remove charmap settings for subvolumegroup

Example command:
ceph fs subvolumegroup charmap rm my_vol_name my_group_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup charmap set

Set charmap settings for subvolumegroup

Example command:
ceph fs subvolumegroup charmap set --vol_name=string
  --group_name=string --setting=casesensitive --value=string
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • setting: CephChoices strings=(casesensitive normalization encoding)

  • value: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup create

Create a CephFS subvolume group in a volume, and optionally, with a specific data pool layout, and a specific numeric mode

Example command:
ceph fs subvolumegroup create --vol_name=string --group_name=string
  --size=1 --pool_layout=string --uid=1 --gid=1 --mode=string
  --normalization=nfd --casesensitive
Parameters:
  • vol_name: (string)

  • group_name: goodchars= [A-Za-z0-9-_.]

  • size: CephInt

  • pool_layout: (string)

  • uid: CephInt

  • gid: CephInt

  • mode: (string)

  • normalization: CephChoices strings=(nfd nfc nfkd nfkc)

  • casesensitive: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup exist

Check a volume for the existence of subvolumegroup

Example command:
ceph fs subvolumegroup exist my_vol_name
Parameters:
  • vol_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolumegroup getpath

Get the mountpath of a CephFS subvolume group in a volume

Example command:
ceph fs subvolumegroup getpath my_vol_name my_group_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolumegroup info

Get the metadata of a CephFS subvolume group in a volume,

Example command:
ceph fs subvolumegroup info my_vol_name my_group_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolumegroup ls

List subvolumegroups

Example command:
ceph fs subvolumegroup ls my_vol_name
Parameters:
  • vol_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolumegroup pin

Set MDS pinning policy for subvolumegroup

Example command:
ceph fs subvolumegroup pin --vol_name=string --group_name=string
  --pin_type=export --pin_setting=string
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • pin_type: CephChoices strings=(export distributed random)

  • pin_setting: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup resize

Resize a CephFS subvolume group

Example command:
ceph fs subvolumegroup resize --vol_name=string --group_name=string
  --new_size=string --no_shrink
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • new_size: (string)

  • no_shrink: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup rm

Delete a CephFS subvolume group in a volume

Example command:
ceph fs subvolumegroup rm my_vol_name my_group_name --force
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • force: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup snapshot create

Create a snapshot of a CephFS subvolume group in a volume

Example command:
ceph fs subvolumegroup snapshot create my_vol_name my_group_name
  my_snap_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • snap_name: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs subvolumegroup snapshot ls

List subvolumegroup snapshots

Example command:
ceph fs subvolumegroup snapshot ls my_vol_name my_group_name
Parameters:
  • vol_name: (string)

  • group_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs subvolumegroup snapshot rm

Delete a snapshot of a CephFS subvolume group in a volume

Example command:
ceph fs subvolumegroup snapshot rm --vol_name=string
  --group_name=string --snap_name=string --force
Parameters:
  • vol_name: (string)

  • group_name: (string)

  • snap_name: (string)

  • force: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs volume create

Create a CephFS volume

Example command:
ceph fs volume create --name=string --placement=string
  --meta_pool=string --data_pool=string
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • placement: (string)

  • meta_pool: goodchars= [A-Za-z0-9-_.]

  • data_pool: goodchars= [A-Za-z0-9-_.]

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs volume info

Get the information of a CephFS volume

Example command:
ceph fs volume info my_vol_name --human_readable
Parameters:
  • vol_name: (string)

  • human_readable: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs volume ls

List volumes

Example command:
ceph fs volume ls
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

fs volume rename

Rename a CephFS volume by passing --yes-i-really-mean-it flag

Example command:
ceph fs volume rename my_vol_name my_new_vol_name
  --yes_i_really_mean_it
Parameters:
  • vol_name: goodchars= [A-Za-z0-9-_.]

  • new_vol_name: goodchars= [A-Za-z0-9-_.]

  • yes_i_really_mean_it: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

fs volume rm

Delete a FS volume by passing --yes-i-really-mean-it flag

Example command:
ceph fs volume rm my_vol_name my_yes-i-really-mean-it
Parameters:
  • vol_name: (string)

  • yes-i-really-mean-it: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

healthcheck

healthcheck history clear

Clear the healthcheck history

Example command:
ceph healthcheck history clear
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

healthcheck history ls

List all the healthchecks being tracked The format options are parsed in ceph_argparse, before they get evaluated here so we can safely assume that what we have to process is valid. ceph_argparse will throw a ValueError if the cast to our Format class fails. Args: format (Format, optional): output format. Defaults to Format.plain. Returns: HandleCommandResult: return code, stdout and stderr returned to the caller

Example command:
ceph healthcheck history ls plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

hello

Say hello

Example command:
ceph hello my_person_name
Parameters:
  • person_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

influx

influx config-set

Example command:
ceph influx config-set my_key my_value
Parameters:
  • key: (string)

  • value: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

influx config-show

Show current configuration

Example command:
ceph influx config-show
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

influx send

Force sending data to Influx

Example command:
ceph influx send
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

insights

insights

Retrieve insights report

Example command:
ceph insights
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

insights prune-health

Remove health history older than <hours> hours

Example command:
ceph insights prune-health 1
Parameters:
  • hours: CephInt

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

iostat

Get IO rates

Example command:
ceph iostat 1 --print_header
Parameters:
  • width: CephInt

  • --print_header: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

k8sevents

k8sevents ceph

List Ceph events tracked & sent to the kubernetes cluster

Example command:
ceph k8sevents ceph
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

k8sevents clear-config

Clear external kubernetes configuration settings

Example command:
ceph k8sevents clear-config
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

k8sevents ls

List all current Kuberenetes events from the Ceph namespace

Example command:
ceph k8sevents ls
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

k8sevents set-access

Set kubernetes access credentials. <key> must be cacrt or token and use -i <filename> syntax (e.g., ceph k8sevents set-access cacrt -i /root/ca.crt).

Example command:
ceph k8sevents set-access my_key
Parameters:
  • key: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

k8sevents set-config

Set kubernetes config paramters. <key> must be server or namespace (e.g., ceph k8sevents set-config server https://localhost:30433).

Example command:
ceph k8sevents set-config my_key my_value
Parameters:
  • key: (string)

  • value: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

k8sevents status

Show the status of the data gathering threads

Example command:
ceph k8sevents status
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr

mgr cli appify_pool

Example command:
ceph mgr cli appify_pool my_pool my_app
Parameters:
  • pool: (string)

  • app: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli clear_all_progress_events

Example command:
ceph mgr cli clear_all_progress_events
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli complete_progress_event

Example command:
ceph mgr cli complete_progress_event my_evid
Parameters:
  • evid: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli create_mgr_pool

Example command:
ceph mgr cli create_mgr_pool
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli create_pool

Example command:
ceph mgr cli create_pool my_pool
Parameters:
  • pool: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli db_ready

Example command:
ceph mgr cli db_ready
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get

Called by the plugin to fetch named cluster-wide objects from ceph- mgr. :param str data_name: Valid things to fetch are osdmap_crush_map_text, osd_map, osd_map_tree, osd_map_crush, config, mon_map, fs_map, osd_metadata, pg_summary, io_rate, pg_dump, df, osd_stats, health, mon_status, devices, device <devid>, pg_stats, pool_stats, pg_ready, osd_ping_times, mgr_map, mgr_ips, modified_config_options, service_map, mds_metadata, have_local_config_map, osd_pool_stats, pg_status. Note: All these structures have their own JSON representations: experiment or look at the C++ dump() methods to learn about them.

Example command:
ceph mgr cli get my_data_name
Parameters:
  • data_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_ceph_conf_path

Example command:
ceph mgr cli get_ceph_conf_path
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_ceph_option

Example command:
ceph mgr cli get_ceph_option my_key
Parameters:
  • key: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_counter_latest

Example command:
ceph mgr cli get_counter_latest --daemon_type=string
  --daemon_name=string --counter_name=string --sub_counter_name=string
  --labels=string
Parameters:
  • daemon_type: (string)

  • daemon_name: (string)

  • counter_name: (string)

  • sub_counter_name: (string)

  • labels: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_counter_latest_avg

Example command:
ceph mgr cli get_counter_latest_avg --daemon_type=string
  --daemon_name=string --counter_name=string --sub_counter_name=string
  --labels=string
Parameters:
  • daemon_type: (string)

  • daemon_name: (string)

  • counter_name: (string)

  • sub_counter_name: (string)

  • labels: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_daemon_status

Fetch the latest status for a particular service daemon. This method may return None if no status information is available, for example because the daemon hasn’t fully started yet. :param svc_type: string (e.g., ‘rgw’) :param svc_id: string :return: dict, or None if the service is not found

Example command:
ceph mgr cli get_daemon_status my_svc_type my_svc_id
Parameters:
  • svc_type: (string)

  • svc_id: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_foreign_ceph_option

Example command:
ceph mgr cli get_foreign_ceph_option my_entity my_key
Parameters:
  • entity: (string)

  • key: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_hostname

Example command:
ceph mgr cli get_hostname
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_kv

Example command:
ceph mgr cli get_kv my_key
Parameters:
  • key: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_latest_counter

Called by the plugin to fetch only the newest performance counter data point for a particular counter on a particular service. :param str svc_type: :param str svc_name: :param str counter_name: the key_name of the counter, for example “osd_scrub_sh_repl” :param str sub_counter_name: the counters present under the key_name, for example “successful_scrubs_elapsed” :param list[(str, str)] labels: the labels associated with the counter, for example “[(“level”, “deep”), (“pooltype”, “ec”)]” :return: A list of two-tuples of (timestamp, value) or three-tuple of (timestamp, value, count) is returned. This may be empty if no data is available.

Example command:
ceph mgr cli get_latest_counter --svc_type=string --svc_name=string
  --counter_name=string --sub_counter_name=string --labels=string
Parameters:
  • svc_type: (string)

  • svc_name: (string)

  • counter_name: (string)

  • sub_counter_name: (string)

  • labels: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_latest_unlabeled_counter

Called by the plugin to fetch only the newest performance unlabeled counter data point for a particular counter on a particular service. :param str svc_type: :param str svc_name: :param str path: a period- separated concatenation of the subsystem and the counter name, for example “mds.inodes”. :return: A list of two-tuples of (timestamp, value) or three-tuple of (timestamp, value, count) is returned. This may be empty if no data is available.

Example command:
ceph mgr cli get_latest_unlabeled_counter my_svc_type my_svc_name
  my_path
Parameters:
  • svc_type: (string)

  • svc_name: (string)

  • path: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_localized_store

Example command:
ceph mgr cli get_localized_store my_key my_default
Parameters:
  • key: (string)

  • default: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_mgr_ip

Example command:
ceph mgr cli get_mgr_ip
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_osd_perf_counters

Get stats collected for an OSD perf query. :param int query_id: query ID

Example command:
ceph mgr cli get_osd_perf_counters 1
Parameters:
  • query_id: CephInt

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_perf_counters

Return the perf counters currently known to this ceph-mgr instance, filtered by priority equal to or greater than prio_limit. The result is a map of string to dict, associating services (like “osd.123”) with their counters. The counter dict for each service maps counter paths to a counter info structure, which is the information from the schema, plus an additional “value” member with the latest value. The returned dictionary looks like: ` {     "mon.a": { "AsyncMessenger::Worker": [             {                 "labels": { "id": "1"                 },                 "counters": { "msgr_connection_ready_timeouts": {                         "type": 10,                         "priority": 5, "units": 1,                         "value": 0                     }, "msgr_connection_idle_timeouts": {                         "type": 10, "priority": 5,                         "units": 1, "value": 0                     }                 }             } ]     } } `

Example command:
ceph mgr cli get_perf_counters --prio_limit=1 --services=string
Parameters:
  • prio_limit: CephInt

  • services: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_perf_schema

Called by the plugin to fetch perf counter schema info. svc_name can be nullptr, as can svc_type, in which case they are wildcards :param str svc_type: :param str svc_name: :return: list of dicts describing the counters requested

Example command:
ceph mgr cli get_perf_schema my_svc_type my_svc_name
Parameters:
  • svc_type: (string)

  • svc_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_server

Called by the plugin to fetch metadata about a particular hostname from ceph-mgr. This is information that ceph-mgr has gleaned from the daemon metadata reported by daemons running on a particular server. :param hostname: a hostname

Example command:
ceph mgr cli get_server my_hostname
Parameters:
  • hostname: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_store

Get a value from this module’s persistent key value store

Example command:
ceph mgr cli get_store my_key my_default
Parameters:
  • key: (string)

  • default: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_store_prefix

Retrieve a dict of KV store keys to values, where the keys have the given prefix :param str key_prefix: :return: str

Example command:
ceph mgr cli get_store_prefix my_key_prefix
Parameters:
  • key_prefix: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_unlabeled_counter

Called by the plugin to fetch the latest performance counter data for a particular counter on a particular service. :param str svc_type: :param str svc_name: :param str path: a period-separated concatenation of the subsystem and the counter name, for example “mds.inodes”. :return: A dict of counter names to their values. each value is a list of of two-tuples of (timestamp, value). This may be empty if no data is available.

Example command:
ceph mgr cli get_unlabeled_counter my_svc_type my_svc_name my_path
Parameters:
  • svc_type: (string)

  • svc_name: (string)

  • path: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_unlabeled_counter_latest

Example command:
ceph mgr cli get_unlabeled_counter_latest my_daemon_type
  my_daemon_name my_counter
Parameters:
  • daemon_type: (string)

  • daemon_name: (string)

  • counter: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_unlabeled_counter_latest_avg

Example command:
ceph mgr cli get_unlabeled_counter_latest_avg my_daemon_type
  my_daemon_name my_counter
Parameters:
  • daemon_type: (string)

  • daemon_name: (string)

  • counter: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_unlabeled_perf_counters

Return the perf counters currently known to this ceph-mgr instance, filtered by priority equal to or greater than prio_limit. The result is a map of string to dict, associating services (like “osd.123”) with their counters. The counter dict for each service maps counter paths to a counter info structure, which is the information from the schema, plus an additional “value” member with the latest value.

Example command:
ceph mgr cli get_unlabeled_perf_counters --prio_limit=1
  --services=string
Parameters:
  • prio_limit: CephInt

  • services: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli get_unlabeled_perf_schema

Called by the plugin to fetch unlabeled perf counter schema info. svc_name can be nullptr, as can svc_type, in which case they are wildcards :param str svc_type: :param str svc_name: :return: list of dicts describing the counters requested

Example command:
ceph mgr cli get_unlabeled_perf_schema my_svc_type my_svc_name
Parameters:
  • svc_type: (string)

  • svc_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli have_enough_osds

Example command:
ceph mgr cli have_enough_osds
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli have_mon_connection

Check whether this ceph-mgr daemon has an open connection to a monitor. If it doesn’t, then it’s likely that the information we have about the cluster is out of date, and/or the monitor cluster is down.

Example command:
ceph mgr cli have_mon_connection
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli list_servers

Like get_server, but gives information about all servers (i.e. all unique hostnames that have been mentioned in daemon metadata) :return: a list of information about all servers :rtype: list

Example command:
ceph mgr cli list_servers
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli lookup_release_name

Example command:
ceph mgr cli lookup_release_name 1
Parameters:
  • major: CephInt

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli pool_exists

Example command:
ceph mgr cli pool_exists my_name
Parameters:
  • name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli remote

Invoke a method on another module. All arguments, and the return value from the other module must be serializable. Limitation: Do not import any modules within the called method. Otherwise you will get an error in Python 2:: RuntimeError(‘cannot unmarshal code objects in restricted execution mode’,) :param module_name: Name of other module. If module isn’t loaded, an ImportError exception is raised. :param method_name: Method name. If it does not exist, a NameError exception is raised. :param args: Argument tuple :param kwargs: Keyword argument dict :raises RuntimeError: Any error raised within the method is converted to a RuntimeError :raises ImportError: No such module

Example command:
ceph mgr cli remote my_module_name my_method_name
Parameters:
  • module_name: (string)

  • method_name: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli remove_mds_perf_query

Unregister an MDS perf query. :param int query_id: query ID

Example command:
ceph mgr cli remove_mds_perf_query 1
Parameters:
  • query_id: CephInt

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli remove_osd_perf_query

Unregister an OSD perf query. :param int query_id: query ID

Example command:
ceph mgr cli remove_osd_perf_query 1
Parameters:
  • query_id: CephInt

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli rename_pool

Example command:
ceph mgr cli rename_pool my_srcpool my_destpool
Parameters:
  • srcpool: (string)

  • destpool: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli reregister_mds_perf_queries

Re-register MDS perf queries.

Example command:
ceph mgr cli reregister_mds_perf_queries
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli send_rgwadmin_command

Example command:
ceph mgr cli send_rgwadmin_command --args=string --stdout_as_json
Parameters:
  • args: (can be repeated)

  • --stdout_as_json: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli set_device_wear_level

Example command:
ceph mgr cli set_device_wear_level my_devid 0.0
Parameters:
  • devid: (string)

  • wear_level: CephFloat

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli set_localized_module_option

Set localized configuration for this ceph-mgr instance. :param str key: :param str val: :return: str

Example command:
ceph mgr cli set_localized_module_option my_key my_val
Parameters:
  • key: (string)

  • val: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli set_localized_store

Example command:
ceph mgr cli set_localized_store my_key my_val
Parameters:
  • key: (string)

  • val: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli set_store

Set a value in this module’s persistent key value store. If val is None, remove key from store

Example command:
ceph mgr cli set_store my_key my_val
Parameters:
  • key: (string)

  • val: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli set_uri

If the module exposes a service, then call this to publish the address once it is available. :return: a string

Example command:
ceph mgr cli set_uri my_uri
Parameters:
  • uri: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr cli update_progress_event

Example command:
ceph mgr cli update_progress_event --evid=string --desc=string
  --progress=0.0 --add_to_ceph_s
Parameters:
  • evid: (string)

  • desc: (string)

  • progress: CephFloat

  • --add_to_ceph_s: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

mgr cli_benchmark

Example command:
ceph mgr cli_benchmark --iterations=1 --threads=1 --func_name=string
  --func_args=string
Parameters:
  • iterations: CephInt

  • threads: CephInt

  • func_name: (string)

  • func_args: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test background start

Activate a background workload (one of command_spam, throw_exception)

Example command:
ceph mgr self-test background start command_spam
Parameters:
  • workload: CephChoices strings=(command_spam throw_exception shutdown)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test background stop

Stop background workload if any is running

Example command:
ceph mgr self-test background stop
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test cluster-log

Create an audit log record.

Example command:
ceph mgr self-test cluster-log my_channel my_priority my_message
Parameters:
  • channel: (string)

  • priority: (string)

  • message: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test config get

Peek at a configuration value

Example command:
ceph mgr self-test config get my_key
Parameters:
  • key: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test config get_localized

Peek at a configuration value (localized variant)

Example command:
ceph mgr self-test config get_localized my_key
Parameters:
  • key: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test eval

eval given source

Example command:
ceph mgr self-test eval my_s
Parameters:
  • s: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test health clear

Clear health checks by name. If no names provided, clear all.

Example command:
ceph mgr self-test health clear --checks=string
Parameters:
  • checks: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test health set

Set a health check from a JSON-formatted description.

Example command:
ceph mgr self-test health set my_checks
Parameters:
  • checks: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test insights_set_now_offset

Set the now time for the insights module.

Example command:
ceph mgr self-test insights_set_now_offset 1
Parameters:
  • hours: CephInt

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test logging

Test logging isolation between mgr modules

Example command:
ceph mgr self-test logging
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test module

Run another module’s self_test() method

Example command:
ceph mgr self-test module my_module
Parameters:
  • module: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test python-version

Query the version of the embedded Python runtime

Example command:
ceph mgr self-test python-version
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

mgr self-test remote

Test inter-module calls

Example command:
ceph mgr self-test remote
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

mgr self-test run

Run mgr python interface tests

Example command:
ceph mgr self-test run
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs

nfs cluster config get

Fetch NFS-Ganesha config

Example command:
ceph nfs cluster config get my_cluster_id
Parameters:
  • cluster_id: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

nfs cluster config reset

Reset NFS-Ganesha Config to default

Example command:
ceph nfs cluster config reset my_cluster_id
Parameters:
  • cluster_id: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs cluster config set

Set NFS-Ganesha config by -i <config_file>

Example command:
ceph nfs cluster config set my_cluster_id
Parameters:
  • cluster_id: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs cluster create

Create an NFS Cluster

Example command:
ceph nfs cluster create --cluster_id=string --placement=string
  --ingress --virtual_ip=string --ingress_mode=default --port=1
Parameters:
  • cluster_id: (string)

  • placement: (string)

  • --ingress: CephBool

  • --virtual_ip: (string)

  • --ingress_mode: CephChoices strings=(default keepalive-only haproxy-standard haproxy-protocol)

  • --port: CephInt

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs cluster delete

Removes an NFS Cluster (DEPRECATED)

Example command:
ceph nfs cluster delete my_cluster_id
Parameters:
  • cluster_id: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs cluster info

Displays NFS Cluster info

Example command:
ceph nfs cluster info my_cluster_id my_format
Parameters:
  • cluster_id: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

nfs cluster ls

List NFS Clusters

Example command:
ceph nfs cluster ls my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

nfs cluster rm

Removes an NFS Cluster

Example command:
ceph nfs cluster rm my_cluster_id
Parameters:
  • cluster_id: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs export apply

Example command:
ceph nfs export apply my_cluster_id my_format
Parameters:
  • cluster_id: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs export create cephfs

Create a CephFS export

Example command:
ceph nfs export create cephfs --cluster_id=string --pseudo_path=string
  --fsname=string --path=string --readonly --client_addr=string
  --squash=string --sectype=string --cmount_path=string --format=string
Parameters:
  • cluster_id: (string)

  • pseudo_path: (string)

  • fsname: (string)

  • path: (string)

  • --readonly: CephBool

  • --client_addr: (can be repeated)

  • --squash: (string)

  • --sectype: (can be repeated)

  • --cmount_path: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs export create rgw

Create an RGW export

Example command:
ceph nfs export create rgw --cluster_id=string --pseudo_path=string
  --bucket=string --user_id=string --readonly --client_addr=string
  --squash=string --sectype=string --format=string
Parameters:
  • cluster_id: (string)

  • pseudo_path: (string)

  • bucket: (string)

  • user_id: (string)

  • --readonly: CephBool

  • --client_addr: (can be repeated)

  • --squash: (string)

  • --sectype: (can be repeated)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs export delete

Delete a cephfs export (DEPRECATED)

Example command:
ceph nfs export delete my_cluster_id my_pseudo_path
Parameters:
  • cluster_id: (string)

  • pseudo_path: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

nfs export get

Fetch a export of a NFS cluster given the pseudo path/binding (DEPRECATED)

Example command:
ceph nfs export get my_cluster_id my_pseudo_path my_format
Parameters:
  • cluster_id: (string)

  • pseudo_path: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

nfs export info

Fetch a export of a NFS cluster given the pseudo path/binding

Example command:
ceph nfs export info my_cluster_id my_pseudo_path my_format
Parameters:
  • cluster_id: (string)

  • pseudo_path: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

nfs export ls

List exports of a NFS cluster

Example command:
ceph nfs export ls my_cluster_id --detailed my_format
Parameters:
  • cluster_id: (string)

  • --detailed: CephBool

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

nfs export rm

Remove a cephfs export

Example command:
ceph nfs export rm my_cluster_id my_pseudo_path
Parameters:
  • cluster_id: (string)

  • pseudo_path: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

orch

orch

Start, stop, restart, redeploy, or reconfig an entire service (i.e. all daemons)

Example command:
ceph orch start my_service_name
Parameters:
  • action: CephChoices strings=(start stop restart redeploy reconfig rotate-key)

  • service_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch alertmanager get-credentials

Example command:
ceph orch alertmanager get-credentials
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch alertmanager set-credentials

Example command:
ceph orch alertmanager set-credentials my_username my_password
Parameters:
  • username: (string)

  • password: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply

Update the size or placement for a service or apply a large yaml spec

Example command:
ceph orch apply --service_type=mon --placement=string --dry_run
  --format=plain --unmanaged --no_overwrite --continue_on_error
Parameters:
  • service_type: CephChoices strings=(mon mgr rbd-mirror cephfs-mirror crash alertmanager grafana node-exporter ceph-exporter prometheus loki promtail alloy mds rgw nfs iscsi nvmeof snmp-gateway elasticsearch jaeger-agent jaeger-collector jaeger-query)

  • placement: (string)

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --unmanaged: CephBool

  • --no_overwrite: CephBool

  • --continue_on_error: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply iscsi

Scale an iSCSI service

Example command:
ceph orch apply iscsi --pool=string --api_user=string
  --api_password=string --trusted_ip_list=string --placement=string
  --unmanaged --dry_run --format=plain --no_overwrite
Parameters:
  • pool: (string)

  • api_user: (string)

  • api_password: (string)

  • trusted_ip_list: (string)

  • placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply jaeger

Apply jaeger tracing services

Example command:
ceph orch apply jaeger --es_nodes=string --without_query
  --placement=string --unmanaged --dry_run --format=plain --no_overwrite
Parameters:
  • es_nodes: (string)

  • --without_query: CephBool

  • --placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply mds

Update the number of MDS instances for the given fs_name

Example command:
ceph orch apply mds --fs_name=string --placement=string --dry_run
  --unmanaged --format=plain --no_overwrite
Parameters:
  • fs_name: (string)

  • placement: (string)

  • --dry_run: CephBool

  • --unmanaged: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply mgmt-gateway

Add a cluster gateway service (cephadm only)

Example command:
ceph orch apply mgmt-gateway --port=1 --ssl --enable_auth
  --virtual_ip=string --placement=string --unmanaged --dry_run
  --format=plain --no_overwrite
Parameters:
  • port: CephInt

  • --ssl: CephBool

  • --enable_auth: CephBool

  • --virtual_ip: (string)

  • --placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply nfs

Scale an NFS service

Example command:
ceph orch apply nfs --svc_id=string --placement=string --format=plain
  --port=1 --dry_run --unmanaged --no_overwrite
Parameters:
  • svc_id: (string)

  • placement: (string)

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --port: CephInt

  • --dry_run: CephBool

  • --unmanaged: CephBool

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply nvmeof

Scale an nvmeof service

Example command:
ceph orch apply nvmeof --pool=string --group=string --placement=string
  --unmanaged --dry_run --format=plain --no_overwrite
Parameters:
  • --pool: (string)

  • --group: (string)

  • --placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply oauth2-proxy

Add a cluster gateway service (cephadm only)

Example command:
ceph orch apply oauth2-proxy --https_address=string --placement=string
  --unmanaged --dry_run --format=plain --no_overwrite
Parameters:
  • https_address: (string)

  • placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply osd

Create OSD daemon(s) on all available devices

Example command:
ceph orch apply osd --all_available_devices --format=plain --unmanaged
  --dry_run --no_overwrite --method=raw --osd_type=crimson
  --objectstore=string
Parameters:
  • --all_available_devices: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --no_overwrite: CephBool

  • --method: CephChoices strings=(raw lvm)

  • --osd_type: CephChoices strings=(crimson classic)

  • --objectstore: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply rgw

Update the number of RGW instances for the given zone

Example command:
ceph orch apply rgw --svc_id=string --placement=string --realm=string
  --zonegroup=string --zone=string --networks=string --port=1 --ssl
  --dry_run --format=plain --unmanaged --no_overwrite
Parameters:
  • svc_id: (string)

  • placement: (string)

  • --realm: (string)

  • --zonegroup: (string)

  • --zone: (string)

  • --networks: (can be repeated)

  • --port: CephInt

  • --ssl: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --unmanaged: CephBool

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply smb

Apply an SMB network file system gateway service configuration.

Example command:
ceph orch apply smb --cluster_id=string --config_uri=string
  --features=string --join_sources=string --custom_dns=string
  --include_ceph_users=string --placement=string --unmanaged --dry_run
  --format=plain --no_overwrite
Parameters:
  • cluster_id: (string)

  • config_uri: (string)

  • features: (string)

  • join_sources: (can be repeated)

  • custom_dns: (can be repeated)

  • include_ceph_users: (can be repeated)

  • placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch apply snmp-gateway

Add a Prometheus to SNMP gateway service (cephadm only)

Example command:
ceph orch apply snmp-gateway --snmp_version=V2c --destination=string
  --port=1 --engine_id=string --auth_protocol=MD5 --privacy_protocol=DES
  --placement=string --unmanaged --dry_run --format=plain --no_overwrite
Parameters:
  • snmp_version: CephChoices strings=(V2c V3)

  • destination: (string)

  • port: CephInt

  • engine_id: (string)

  • auth_protocol: CephChoices strings=(MD5 SHA)

  • privacy_protocol: CephChoices strings=(DES AES)

  • placement: (string)

  • --unmanaged: CephBool

  • --dry_run: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch cancel

Cancel ongoing background operations

Example command:
ceph orch cancel
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr bindings ls

Example command:
ceph orch certmgr bindings ls plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch certmgr cert check

Example command:
ceph orch certmgr cert check plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch certmgr cert get

Example command:
ceph orch certmgr cert get --cert_name=string --service_name=string
  --hostname=string --no_exception_when_missing
Parameters:
  • cert_name: (string)

  • --service_name: (string)

  • --hostname: (string)

  • --no_exception_when_missing: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch certmgr cert ls

Example command:
ceph orch certmgr cert ls --filter_by=string --show_details
  --include_cephadm_signed --format=plain
Parameters:
  • filter_by: (string)

  • --show_details: CephBool

  • --include_cephadm_signed: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch certmgr cert rm

Example command:
ceph orch certmgr cert rm my_cert_name my_service_name my_hostname
Parameters:
  • cert_name: (string)

  • --service_name: (string)

  • --hostname: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr cert set

Sets the cert from the --cert argument or from -i <cert-file>.

Example command:
ceph orch certmgr cert set --cert_name=string --cert=string
  --service_name=string --hostname=string --force
Parameters:
  • cert_name: (string)

  • --cert: (string)

  • --service_name: (string)

  • --hostname: (string)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr cert-key set

Sets the cert-key pair from -i <pem-file>, which must be a valid PEM file containing both the certificate and the private key.

Example command:
ceph orch certmgr cert-key set --consumer=string --cert=string
  --key=string --cert_name=string --service_name=string
  --hostname=string --force
Parameters:
  • consumer: (string)

  • --cert: (string)

  • --key: (string)

  • --cert_name: (string)

  • --service_name: (string)

  • --hostname: (string)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr generate-certificates

Example command:
ceph orch certmgr generate-certificates my_module_name
Parameters:
  • module_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr key get

Example command:
ceph orch certmgr key get --key_name=string --service_name=string
  --hostname=string --no_exception_when_missing
Parameters:
  • key_name: (string)

  • --service_name: (string)

  • --hostname: (string)

  • --no_exception_when_missing: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch certmgr key ls

Example command:
ceph orch certmgr key ls --include_cephadm_generated_keys plain
Parameters:
  • --include_cephadm_generated_keys: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch certmgr key rm

Example command:
ceph orch certmgr key rm my_key_name my_service_name my_hostname
Parameters:
  • key_name: (string)

  • --service_name: (string)

  • --hostname: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr key set

Sets the key from the --key argument or from -i <key-file>.

Example command:
ceph orch certmgr key set --key_name=string --key=string
  --service_name=string --hostname=string
Parameters:
  • key_name: (string)

  • --key: (string)

  • --service_name: (string)

  • --hostname: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch certmgr reload

Example command:
ceph orch certmgr reload plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch client-keyring ls

List client keyrings under cephadm management

Example command:
ceph orch client-keyring ls plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch client-keyring rm

Remove client keyring from cephadm management

Example command:
ceph orch client-keyring rm my_entity
Parameters:
  • entity: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch client-keyring set

Add or update client keyring under cephadm management

Example command:
ceph orch client-keyring set --entity=string --placement=string
  --owner=string --mode=string --no_ceph_conf
Parameters:
  • entity: (string)

  • placement: (string)

  • owner: (string)

  • mode: (string)

  • --no_ceph_conf: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon

Start, stop, restart, redeploy, reconfig, or rotate-key for a specific daemon

Example command:
ceph orch daemon start my_name --force
Parameters:
  • action: CephChoices strings=(start stop restart reconfig rotate-key)

  • name: (string)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add

Add daemon(s)

Example command:
ceph orch daemon add mon my_placement
Parameters:
  • daemon_type: CephChoices strings=(mon mgr rbd-mirror cephfs-mirror crash alertmanager grafana node-exporter ceph-exporter prometheus loki promtail alloy mds rgw nfs iscsi nvmeof snmp-gateway elasticsearch jaeger-agent jaeger-collector jaeger-query)

  • placement: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add iscsi

Start iscsi daemon(s)

Example command:
ceph orch daemon add iscsi --pool=string --api_user=string
  --api_password=string --trusted_ip_list=string --placement=string
Parameters:
  • pool: (string)

  • api_user: (string)

  • api_password: (string)

  • trusted_ip_list: (string)

  • placement: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add mds

Start MDS daemon(s)

Example command:
ceph orch daemon add mds my_fs_name my_placement
Parameters:
  • fs_name: (string)

  • placement: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add nfs

Start NFS daemon(s)

Example command:
ceph orch daemon add nfs my_svc_id my_placement
Parameters:
  • svc_id: (string)

  • placement: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add nvmeof

Start nvmeof daemon(s)

Example command:
ceph orch daemon add nvmeof my_pool my_group my_placement
Parameters:
  • pool: (string)

  • group: (string)

  • placement: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add osd

Create OSD daemon(s) on specified host and device(s) (e.g., ceph orch daemon add osd myhost:/dev/sdb)

Example command:
ceph orch daemon add osd --svc_arg=string --method=raw
  --skip_validation --osd_type=crimson --objectstore=string
Parameters:
  • svc_arg: (string)

  • method: CephChoices strings=(raw lvm)

  • --skip_validation: CephBool

  • --osd_type: CephChoices strings=(crimson classic)

  • --objectstore: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon add rgw

Start RGW daemon(s)

Example command:
ceph orch daemon add rgw --svc_id=string --placement=string --port=1
  --ssl
Parameters:
  • svc_id: (string)

  • placement: (string)

  • --port: CephInt

  • --ssl: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon redeploy

Redeploy a daemon (with a specific image)

Example command:
ceph orch daemon redeploy my_name my_image
Parameters:
  • name: (string)

  • image: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch daemon rm

Remove specific daemon(s)

Example command:
ceph orch daemon rm --names=string --force
Parameters:
  • names: (can be repeated)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch device ls

List devices on a host

Example command:
ceph orch device ls --hostname=string --format=plain --refresh --wide
  --summary
Parameters:
  • hostname: (can be repeated)

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --refresh: CephBool

  • --wide: CephBool

  • --summary: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch device replace

Perform all required operations in order to replace a device.

Example command:
ceph orch device replace --hostname=string --device=string --clear
  --yes_i_really_mean_it
Parameters:
  • hostname: (string)

  • device: (string)

  • --clear: CephBool

  • --yes_i_really_mean_it: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch device zap

Zap (erase!) a device so it can be re-used

Example command:
ceph orch device zap my_hostname my_path --force
Parameters:
  • hostname: (string)

  • path: (string)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch get-security-config

Example command:
ceph orch get-security-config
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch hardware light

Enable or Disable a device or chassis LED

Example command:
ceph orch hardware light --light_type=chassis --action=on
  --hostname=string --device=string
Parameters:
  • light_type: CephChoices strings=(chassis drive)

  • action: CephChoices strings=(on off get)

  • hostname: (string)

  • device: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch hardware powercycle

Reboot a host

Example command:
ceph orch hardware powercycle my_hostname --yes_i_really_mean_it
Parameters:
  • hostname: (string)

  • --yes_i_really_mean_it: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch hardware shutdown

Shutdown a host

Example command:
ceph orch hardware shutdown my_hostname --force --yes_i_really_mean_it
Parameters:
  • hostname: (string)

  • --force: CephBool

  • --yes_i_really_mean_it: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch hardware status

Display hardware status summary :param hostname: hostname

Example command:
ceph orch hardware status my_hostname my_category plain
Parameters:
  • hostname: (string)

  • --category: (string)

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host add

Add a host

Example command:
ceph orch host add --hostname=string --addr=string --labels=string
  --maintenance
Parameters:
  • hostname: (string)

  • addr: (string)

  • labels: (can be repeated)

  • --maintenance: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host drain

drain all daemons from a host

Example command:
ceph orch host drain --hostname=string --force --keep_conf_keyring
  --zap_osd_devices
Parameters:
  • hostname: (string)

  • --force: CephBool

  • --keep_conf_keyring: CephBool

  • --zap_osd_devices: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host drain stop

drain all daemons from a host

Example command:
ceph orch host drain stop my_hostname
Parameters:
  • hostname: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host label add

Add a host label

Example command:
ceph orch host label add my_hostname my_label
Parameters:
  • hostname: (string)

  • label: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host label rm

Remove a host label

Example command:
ceph orch host label rm my_hostname my_label --force
Parameters:
  • hostname: (string)

  • label: (string)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host ls

List high level host information

Example command:
ceph orch host ls --format=plain --host_pattern=string --label=string
  --host_status=string --detail
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --host_pattern: (string)

  • --label: (string)

  • --host_status: (string)

  • --detail: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch host maintenance enter

Prepare a host for maintenance by shutting down and disabling all Ceph daemons (cephadm only)

Example command:
ceph orch host maintenance enter my_hostname --force
  --yes_i_really_mean_it
Parameters:
  • hostname: (string)

  • --force: CephBool

  • --yes_i_really_mean_it: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host maintenance exit

Return a host from maintenance, restarting all Ceph daemons (cephadm only)

Example command:
ceph orch host maintenance exit my_hostname --force --offline
Parameters:
  • hostname: (string)

  • --force: CephBool

  • --offline: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host ok-to-stop

Check if the specified host can be safely stopped without reducing availability

Example command:
ceph orch host ok-to-stop my_hostname
Parameters:
  • hostname: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host rescan

Perform a disk rescan on a host

Example command:
ceph orch host rescan my_hostname --with_summary
Parameters:
  • hostname: (string)

  • --with_summary: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host rm

Remove a host

Example command:
ceph orch host rm --hostname=string --force --offline --rm_crush_entry
Parameters:
  • hostname: (string)

  • --force: CephBool

  • --offline: CephBool

  • --rm_crush_entry: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch host set-addr

Update a host address

Example command:
ceph orch host set-addr my_hostname my_addr
Parameters:
  • hostname: (string)

  • addr: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch ls

List services known to orchestrator

Example command:
ceph orch ls --service_type=string --service_name=string --export
  --format=plain --refresh
Parameters:
  • service_type: (string)

  • service_name: (string)

  • --export: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --refresh: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch osd rm

Remove OSD daemons

Example command:
ceph orch osd rm --osd_id=string --replace --force --zap --no_destroy
Parameters:
  • osd_id: (can be repeated)

  • --replace: CephBool

  • --force: CephBool

  • --zap: CephBool

  • --no_destroy: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch osd rm status

Status of OSD removal operation

Example command:
ceph orch osd rm status plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch osd rm stop

Cancel ongoing OSD removal operation

Example command:
ceph orch osd rm stop --osd_id=string
Parameters:
  • osd_id: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch osd set-spec-affinity

Set service spec affinity for osd

Example command:
ceph orch osd set-spec-affinity --service_name=string --osd_id=string
Parameters:
  • service_name: (string)

  • osd_id: (can be repeated)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch pause

Pause orchestrator background work

Example command:
ceph orch pause
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch prometheus get-credentials

Example command:
ceph orch prometheus get-credentials
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch prometheus remove-target

Example command:
ceph orch prometheus remove-target my_url
Parameters:
  • url: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch prometheus set-credentials

Example command:
ceph orch prometheus set-credentials my_username my_password
Parameters:
  • username: (string)

  • password: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch prometheus set-custom-alerts

Example command:
ceph orch prometheus set-custom-alerts
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch prometheus set-target

Example command:
ceph orch prometheus set-target my_url
Parameters:
  • url: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch ps

List daemons known to orchestrator

Example command:
ceph orch ps --hostname=string --service_name=string
  --daemon_type=string --daemon_id=string --sort_by=service_name
  --format=plain --refresh
Parameters:
  • hostname: (string)

  • --service_name: (string)

  • --daemon_type: (string)

  • --daemon_id: (string)

  • --sort_by: CephChoices strings=(service_name daemon_type name host status refreshed age mem_use mem_lim image)

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

  • --refresh: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch resume

Resume orchestrator background work (if paused)

Example command:
ceph orch resume
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch rm

Remove a service

Example command:
ceph orch rm my_service_name --force
Parameters:
  • service_name: (string)

  • --force: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch set backend

Select orchestrator module backend

Example command:
ceph orch set backend my_module_name
Parameters:
  • module_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch set-managed

Set ‘unmanaged: false’ for the given service name

Example command:
ceph orch set-managed my_service_name
Parameters:
  • service_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch set-unmanaged

Set ‘unmanaged: true’ for the given service name

Example command:
ceph orch set-unmanaged my_service_name
Parameters:
  • service_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch status

Report configured backend and its status

Example command:
ceph orch status --detail plain
Parameters:
  • --detail: CephBool

  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch tuned-profile add-setting

Example command:
ceph orch tuned-profile add-setting my_profile_name my_setting
  my_value
Parameters:
  • profile_name: (string)

  • setting: (string)

  • value: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch tuned-profile add-settings

Example command:
ceph orch tuned-profile add-settings my_profile_name my_settings
Parameters:
  • profile_name: (string)

  • settings: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch tuned-profile apply

Add or update a tuned profile

Example command:
ceph orch tuned-profile apply --profile_name=string --placement=string
  --settings=string --no_overwrite
Parameters:
  • profile_name: (string)

  • placement: (string)

  • settings: (string)

  • --no_overwrite: CephBool

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch tuned-profile ls

Example command:
ceph orch tuned-profile ls plain
Parameters:
  • --format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch tuned-profile rm

Example command:
ceph orch tuned-profile rm my_profile_name
Parameters:
  • profile_name: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch tuned-profile rm-setting

Example command:
ceph orch tuned-profile rm-setting my_profile_name my_setting
Parameters:
  • profile_name: (string)

  • setting: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch tuned-profile rm-settings

Example command:
ceph orch tuned-profile rm-settings my_profile_name my_settings
Parameters:
  • profile_name: (string)

  • settings: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch unpause

Alias to orch resume

Example command:
ceph orch unpause
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch update service

Update image for non-ceph image daemon

Example command:
ceph orch update service prometheus my_image
Parameters:
  • service_type: CephChoices strings=(prometheus loki alloy node-exporter alertmanager grafana promtail nvmeof snmp-gateway elasticsearch jaeger-collector jaeger-query jaeger-agent smb oauth2-proxy)

  • image: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch upgrade check

Check service versions vs available and target containers

Example command:
ceph orch upgrade check my_image my_ceph_version
Parameters:
  • image: (string)

  • ceph_version: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch upgrade ls

Check for available versions (or tags) we can upgrade to

Example command:
ceph orch upgrade ls my_image --tags --show_all_versions
Parameters:
  • image: (string)

  • --tags: CephBool

  • --show_all_versions: CephBool

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

orch upgrade pause

Pause an in-progress upgrade

Example command:
ceph orch upgrade pause
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch upgrade resume

Resume paused upgrade

Example command:
ceph orch upgrade resume
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch upgrade start

Initiate upgrade

Example command:
ceph orch upgrade start --image=string --daemon_types=string
  --hosts=string --services=string --limit=1 --ceph_version=string
Parameters:
  • image: (string)

  • --daemon_types: (string)

  • --hosts: (string)

  • --services: (string)

  • --limit: CephInt

  • --ceph_version: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch upgrade status

Check the status of any potential ongoing upgrade operation

Example command:
ceph orch upgrade status my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

orch upgrade stop

Stop an in-progress upgrade

Example command:
ceph orch upgrade stop
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd

osd perf counters get

fetch osd perf counters

Example command:
ceph osd perf counters get 1
Parameters:
  • query_id: CephInt

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd perf query add

add osd perf query

Example command:
ceph osd perf query add client_id
Parameters:
  • query: CephChoices strings=(client_id rbd_image_id all_subkeys)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd perf query remove

remove osd perf query

Example command:
ceph osd perf query remove 1
Parameters:
  • query_id: CephInt

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd pool autoscale-status

report on pool pg_num sizing recommendation and intent

Example command:
ceph osd pool autoscale-status my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

osd pool get noautoscale

Get the noautoscale flag to see if all pools are setting the autoscaler on or off as well as newly created pools in the future.

Example command:
ceph osd pool get noautoscale
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd pool get threshold

return the autoscaler threshold value A.K.A. the factor by which the new pg_num must vary from the existing pg_num before action is taken

Example command:
ceph osd pool get threshold
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

osd pool set noautoscale

set the noautoscale for all pools (including newly created pools in the future) and complete all on-going progress events regarding PG- autoscaling.

Example command:
ceph osd pool set noautoscale
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd pool set threshold

set the autoscaler threshold A.K.A. the factor by which the new pg_num must vary from the existing pg_num before action is taken

Example command:
ceph osd pool set threshold 0.0
Parameters:
  • num: CephFloat

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd pool unset noautoscale

Unset the noautoscale flag so all pools will go back to its previous mode. Newly created pools in the future will autoscaler on by default.

Example command:
ceph osd pool unset noautoscale
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

osd status

Show the status of OSDs within a bucket, or all

Example command:
ceph osd status my_bucket my_format
Parameters:
  • bucket: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

progress

progress

Show progress of recovery operations

Example command:
ceph progress
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

progress clear

Reset progress tracking

Example command:
ceph progress clear
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

progress json

Show machine readable progress information

Example command:
ceph progress json
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

progress off

Disable progress tracking

Example command:
ceph progress off
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

progress on

Enable progress tracking

Example command:
ceph progress on
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

prometheus file_sd_config

Return file_sd compatible prometheus config for mgr cluster

Example command:
ceph prometheus file_sd_config
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd

rbd mirror snapshot schedule add

Add rbd mirror snapshot schedule

Example command:
ceph rbd mirror snapshot schedule add my_level_spec my_interval
  my_start_time
Parameters:
  • level_spec: (string)

  • interval: (string)

  • start_time: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd mirror snapshot schedule list

List rbd mirror snapshot schedule

Example command:
ceph rbd mirror snapshot schedule list my_level_spec
Parameters:
  • level_spec: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd mirror snapshot schedule remove

Remove rbd mirror snapshot schedule

Example command:
ceph rbd mirror snapshot schedule remove my_level_spec my_interval
  my_start_time
Parameters:
  • level_spec: (string)

  • interval: (string)

  • start_time: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd mirror snapshot schedule status

Show rbd mirror snapshot schedule status

Example command:
ceph rbd mirror snapshot schedule status my_level_spec
Parameters:
  • level_spec: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd perf image counters

Retrieve current RBD IO performance counters

Example command:
ceph rbd perf image counters my_pool_spec write_ops
Parameters:
  • pool_spec: (string)

  • sort_by: CephChoices strings=(write_ops write_bytes write_latency read_ops read_bytes read_latency)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd perf image stats

Retrieve current RBD IO performance stats

Example command:
ceph rbd perf image stats my_pool_spec write_ops
Parameters:
  • pool_spec: (string)

  • sort_by: CephChoices strings=(write_ops write_bytes write_latency read_ops read_bytes read_latency)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd task add flatten

Flatten a cloned image asynchronously in the background

Example command:
ceph rbd task add flatten my_image_spec
Parameters:
  • image_spec: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task add migration abort

Abort a prepared migration asynchronously in the background

Example command:
ceph rbd task add migration abort my_image_spec
Parameters:
  • image_spec: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task add migration commit

Commit an executed migration asynchronously in the background

Example command:
ceph rbd task add migration commit my_image_spec
Parameters:
  • image_spec: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task add migration execute

Execute an image migration asynchronously in the background

Example command:
ceph rbd task add migration execute my_image_spec
Parameters:
  • image_spec: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task add remove

Remove an image asynchronously in the background

Example command:
ceph rbd task add remove my_image_spec
Parameters:
  • image_spec: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task add trash remove

Remove an image from the trash asynchronously in the background

Example command:
ceph rbd task add trash remove my_image_id_spec
Parameters:
  • image_id_spec: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task cancel

Cancel a pending or running asynchronous task

Example command:
ceph rbd task cancel my_task_id
Parameters:
  • task_id: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd task list

List pending or running asynchronous tasks

Example command:
ceph rbd task list my_task_id
Parameters:
  • task_id: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd trash purge schedule add

Add rbd trash purge schedule

Example command:
ceph rbd trash purge schedule add my_level_spec my_interval
  my_start_time
Parameters:
  • level_spec: (string)

  • interval: (string)

  • start_time: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd trash purge schedule list

List rbd trash purge schedule

Example command:
ceph rbd trash purge schedule list my_level_spec
Parameters:
  • level_spec: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rbd trash purge schedule remove

Remove rbd trash purge schedule

Example command:
ceph rbd trash purge schedule remove my_level_spec my_interval
  my_start_time
Parameters:
  • level_spec: (string)

  • interval: (string)

  • start_time: (string)

Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

rbd trash purge schedule status

Show rbd trash purge schedule status

Example command:
ceph rbd trash purge schedule status my_level_spec
Parameters:
  • level_spec: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rgw

rgw admin

rgw admin

Example command:
ceph rgw admin --params=string
Parameters:
  • params: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw realm bootstrap

Bootstrap new rgw realm, zonegroup, and zone

Example command:
ceph rgw realm bootstrap --realm_name=string --zonegroup_name=string
  --zone_name=string --port=1 --placement=string --zone_endpoints=string
  --start_radosgw --skip_realm_components
Parameters:
  • realm_name: (string)

  • zonegroup_name: (string)

  • zone_name: (string)

  • port: CephInt

  • placement: (string)

  • zone_endpoints: (string)

  • --start_radosgw: CephBool

  • --skip_realm_components: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw realm reconcile

Bootstrap new rgw zone that syncs with existing zone

Example command:
ceph rgw realm reconcile --realm_name=string --zonegroup_name=string
  --zone_name=string --update
Parameters:
  • realm_name: (string)

  • zonegroup_name: (string)

  • zone_name: (string)

  • --update: CephBool

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw realm tokens

Example command:
ceph rgw realm tokens
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

rgw realm zone-creds create

Create credentials for new zone creation

Example command:
ceph rgw realm zone-creds create my_realm_name my_endpoints my_sys_uid
Parameters:
  • realm_name: (string)

  • endpoints: (string)

  • sys_uid: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw realm zone-creds remove

Create credentials for new zone creation

Example command:
ceph rgw realm zone-creds remove my_realm_token
Parameters:
  • realm_token: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw zone create

Bootstrap new rgw zone that syncs with zone on another cluster in the same realm

Example command:
ceph rgw zone create --zone_name=string --realm_token=string --port=1
  --placement=string --start_radosgw --zone_endpoints=string
Parameters:
  • zone_name: (string)

  • realm_token: (string)

  • port: CephInt

  • placement: (string)

  • --start_radosgw: CephBool

  • --zone_endpoints: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw zone modify

Example command:
ceph rgw zone modify --realm_name=string --zonegroup_name=string
  --zone_name=string --realm_token=string --zone_endpoints=string
Parameters:
  • realm_name: (string)

  • zonegroup_name: (string)

  • zone_name: (string)

  • realm_token: (string)

  • zone_endpoints: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

rgw zonegroup modify

Example command:
ceph rgw zonegroup modify --realm_name=string --zonegroup_name=string
  --zone_name=string --hostnames=string
Parameters:
  • realm_name: (string)

  • zonegroup_name: (string)

  • zone_name: (string)

  • hostnames: (can be repeated)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb

smb apply

Create, update, or remove smb configuration resources based on YAML or JSON specs

Example command:
ceph smb apply none none my_format
Parameters:
  • password_filter: CephChoices strings=(none base64)

  • password_filter_out: CephChoices strings=(none base64 hidden)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb cluster create

Create an smb cluster

Example command:
ceph smb cluster create --cluster_id=string --auth_mode=user
  --domain_realm=string --domain_join_ref=string
  --domain_join_user_pass=string --user_group_ref=string
  --define_user_pass=string --custom_dns=string --placement=string
  --clustering=default --public_addrs=string --password_filter=none
  --password_filter_out=none --format=string
Parameters:
  • cluster_id: (string)

  • auth_mode: CephChoices strings=(user active-directory)

  • domain_realm: (string)

  • domain_join_ref: (can be repeated)

  • domain_join_user_pass: (can be repeated)

  • user_group_ref: (can be repeated)

  • define_user_pass: (can be repeated)

  • custom_dns: (can be repeated)

  • placement: (string)

  • clustering: CephChoices strings=(default always never)

  • public_addrs: (can be repeated)

  • password_filter: CephChoices strings=(none base64)

  • password_filter_out: CephChoices strings=(none base64 hidden)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb cluster ls

List smb clusters by ID

Example command:
ceph smb cluster ls my_format
Parameters:
  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

smb cluster rm

Remove an smb cluster

Example command:
ceph smb cluster rm my_cluster_id none my_format
Parameters:
  • cluster_id: (string)

  • password_filter: CephChoices strings=(none base64 hidden)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb share create

Create an smb share

Example command:
ceph smb share create --cluster_id=string --share_id=string
  --cephfs_volume=string --path=string --share_name=string
  --subvolume=string --readonly --format=string
Parameters:
  • cluster_id: (string)

  • share_id: (string)

  • cephfs_volume: (string)

  • path: (string)

  • share_name: (string)

  • subvolume: (string)

  • --readonly: CephBool

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb share ls

List smb shares in a cluster by ID

Example command:
ceph smb share ls my_cluster_id my_format
Parameters:
  • cluster_id: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

smb share rm

Remove an smb share

Example command:
ceph smb share rm my_cluster_id my_share_id my_format
Parameters:
  • cluster_id: (string)

  • share_id: (string)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb share update cephfs qos

Update QoS settings for a CephFS share

Example command:
ceph smb share update cephfs qos --cluster_id=string --share_id=string
  --read_iops_limit=1 --write_iops_limit=1 --read_bw_limit=string
  --write_bw_limit=string --read_burst_mult=1 --write_burst_mult=1
  --format=string
Parameters:
  • cluster_id: (string)

  • share_id: (string)

  • read_iops_limit: CephInt

  • write_iops_limit: CephInt

  • read_bw_limit: (string)

  • write_bw_limit: (string)

  • read_burst_mult: CephInt

  • write_burst_mult: CephInt

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

smb show

Show resources fetched from the local config store based on resource type or resource type and id(s).

Example command:
ceph smb show --resource_names=string --results=full
  --password_filter=none --format=string
Parameters:
  • resource_names: (can be repeated)

  • results: CephChoices strings=(full collapsed)

  • password_filter: CephChoices strings=(none base64 hidden)

  • --format: (string)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telegraf

telegraf config-set

Set a configuration value

Example command:
ceph telegraf config-set my_key my_value
Parameters:
  • key: (string)

  • value: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

telegraf config-show

Show current configuration

Example command:
ceph telegraf config-show
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telegraf send

Force sending data to Telegraf

Example command:
ceph telegraf send
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

telemetry

telemetry channel ls

List all channels

Example command:
ceph telemetry channel ls
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry collection ls

List all collections

Example command:
ceph telemetry collection ls
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry diff

Show the diff between opted-in collection and available collection

Example command:
ceph telemetry diff
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry disable channel

Disable a list of channels

Example command:
ceph telemetry disable channel --channels=string
Parameters:
  • channels: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry disable channel all

Disable all channels

Example command:
ceph telemetry disable channel all --channels=string
Parameters:
  • channels: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry enable channel

Enable a list of channels

Example command:
ceph telemetry enable channel --channels=string
Parameters:
  • channels: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry enable channel all

Enable all channels

Example command:
ceph telemetry enable channel all --channels=string
Parameters:
  • channels: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry off

Disable telemetry reports from this cluster

Example command:
ceph telemetry off
Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

telemetry on

Enable telemetry reports from this cluster

Example command:
ceph telemetry on my_license
Parameters:
  • license: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

telemetry preview

Preview a sample report of the most recent collections available (except for ‘device’)

Example command:
ceph telemetry preview --channels=string
Parameters:
  • channels: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry preview-all

Preview a sample report of the most recent collections available of all channels (including ‘device’)

Example command:
ceph telemetry preview-all
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry preview-device

Preview a sample device report of the most recent device collection

Example command:
ceph telemetry preview-device
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry send

Send a sample report

Example command:
ceph telemetry send --endpoint=ceph --license=string
Parameters:
  • endpoint: CephChoices strings=(ceph device) (can be repeated)

  • license: (string)

Ceph Module:

mgr

Required Permissions:

rw

Command Flags:

mgr

telemetry show

Show a sample report of opted-in collections (except for ‘device’)

Example command:
ceph telemetry show --channels=string
Parameters:
  • channels: (can be repeated)

Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry show-all

Show a sample report of all enabled channels (including ‘device’ channel)

Example command:
ceph telemetry show-all
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry show-device

Show a sample device report

Example command:
ceph telemetry show-device
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

telemetry status

Show current configuration

Example command:
ceph telemetry status
Ceph Module:

mgr

Required Permissions:

r

Command Flags:

mgr

test_orchestrator load_data

load dummy data into test orchestrator

Example command:
ceph test_orchestrator load_data
Ceph Module:

mgr

Required Permissions:

w

Command Flags:

mgr

add_bootstrap_peer_hint

add peer address as potential bootstrap peer for cluster bringup

Example command:
ceph add_bootstrap_peer_hint 0.0.0.0
Parameters:
  • addr: CephIPAddr

Ceph Module:

mon

Required Permissions:

rw

add_bootstrap_peer_hintv

add peer address vector as potential bootstrap peer for cluster bringup

Example command:
ceph add_bootstrap_peer_hintv my_addrv
Parameters:
  • addrv: (string)

Ceph Module:

mon

Required Permissions:

rw

auth

auth add

add auth info for <entity> from input file, or random key if no input is given, and/or any caps specified in the command

Example command:
ceph auth add --entity=string --caps=string
Parameters:
  • entity: (string)

  • caps: (can be repeated)

Ceph Module:

auth

Required Permissions:

rwx

auth caps

update caps for <name> from caps specified in the command

Example command:
ceph auth caps --entity=string --caps=string
Parameters:
  • entity: (string)

  • caps: (can be repeated)

Ceph Module:

auth

Required Permissions:

rwx

auth clear-pending

clear pending key

Example command:
ceph auth clear-pending my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rwx

auth commit-pending

rotate pending key into active position

Example command:
ceph auth commit-pending my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rwx

auth del

delete all caps for <name>

Example command:
ceph auth del my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rwx

Command Flags:

deprecated

auth export

write keyring for requested entity, or master keyring if none given

Example command:
ceph auth export my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rx

auth get

write keyring file with requested key

Example command:
ceph auth get my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rx

auth get-key

display requested key

Example command:
ceph auth get-key my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rx

auth get-or-create

add auth info for <entity> from input file, or random key if no input given, and/or any caps specified in the command

Example command:
ceph auth get-or-create --entity=string --caps=string
Parameters:
  • entity: (string)

  • caps: (can be repeated)

Ceph Module:

auth

Required Permissions:

rwx

auth get-or-create-key

get, or add, key for <name> from system/caps pairs specified in the command. If key already exists, any given caps must match the existing caps for that key.

Example command:
ceph auth get-or-create-key --entity=string --caps=string
Parameters:
  • entity: (string)

  • caps: (can be repeated)

Ceph Module:

auth

Required Permissions:

rwx

auth get-or-create-pending

generate and/or retrieve existing pending key (rotated into place on first use)

Example command:
ceph auth get-or-create-pending my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rwx

auth import

auth import: read keyring file from -i <file>

Example command:
ceph auth import
Ceph Module:

auth

Required Permissions:

rwx

auth list

list authentication state

Example command:
ceph auth list
Ceph Module:

auth

Required Permissions:

rx

Command Flags:

deprecated

auth ls

list authentication state

Example command:
ceph auth ls
Ceph Module:

auth

Required Permissions:

rx

auth print-key

display requested key

Example command:
ceph auth print-key my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rx

auth print_key

display requested key

Example command:
ceph auth print_key my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rx

auth rm

remove all caps for <name>

Example command:
ceph auth rm my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rwx

auth rotate

rotate entity key

Example command:
ceph auth rotate my_entity
Parameters:
  • entity: (string)

Ceph Module:

auth

Required Permissions:

rwx

compact

cause compaction of monitor’s RocksDB storage

Example command:
ceph compact
Ceph Module:

mon

Required Permissions:

rw

config

config assimilate-conf

Assimilate options from a conf, and return a new, minimal conf file

Example command:
ceph config assimilate-conf
Ceph Module:

config

Required Permissions:

rw

config dump

Show all configuration option(s)

Example command:
ceph config dump
Ceph Module:

mon

Required Permissions:

r

config generate-minimal-conf

Generate a minimal ceph.conf file

Example command:
ceph config generate-minimal-conf
Ceph Module:

config

Required Permissions:

r

config get

Show configuration option(s) for an entity

Example command:
ceph config get string my_key
Parameters:
  • who: (string)

  • key: (string)

Ceph Module:

config

Required Permissions:

r

config help

Describe a configuration option

Example command:
ceph config help my_key
Parameters:
  • key: (string)

Ceph Module:

config

Required Permissions:

r

config log

Show recent history of config changes

Example command:
ceph config log 1
Parameters:
  • num: CephInt

Ceph Module:

config

Required Permissions:

r

config ls

List available configuration options

Example command:
ceph config ls
Ceph Module:

config

Required Permissions:

r

config reset

Revert configuration to a historical version specified by <num>

Example command:
ceph config reset 1
Parameters:
  • num: CephInt range= 0

Ceph Module:

config

Required Permissions:

rw

config rm

Clear a configuration option for one or more entities

Example command:
ceph config rm string my_name
Parameters:
  • who: (string)

  • name: (string)

Ceph Module:

config

Required Permissions:

rw

config set

Set a configuration option for one or more entities

Example command:
ceph config set --who=string --name=string --value=string --force
Parameters:
  • who: (string)

  • name: (string)

  • value: (string)

  • force: CephBool

Ceph Module:

config

Required Permissions:

rw

config show

Show running configuration

Example command:
ceph config show string my_key
Parameters:
  • who: (string)

  • key: (string)

Ceph Module:

mgr

Required Permissions:

r

config show-with-defaults

Show running configuration (including compiled-in defaults)

Example command:
ceph config show-with-defaults string
Parameters:
  • who: (string)

Ceph Module:

mgr

Required Permissions:

r

config-key

config-key del

delete <key>

Example command:
ceph config-key del my_key
Parameters:
  • key: (string)

Ceph Module:

config-key

Required Permissions:

rw

Command Flags:

deprecated

config-key dump

dump keys and values (with optional prefix)

Example command:
ceph config-key dump my_key
Parameters:
  • key: (string)

Ceph Module:

config-key

Required Permissions:

r

config-key exists

check for <key>’s existence

Example command:
ceph config-key exists my_key
Parameters:
  • key: (string)

Ceph Module:

config-key

Required Permissions:

r

config-key get

get <key>

Example command:
ceph config-key get my_key
Parameters:
  • key: (string)

Ceph Module:

config-key

Required Permissions:

r

config-key list

list keys

Example command:
ceph config-key list
Ceph Module:

config-key

Required Permissions:

r

Command Flags:

deprecated

config-key ls

list keys

Example command:
ceph config-key ls
Ceph Module:

config-key

Required Permissions:

r

config-key put

put <key>, value <val>

Example command:
ceph config-key put my_key my_val
Parameters:
  • key: (string)

  • val: (string)

Ceph Module:

config-key

Required Permissions:

rw

Command Flags:

deprecated

config-key rm

rm <key>

Example command:
ceph config-key rm my_key
Parameters:
  • key: (string)

Ceph Module:

config-key

Required Permissions:

rw

config-key set

set <key> to value <val>

Example command:
ceph config-key set my_key my_val
Parameters:
  • key: (string)

  • val: (string)

Ceph Module:

config-key

Required Permissions:

rw

connection

connection scores dump

show the scores used in connectivity-based elections

Example command:
ceph connection scores dump
Ceph Module:

mon

Required Permissions:

rwx

connection scores reset

reset the scores used in connectivity-based elections

Example command:
ceph connection scores reset
Ceph Module:

mon

Required Permissions:

rwx

device

device info

Show information about a device

Example command:
ceph device info my_devid
Parameters:
  • devid: (string)

Ceph Module:

mgr

Required Permissions:

r

device ls

Show devices

Example command:
ceph device ls
Ceph Module:

mgr

Required Permissions:

r

device ls-by-daemon

Show devices associated with a daemon

Example command:
ceph device ls-by-daemon string
Parameters:
  • who: (string)

Ceph Module:

mgr

Required Permissions:

r

device ls-by-host

Show devices on a host

Example command:
ceph device ls-by-host my_host
Parameters:
  • host: (string)

Ceph Module:

mgr

Required Permissions:

r

device rm-life-expectancy

Clear predicted device life expectancy

Example command:
ceph device rm-life-expectancy my_devid
Parameters:
  • devid: (string)

Ceph Module:

mgr

Required Permissions:

rw

device set-life-expectancy

Set predicted device life expectancy

Example command:
ceph device set-life-expectancy my_devid my_from my_to
Parameters:
  • devid: (string)

  • from: (string)

  • to: (string)

Ceph Module:

mgr

Required Permissions:

rw

df

show cluster free space stats

Example command:
ceph df detail
Parameters:
  • detail: CephChoices strings=(detail)

Ceph Module:

mon

Required Permissions:

r

dump_historic_ops

show recent ops

Example command:
ceph dump_historic_ops
Ceph Module:

mon

Required Permissions:

r

dump_historic_ops_by_duration

show recent ops sorted by duration

Example command:
ceph dump_historic_ops_by_duration
Ceph Module:

mon

Required Permissions:

r

dump_historic_slow_ops

show recent slow ops

Example command:
ceph dump_historic_slow_ops
Ceph Module:

mon

Required Permissions:

r

dump_ops_in_flight

show the ops currently in flight

Example command:
ceph dump_ops_in_flight
Ceph Module:

mon

Required Permissions:

r

features

report of connected features

Example command:
ceph features
Ceph Module:

mon

Required Permissions:

r

fs

fs add_data_pool

add data pool <pool>

Example command:
ceph fs add_data_pool my_fs_name my_pool
Parameters:
  • fs_name: (string)

  • pool: (string)

Ceph Module:

mds

Required Permissions:

rw

fs authorize

add auth for <entity> to access file system <filesystem> based on following directory and permissions pairs

Example command:
ceph fs authorize --filesystem=string --entity=string --caps=string
Parameters:
  • filesystem: (string)

  • entity: (string)

  • caps: (can be repeated)

Ceph Module:

auth

Required Permissions:

rwx

fs compat

manipulate compat settings

Example command:
ceph fs compat --fs_name=string --subop=rm_compat --feature=1
  --feature_str=string
Parameters:
  • fs_name: (string)

  • subop: CephChoices strings=(rm_compat rm_incompat add_compat add_incompat)

  • feature: CephInt

  • feature_str: (string)

Ceph Module:

fs

Required Permissions:

rw

fs compat show

show fs compatibility settings

Example command:
ceph fs compat show my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mds

Required Permissions:

r

fs dump

dump all CephFS status, optionally from epoch

Example command:
ceph fs dump 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

mds

Required Permissions:

r

fs fail

bring the file system down and all of its ranks

Example command:
ceph fs fail my_fs_name --yes_i_really_mean_it
Parameters:
  • fs_name: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

fs

Required Permissions:

rw

fs feature ls

list available cephfs features to be set/unset

Example command:
ceph fs feature ls
Ceph Module:

mds

Required Permissions:

r

fs flag set

Set a global CephFS flag

Example command:
ceph fs flag set enable_multiple my_val --yes_i_really_mean_it
Parameters:
  • flag_name: CephChoices strings=(enable_multiple)

  • val: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

fs

Required Permissions:

rw

fs get

get info about one filesystem

Example command:
ceph fs get my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

fs

Required Permissions:

r

fs ls

list filesystems

Example command:
ceph fs ls
Ceph Module:

fs

Required Permissions:

r

fs lsflags

list the flags set on a ceph filesystem

Example command:
ceph fs lsflags my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

fs

Required Permissions:

r

fs mirror disable

disable mirroring for a ceph filesystem

Example command:
ceph fs mirror disable my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mds

Required Permissions:

rw

fs mirror enable

enable mirroring for a ceph filesystem

Example command:
ceph fs mirror enable my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

mds

Required Permissions:

rw

fs mirror peer_add

add a mirror peer for a ceph filesystem

Example command:
ceph fs mirror peer_add --fs_name=string --uuid=string
  --remote_cluster_spec=string --remote_fs_name=string
Parameters:
  • fs_name: (string)

  • uuid: (string)

  • remote_cluster_spec: (string)

  • remote_fs_name: (string)

Ceph Module:

mds

Required Permissions:

rw

fs mirror peer_remove

remove a mirror peer for a ceph filesystem

Example command:
ceph fs mirror peer_remove my_fs_name my_uuid
Parameters:
  • fs_name: (string)

  • uuid: (string)

Ceph Module:

mds

Required Permissions:

rw

fs new

make new filesystem using named pools <metadata> and <data>

Example command:
ceph fs new --fs_name=string --metadata=string --data=string --force
  --allow_dangerous_metadata_overlay --fscid=0 --recover
  --yes_i_really_really_mean_it --set=string
Parameters:
  • fs_name: goodchars= [A-Za-z0-9-_.]

  • metadata: (string)

  • data: (string)

  • force: CephBool

  • allow_dangerous_metadata_overlay: CephBool

  • fscid: CephInt range= 0

  • recover: CephBool

  • yes_i_really_really_mean_it: CephBool

  • set: (can be repeated)

Ceph Module:

fs

Required Permissions:

rw

fs rename

rename a ceph file system

Example command:
ceph fs rename my_fs_name my_new_fs_name --yes_i_really_mean_it
Parameters:
  • fs_name: (string)

  • new_fs_name: goodchars= [A-Za-z0-9-_.]

  • yes_i_really_mean_it: CephBool

Ceph Module:

mds

Required Permissions:

rw

fs required_client_features

add/remove required features of clients

Example command:
ceph fs required_client_features my_fs_name add my_val
Parameters:
  • fs_name: (string)

  • subop: CephChoices strings=(add rm)

  • val: (string)

Ceph Module:

mds

Required Permissions:

rw

fs reset

disaster recovery only: reset to a single-MDS map

Example command:
ceph fs reset my_fs_name --yes_i_really_mean_it
Parameters:
  • fs_name: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

fs

Required Permissions:

rw

fs rm

disable the named filesystem

Example command:
ceph fs rm my_fs_name --yes_i_really_mean_it
Parameters:
  • fs_name: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

fs

Required Permissions:

rw

fs rm_data_pool

remove data pool <pool>

Example command:
ceph fs rm_data_pool my_fs_name my_pool
Parameters:
  • fs_name: (string)

  • pool: (string)

Ceph Module:

mds

Required Permissions:

rw

fs set

set fs parameter <var> to <val>

Example command:
ceph fs set --fs_name=string --var=max_mds --val=string
  --yes_i_really_mean_it --yes_i_really_really_mean_it
Parameters:
  • fs_name: (string)

  • var: CephChoices strings=(max_mds allow_dirfrags allow_new_snaps allow_standby_replay bal_rank_mask balance_automate balancer cluster_down down inline_data joinable max_file_size max_xattr_size min_compat_client refuse_client_session refuse_standby_for_another_fs session_autoclose session_timeout standby_count_wanted allow_referent_inodes)

  • val: (string)

  • yes_i_really_mean_it: CephBool

  • yes_i_really_really_mean_it: CephBool

Ceph Module:

mds

Required Permissions:

rw

fs set-default

set the default to the named filesystem

Example command:
ceph fs set-default my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

fs

Required Permissions:

rw

fs set_default

set the default to the named filesystem

Example command:
ceph fs set_default my_fs_name
Parameters:
  • fs_name: (string)

Ceph Module:

fs

Required Permissions:

rw

Command Flags:

deprecated

fs swap

swap ceph file system names

Example command:
ceph fs swap --fs1_name=string --fs1_id=0 --fs2_name=string --fs2_id=0
  --swap_fscids=yes --yes_i_really_mean_it
Parameters:
  • fs1_name: (string)

  • fs1_id: CephInt range= 0

  • fs2_name: (string)

  • fs2_id: CephInt range= 0

  • swap_fscids: CephChoices strings=(yes no)

  • yes_i_really_mean_it: CephBool

Ceph Module:

mds

Required Permissions:

rw

fsid

show cluster FSID/UUID

Example command:
ceph fsid
Ceph Module:

mon

Required Permissions:

r

health

health

show cluster health

Example command:
ceph health detail
Parameters:
  • detail: CephChoices strings=(detail)

Ceph Module:

mon

Required Permissions:

r

health mute

mute health alert

Example command:
ceph health mute my_code my_ttl --sticky
Parameters:
  • code: (string)

  • ttl: (string)

  • sticky: CephBool

Ceph Module:

mon

Required Permissions:

w

health unmute

unmute existing health alert mute(s)

Example command:
ceph health unmute my_code
Parameters:
  • code: (string)

Ceph Module:

mon

Required Permissions:

w

heap

show heap usage info (available only if compiled with tcmalloc)

Example command:
ceph heap dump my_value
Parameters:
  • heapcmd: CephChoices strings=(dump start_profiler stop_profiler release stats)

  • value: (string)

Ceph Module:

mon

Required Permissions:

rw

injectargs

inject config arguments into monitor

Example command:
ceph injectargs --injected_args=string
Parameters:
  • injected_args: (can be repeated)

Ceph Module:

mon

Required Permissions:

rw

log

log

log supplied text to the monitor log

Example command:
ceph log --logtext=string
Parameters:
  • logtext: (can be repeated)

Ceph Module:

mon

Required Permissions:

rw

log last

print last few lines of the cluster log

Example command:
ceph log last 1 debug *
Parameters:
  • num: CephInt range= 1

  • level: CephChoices strings=(debug info sec warn error)

  • channel: CephChoices strings=(* cluster audit cephadm)

Ceph Module:

mon

Required Permissions:

r

mds

mds compat rm_compat

remove compatible feature

Example command:
ceph mds compat rm_compat 1
Parameters:
  • feature: CephInt range= 0

Ceph Module:

mds

Required Permissions:

rw

Command Flags:

deprecated

mds compat rm_incompat

remove incompatible feature

Example command:
ceph mds compat rm_incompat 1
Parameters:
  • feature: CephInt range= 0

Ceph Module:

mds

Required Permissions:

rw

Command Flags:

deprecated

mds compat show

show mds compatibility settings

Example command:
ceph mds compat show
Ceph Module:

mds

Required Permissions:

r

Command Flags:

deprecated

mds count-metadata

count MDSs by metadata field property

Example command:
ceph mds count-metadata my_property
Parameters:
  • property: (string)

Ceph Module:

mds

Required Permissions:

r

mds fail

Mark MDS failed: trigger a failover if a standby is available

Example command:
ceph mds fail my_role_or_gid --yes_i_really_mean_it
Parameters:
  • role_or_gid: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

mds

Required Permissions:

rw

mds last-seen

fetch metadata for mds <id>

Example command:
ceph mds last-seen my_id
Parameters:
  • id: (string)

Ceph Module:

mds

Required Permissions:

r

mds metadata

fetch metadata for mds <role>

Example command:
ceph mds metadata string
Parameters:
  • who: (string)

Ceph Module:

mds

Required Permissions:

r

mds ok-to-stop

check whether stopping the specified MDS would reduce immediate availability

Example command:
ceph mds ok-to-stop --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

mds

Required Permissions:

r

mds repaired

mark a damaged MDS rank as no longer damaged

Example command:
ceph mds repaired my_role
Parameters:
  • role: (string)

Ceph Module:

mds

Required Permissions:

rw

mds rm

remove nonactive mds

Example command:
ceph mds rm 1
Parameters:
  • gid: CephInt range= 0

Ceph Module:

mds

Required Permissions:

rw

mds versions

check running versions of MDSs

Example command:
ceph mds versions
Ceph Module:

mds

Required Permissions:

r

mgr

mgr count-metadata

count ceph-mgr daemons by metadata field property

Example command:
ceph mgr count-metadata my_property
Parameters:
  • property: (string)

Ceph Module:

mgr

Required Permissions:

r

mgr dump

dump the latest MgrMap

Example command:
ceph mgr dump 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

mgr

Required Permissions:

r

mgr fail

treat the named manager daemon as failed

Example command:
ceph mgr fail string
Parameters:
  • who: (string)

Ceph Module:

mgr

Required Permissions:

rw

mgr metadata

dump metadata for all daemons or a specific daemon

Example command:
ceph mgr metadata string
Parameters:
  • who: (string)

Ceph Module:

mgr

Required Permissions:

r

mgr module disable

disable mgr module

Example command:
ceph mgr module disable my_module
Parameters:
  • module: (string)

Ceph Module:

mgr

Required Permissions:

rw

mgr module enable

enable mgr module

Example command:
ceph mgr module enable my_module --force
Parameters:
  • module: (string)

  • force: CephBool

Ceph Module:

mgr

Required Permissions:

rw

mgr module force disable

force disable a always-on mgr module

Example command:
ceph mgr module force disable my_module --yes_i_really_mean_it
Parameters:
  • module: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

mgr

Required Permissions:

rw

mgr module ls

list active mgr modules

Example command:
ceph mgr module ls
Ceph Module:

mgr

Required Permissions:

r

mgr services

list service endpoints provided by mgr modules

Example command:
ceph mgr services
Ceph Module:

mgr

Required Permissions:

r

mgr set

set mgr parameter <var> to <val>

Example command:
ceph mgr set down my_val
Parameters:
  • var: CephChoices strings=(down)

  • val: (string)

Ceph Module:

mgr

Required Permissions:

rw

mgr stat

dump basic info about the mgr cluster state

Example command:
ceph mgr stat
Ceph Module:

mgr

Required Permissions:

r

mgr versions

check running versions of ceph-mgr daemons

Example command:
ceph mgr versions
Ceph Module:

mgr

Required Permissions:

r

mon

mon add

add new monitor named <name> at <addr>, possibly with CRUSH location <location>

Example command:
ceph mon add --name=string --addr=0.0.0.0 --location=string
Parameters:
  • name: (string)

  • addr: CephIPAddr

  • location: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

mon

Required Permissions:

rw

mon add disallowed_leader

prevent the named mon from being a leader

Example command:
ceph mon add disallowed_leader my_name
Parameters:
  • name: (string)

Ceph Module:

mon

Required Permissions:

rw

mon count-metadata

count mons by metadata field property

Example command:
ceph mon count-metadata my_property
Parameters:
  • property: (string)

Ceph Module:

mon

Required Permissions:

r

mon disable_stretch_mode

disable stretch mode, reverting to normal peering rules

Example command:
ceph mon disable_stretch_mode my_crush_rule --yes_i_really_mean_it
Parameters:
  • crush_rule: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

mon

Required Permissions:

rw

mon dump

dump formatted monmap (optionally from epoch)

Example command:
ceph mon dump 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

mon

Required Permissions:

r

mon enable-msgr2

enable the msgr2 protocol on port 3300

Example command:
ceph mon enable-msgr2
Ceph Module:

mon

Required Permissions:

rw

mon enable_stretch_mode

enable stretch mode, changing the peering rules and failure handling on all pools with <tiebreaker_mon> as the tiebreaker and setting <dividing_bucket> locations as the units for stretching across

Example command:
ceph mon enable_stretch_mode my_tiebreaker_mon my_new_crush_rule
  my_dividing_bucket
Parameters:
  • tiebreaker_mon: (string)

  • new_crush_rule: (string)

  • dividing_bucket: (string)

Ceph Module:

mon

Required Permissions:

rw

mon feature ls

list available mon map features to be set/unset

Example command:
ceph mon feature ls --with_value
Parameters:
  • with_value: CephBool

Ceph Module:

mon

Required Permissions:

r

mon feature set

set provided feature on mon map

Example command:
ceph mon feature set my_feature_name --yes_i_really_mean_it
Parameters:
  • feature_name: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

mon

Required Permissions:

rw

mon getmap

get monmap

Example command:
ceph mon getmap 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

mon

Required Permissions:

r

mon metadata

fetch metadata for mon <id>

Example command:
ceph mon metadata my_id
Parameters:
  • id: (string)

Ceph Module:

mon

Required Permissions:

r

mon ok-to-add-offline

check whether adding a mon and not starting it would break quorum

Example command:
ceph mon ok-to-add-offline
Ceph Module:

mon

Required Permissions:

r

mon ok-to-rm

check whether removing the specified mon would break quorum

Example command:
ceph mon ok-to-rm my_id
Parameters:
  • id: (string)

Ceph Module:

mon

Required Permissions:

r

mon ok-to-stop

check whether mon(s) can be safely stopped without reducing immediate availability

Example command:
ceph mon ok-to-stop --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

mon

Required Permissions:

r

mon remove

remove monitor named <name>

Example command:
ceph mon remove my_name
Parameters:
  • name: (string)

Ceph Module:

mon

Required Permissions:

rw

Command Flags:

deprecated

mon rm

remove monitor named <name>

Example command:
ceph mon rm my_name
Parameters:
  • name: (string)

Ceph Module:

mon

Required Permissions:

rw

mon rm disallowed_leader

allow the named mon to be a leader again

Example command:
ceph mon rm disallowed_leader my_name
Parameters:
  • name: (string)

Ceph Module:

mon

Required Permissions:

rw

mon scrub

scrub the monitor stores

Example command:
ceph mon scrub
Ceph Module:

mon

Required Permissions:

rw

mon set election_strategy

set the election strategy to use; choices classic, disallow, connectivity

Example command:
ceph mon set election_strategy my_strategy
Parameters:
  • strategy: (string)

Ceph Module:

mon

Required Permissions:

rw

mon set-addrs

set the addrs (IPs and ports) a specific monitor binds to

Example command:
ceph mon set-addrs my_name my_addrs
Parameters:
  • name: (string)

  • addrs: (string)

Ceph Module:

mon

Required Permissions:

rw

mon set-rank

set the rank for the specified mon

Example command:
ceph mon set-rank my_name 1
Parameters:
  • name: (string)

  • rank: CephInt

Ceph Module:

mon

Required Permissions:

rw

mon set-weight

set the weight for the specified mon

Example command:
ceph mon set-weight my_name 1
Parameters:
  • name: (string)

  • weight: CephInt range= 0..65535

Ceph Module:

mon

Required Permissions:

rw

mon set_location

specify location <args> for the monitor <name>, using CRUSH bucket names

Example command:
ceph mon set_location --name=string --args=string
Parameters:
  • name: (string)

  • args: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

mon

Required Permissions:

rw

mon set_new_tiebreaker

switch the stretch tiebreaker to be the named mon

Example command:
ceph mon set_new_tiebreaker my_name --yes_i_really_mean_it
Parameters:
  • name: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

mon

Required Permissions:

rw

mon stat

summarize monitor status

Example command:
ceph mon stat
Ceph Module:

mon

Required Permissions:

r

mon versions

check running versions of monitors

Example command:
ceph mon versions
Ceph Module:

mon

Required Permissions:

r

mon_status

report status of monitors

Example command:
ceph mon_status
Ceph Module:

mon

Required Permissions:

r

node ls

list all nodes in cluster [type]

Example command:
ceph node ls all
Parameters:
  • type: CephChoices strings=(all osd mon mds mgr)

Ceph Module:

mon

Required Permissions:

r

nvme-gw

nvme-gw create

create nvmeof gateway id for (pool, group)

Example command:
ceph nvme-gw create my_id my_pool my_group
Parameters:
  • id: (string)

  • pool: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw delete

delete nvmeof gateway id for (pool, group)

Example command:
ceph nvme-gw delete my_id my_pool my_group
Parameters:
  • id: (string)

  • pool: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw disable

administratively disables nvmeof gateway id for (pool, group)

Example command:
ceph nvme-gw disable my_id my_pool my_group
Parameters:
  • id: (string)

  • pool: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw disaster-clear

set location to clear Disaster state - failbacks allowed for

recovered location

Example command:
ceph nvme-gw disaster-clear my_pool my_group my_location
Parameters:
  • pool: (string)

  • group: (string)

  • location: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw disaster-set

set location to Disaster state

Example command:
ceph nvme-gw disaster-set my_pool my_group my_location
Parameters:
  • pool: (string)

  • group: (string)

  • location: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw enable

administratively enables nvmeof gateway id for (pool, group)

Example command:
ceph nvme-gw enable my_id my_pool my_group
Parameters:
  • id: (string)

  • pool: (string)

  • group: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw listeners

show all nvmeof gateways listeners within (pool, group)

Example command:
ceph nvme-gw listeners my_pool my_group
Parameters:
  • pool: (string)

  • group: (string)

Ceph Module:

mon

Required Permissions:

r

nvme-gw set-location

set location for nvmeof gateway id for (pool, group)

Example command:
ceph nvme-gw set-location --id=string --pool=string --group=string
  --location=string
Parameters:
  • id: (string)

  • pool: (string)

  • group: (string)

  • location: (string)

Ceph Module:

mgr

Required Permissions:

rw

nvme-gw show

show nvmeof gateways within (pool, group)

Example command:
ceph nvme-gw show my_pool my_group
Parameters:
  • pool: (string)

  • group: (string)

Ceph Module:

mon

Required Permissions:

r

ops

show the ops currently in flight

Example command:
ceph ops
Ceph Module:

mon

Required Permissions:

r

osd

osd add-nodown

mark osd(s) <id> [<id>…] as nodown, or use <all|any> to mark all osds as nodown

Example command:
ceph osd add-nodown --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd add-noin

mark osd(s) <id> [<id>…] as noin, or use <all|any> to mark all osds as noin

Example command:
ceph osd add-noin --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd add-noout

mark osd(s) <id> [<id>…] as noout, or use <all|any> to mark all osds as noout

Example command:
ceph osd add-noout --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd add-noup

mark osd(s) <id> [<id>…] as noup, or use <all|any> to mark all osds as noup

Example command:
ceph osd add-noup --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd blacklist

add (optionally until <expire> seconds from now) or remove <addr> from blacklist

Example command:
ceph osd blacklist add entityaddr 0.0
Parameters:
  • blacklistop: CephChoices strings=(add rm)

  • addr: CephEntityAddr

  • expire: CephFloat range= 0.0

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd blacklist clear

clear all blacklisted clients

Example command:
ceph osd blacklist clear
Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd blacklist ls

show blacklisted clients

Example command:
ceph osd blacklist ls
Ceph Module:

osd

Required Permissions:

r

Command Flags:

deprecated

osd blocked-by

print histogram of which OSDs are blocking their peers

Example command:
ceph osd blocked-by
Ceph Module:

osd

Required Permissions:

r

osd blocklist

add (optionally until <expire> seconds from now) or remove <addr> from blocklist

Example command:
ceph osd blocklist --blocklistop=add --addr=entityaddr --range=string
  --expire=0.0
Parameters:
  • blocklistop: CephChoices strings=(add rm)

  • addr: CephEntityAddr

  • range: goodchars= [range]

  • expire: CephFloat range= 0.0

Ceph Module:

osd

Required Permissions:

rw

osd blocklist clear

clear all blocklisted clients

Example command:
ceph osd blocklist clear
Ceph Module:

osd

Required Permissions:

rw

osd blocklist ls

show blocklisted clients

Example command:
ceph osd blocklist ls
Ceph Module:

osd

Required Permissions:

r

osd count-metadata

count OSDs by metadata field property

Example command:
ceph osd count-metadata my_property
Parameters:
  • property: (string)

Ceph Module:

osd

Required Permissions:

r

osd create

create new osd (with optional UUID and ID)

Example command:
ceph osd create uuid osd.0
Parameters:
  • uuid: CephUUID

  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd crush add

add or update crushmap position and weight for <name> with <weight> and location <args>

Example command:
ceph osd crush add --id=osd.0 --weight=0.0 --args=string
Parameters:
  • id: CephOsdName

  • weight: CephFloat range= 0.0

  • args: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush add-bucket

add no-parent (probably root) crush bucket <name> of type <type> to location <args>

Example command:
ceph osd crush add-bucket --name=string --type=string --args=string
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • type: (string)

  • args: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush class create

create crush device class <class>

Example command:
ceph osd crush class create my_class
Parameters:
  • class: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush class ls

list all crush device classes

Example command:
ceph osd crush class ls
Ceph Module:

osd

Required Permissions:

r

osd crush class ls-osd

list all osds belonging to the specific <class>

Example command:
ceph osd crush class ls-osd my_class
Parameters:
  • class: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

r

osd crush class rename

rename crush device class <srcname> to <dstname>

Example command:
ceph osd crush class rename my_srcname my_dstname
Parameters:
  • srcname: goodchars= [A-Za-z0-9-_]

  • dstname: goodchars= [A-Za-z0-9-_]

Ceph Module:

osd

Required Permissions:

rw

osd crush class rm

remove crush device class <class>

Example command:
ceph osd crush class rm my_class
Parameters:
  • class: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush create-or-move

create entry or move existing entry for <name> <weight> at/to location <args>

Example command:
ceph osd crush create-or-move --id=osd.0 --weight=0.0 --args=string
Parameters:
  • id: CephOsdName

  • weight: CephFloat range= 0.0

  • args: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush dump

dump crush map

Example command:
ceph osd crush dump
Ceph Module:

osd

Required Permissions:

r

osd crush get-device-class

get classes of specified osd(s) <id> [<id>…]

Example command:
ceph osd crush get-device-class --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

r

osd crush get-tunable

get crush tunable <tunable>

Example command:
ceph osd crush get-tunable straw_calc_version
Parameters:
  • tunable: CephChoices strings=(straw_calc_version)

Ceph Module:

osd

Required Permissions:

r

osd crush ls

list items beneath a node in the CRUSH tree

Example command:
ceph osd crush ls my_node
Parameters:
  • node: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

r

osd crush move

move existing entry for <name> to location <args>

Example command:
ceph osd crush move --name=string --args=string
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • args: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush remove

remove <name> from crush map (everywhere, or just at <ancestor>)

Example command:
ceph osd crush remove my_name my_ancestor
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • ancestor: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd crush rename-bucket

rename bucket <srcname> to <dstname>

Example command:
ceph osd crush rename-bucket my_srcname my_dstname
Parameters:
  • srcname: goodchars= [A-Za-z0-9-_.]

  • dstname: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush reweight

change <name>’s weight to <weight> in crush map

Example command:
ceph osd crush reweight my_name 0.0
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • weight: CephFloat range= 0.0

Ceph Module:

osd

Required Permissions:

rw

osd crush reweight-all

recalculate the weights for the tree to ensure they sum correctly

Example command:
ceph osd crush reweight-all
Ceph Module:

osd

Required Permissions:

rw

osd crush reweight-subtree

change all leaf items beneath <name> to <weight> in crush map

Example command:
ceph osd crush reweight-subtree my_name 0.0
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • weight: CephFloat range= 0.0

Ceph Module:

osd

Required Permissions:

rw

osd crush rm

remove <name> from crush map (everywhere, or just at <ancestor>)

Example command:
ceph osd crush rm my_name my_ancestor
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • ancestor: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush rm-device-class

remove class of the osd(s) <id> [<id>…],or use <all|any> to remove all.

Example command:
ceph osd crush rm-device-class --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush rule create-erasure

create crush rule <name> for erasure coded pool created with <profile> (default default)

Example command:
ceph osd crush rule create-erasure my_name my_profile
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • profile: goodchars= [A-Za-z0-9-_.=]

Ceph Module:

osd

Required Permissions:

rw

osd crush rule create-replicated

create crush rule <name> for replicated pool to start from <root>, replicate across buckets of type <type>, use devices of type <class> (ssd or hdd)

Example command:
ceph osd crush rule create-replicated --name=string --root=string
  --type=string --class=string
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • root: goodchars= [A-Za-z0-9-_.]

  • type: goodchars= [A-Za-z0-9-_.]

  • class: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush rule create-simple

create crush rule <name> to start from <root>, replicate across buckets of type <type>, using a choose mode of <firstn|indep> (default firstn; indep best for erasure pools)

Example command:
ceph osd crush rule create-simple --name=string --root=string
  --type=string --mode=firstn
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • root: goodchars= [A-Za-z0-9-_.]

  • type: goodchars= [A-Za-z0-9-_.]

  • mode: CephChoices strings=(firstn indep)

Ceph Module:

osd

Required Permissions:

rw

osd crush rule dump

dump crush rule <name> (default all)

Example command:
ceph osd crush rule dump my_name
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

r

osd crush rule list

list crush rules

Example command:
ceph osd crush rule list
Ceph Module:

osd

Required Permissions:

r

Command Flags:

deprecated

osd crush rule ls

list crush rules

Example command:
ceph osd crush rule ls
Ceph Module:

osd

Required Permissions:

r

osd crush rule ls-by-class

list all crush rules that reference the same <class>

Example command:
ceph osd crush rule ls-by-class my_class
Parameters:
  • class: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

r

osd crush rule rename

rename crush rule <srcname> to <dstname>

Example command:
ceph osd crush rule rename my_srcname my_dstname
Parameters:
  • srcname: goodchars= [A-Za-z0-9-_.]

  • dstname: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush rule rm

remove crush rule <name>

Example command:
ceph osd crush rule rm my_name
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd crush set

set crush map from input file

Example command:
ceph osd crush set 1
Parameters:
  • prior_version: CephInt

Ceph Module:

osd

Required Permissions:

rw

osd crush set

update crushmap position and weight for <name> to <weight> with location <args>

Example command:
ceph osd crush set --id=osd.0 --weight=0.0 --args=string
Parameters:
  • id: CephOsdName

  • weight: CephFloat range= 0.0

  • args: goodchars= [A-Za-z0-9-_.=] (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush set-all-straw-buckets-to-straw2

convert all CRUSH current straw buckets to use the straw2 algorithm

Example command:
ceph osd crush set-all-straw-buckets-to-straw2
Ceph Module:

osd

Required Permissions:

rw

osd crush set-device-class

set the <class> of the osd(s) <id> [<id>…],or use <all|any> to set all.

Example command:
ceph osd crush set-device-class --class=string --ids=string
Parameters:
  • class: goodchars= [A-Za-z0-9-_.]

  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush set-tunable

set crush tunable <tunable> to <value>

Example command:
ceph osd crush set-tunable straw_calc_version 1
Parameters:
  • tunable: CephChoices strings=(straw_calc_version)

  • value: CephInt

Ceph Module:

osd

Required Permissions:

rw

osd crush show-tunables

show current crush tunables

Example command:
ceph osd crush show-tunables
Ceph Module:

osd

Required Permissions:

r

osd crush swap-bucket

swap existing bucket contents from (orphan) bucket <source> and <target>

Example command:
ceph osd crush swap-bucket my_source my_dest --yes_i_really_mean_it
Parameters:
  • source: goodchars= [A-Za-z0-9-_.]

  • dest: goodchars= [A-Za-z0-9-_.]

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd crush tree

dump crush buckets and items in a tree view

Example command:
ceph osd crush tree --show_shadow
Parameters:
  • show_shadow: CephBool

Ceph Module:

osd

Required Permissions:

r

osd crush tunables

set crush tunables values to <profile>

Example command:
ceph osd crush tunables legacy
Parameters:
  • profile: CephChoices strings=(legacy argonaut bobtail firefly hammer jewel optimal default)

Ceph Module:

osd

Required Permissions:

rw

osd crush weight-set create

create a weight-set for a given pool

Example command:
ceph osd crush weight-set create poolname flat
Parameters:
  • pool: CephPoolname

  • mode: CephChoices strings=(flat positional)

Ceph Module:

osd

Required Permissions:

rw

osd crush weight-set create-compat

create a default backward-compatible weight-set

Example command:
ceph osd crush weight-set create-compat
Ceph Module:

osd

Required Permissions:

rw

osd crush weight-set dump

dump crush weight sets

Example command:
ceph osd crush weight-set dump
Ceph Module:

osd

Required Permissions:

r

osd crush weight-set ls

list crush weight sets

Example command:
ceph osd crush weight-set ls
Ceph Module:

osd

Required Permissions:

r

osd crush weight-set reweight

set weight for an item (bucket or osd) in a pool’s weight-set

Example command:
ceph osd crush weight-set reweight --pool=poolname --item=string
  --weight=0.0
Parameters:
  • pool: CephPoolname

  • item: (string)

  • weight: CephFloat range= 0.0 (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush weight-set reweight-compat

set weight for an item (bucket or osd) in the backward-compatible weight-set

Example command:
ceph osd crush weight-set reweight-compat --item=string --weight=0.0
Parameters:
  • item: (string)

  • weight: CephFloat range= 0.0 (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd crush weight-set rm

remove the weight-set for a given pool

Example command:
ceph osd crush weight-set rm poolname
Parameters:
  • pool: CephPoolname

Ceph Module:

osd

Required Permissions:

rw

osd crush weight-set rm-compat

remove the backward-compatible weight-set

Example command:
ceph osd crush weight-set rm-compat
Ceph Module:

osd

Required Permissions:

rw

osd deep-scrub

initiate deep scrub on osd <who>, or use <all|any> to deep scrub all

Example command:
ceph osd deep-scrub string
Parameters:
  • who: (string)

Ceph Module:

osd

Required Permissions:

rw

osd destroy

mark osd as being destroyed. Keeps the ID intact (allowing reuse), but removes cephx keys, config-key data and lockbox keys, rendering data permanently unreadable.

Example command:
ceph osd destroy osd.0 --force --yes_i_really_mean_it
Parameters:
  • id: CephOsdName

  • force: CephBool

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd df

show OSD utilization

Example command:
ceph osd df plain class my_filter
Parameters:
  • output_method: CephChoices strings=(plain tree)

  • filter_by: CephChoices strings=(class name)

  • filter: (string)

Ceph Module:

osd

Required Permissions:

r

osd down

set osd(s) <id> [<id>…] down, or use <any|all> to set all osds down

Example command:
ceph osd down --ids=string --definitely_dead
Parameters:
  • ids: (can be repeated)

  • definitely_dead: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd dump

print summary of OSD map

Example command:
ceph osd dump 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

osd

Required Permissions:

r

osd erasure-code-profile get

get erasure code profile <name>

Example command:
ceph osd erasure-code-profile get my_name
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

r

osd erasure-code-profile ls

list all erasure code profiles

Example command:
ceph osd erasure-code-profile ls
Ceph Module:

osd

Required Permissions:

r

osd erasure-code-profile rm

remove erasure code profile <name>

Example command:
ceph osd erasure-code-profile rm my_name
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

Ceph Module:

osd

Required Permissions:

rw

osd erasure-code-profile set

create erasure code profile <name> with [<key[=value]> …] pairs. Add a --force at the end to override an existing profile (VERY DANGEROUS)

Example command:
ceph osd erasure-code-profile set --name=string --profile=string
  --force --yes_i_really_mean_it
Parameters:
  • name: goodchars= [A-Za-z0-9-_.]

  • profile: (can be repeated)

  • force: CephBool

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd find

find osd <id> in the CRUSH map and show its location

Example command:
ceph osd find osd.0
Parameters:
  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

r

osd force-create-pg

force creation of pg <pgid>

Example command:
ceph osd force-create-pg 0 --yes_i_really_mean_it
Parameters:
  • pgid: CephPgid

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd force_healthy_stretch_mode

force a healthy stretch mode, requiring the full number of CRUSH buckets to peer and letting all non-tiebreaker monitors be elected leader

Example command:
ceph osd force_healthy_stretch_mode --yes_i_really_mean_it
Parameters:
  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd force_recovery_stretch_mode

try and force a recovery stretch mode, increasing the pool size to its non-failure value if currently degraded and all monitor buckets are up

Example command:
ceph osd force_recovery_stretch_mode --yes_i_really_mean_it
Parameters:
  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd get-require-min-compat-client

get the minimum client version we will maintain compatibility with

Example command:
ceph osd get-require-min-compat-client
Ceph Module:

osd

Required Permissions:

r

osd getcrushmap

get CRUSH map

Example command:
ceph osd getcrushmap 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

osd

Required Permissions:

r

osd getmap

get OSD map

Example command:
ceph osd getmap 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

osd

Required Permissions:

r

osd getmaxosd

show largest OSD id

Example command:
ceph osd getmaxosd
Ceph Module:

osd

Required Permissions:

r

osd in

set osd(s) <id> [<id>…] in, can use <any|all> to automatically set all previously out osds in

Example command:
ceph osd in --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd info

print osd’s {id} information (instead of all osds from map)

Example command:
ceph osd info osd.0
Parameters:
  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

r

osd last-stat-seq

get the last pg stats sequence number reported for this osd

Example command:
ceph osd last-stat-seq osd.0
Parameters:
  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

r

osd lost

mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL

Example command:
ceph osd lost osd.0 --yes_i_really_mean_it
Parameters:
  • id: CephOsdName

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd ls

show all OSD ids

Example command:
ceph osd ls 1
Parameters:
  • epoch: CephInt range= 0

Ceph Module:

osd

Required Permissions:

r

osd ls-tree

show OSD ids under bucket <name> in the CRUSH map

Example command:
ceph osd ls-tree my_name 1
Parameters:
  • name: (string)

  • epoch: CephInt range= 0

Ceph Module:

osd

Required Permissions:

r

osd lspools

list pools

Example command:
ceph osd lspools
Ceph Module:

osd

Required Permissions:

r

Command Flags:

deprecated

osd map

find pg for <object> in <pool> with [namespace]

Example command:
ceph osd map poolname objectname my_nspace
Parameters:
  • pool: CephPoolname

  • object: CephObjectname

  • nspace: (string)

Ceph Module:

osd

Required Permissions:

r

osd metadata

fetch metadata for osd {id} (default all)

Example command:
ceph osd metadata osd.0
Parameters:
  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

r

osd new

Create a new OSD. If supplied, the id to be replaced needs to exist and have been previously destroyed. Reads secrets from JSON file via -i <file> (see man page).

Example command:
ceph osd new uuid osd.0
Parameters:
  • uuid: CephUUID

  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

rw

osd numa-status

show NUMA status of OSDs

Example command:
ceph osd numa-status
Ceph Module:

osd

Required Permissions:

r

osd ok-to-stop

check whether osd(s) can be safely stopped without reducing immediate data availability

Example command:
ceph osd ok-to-stop --ids=string --max=1
Parameters:
  • ids: (can be repeated)

  • max: CephInt

Ceph Module:

osd

Required Permissions:

r

osd ok-to-upgrade

determine a safe number of osd(s) subject to a maximum(if specified) within the provided CRUSH bucket that can be safely upgraded without reducing immediate data availability

Example command:
ceph osd ok-to-upgrade my_crush_bucket my_ceph_version 1
Parameters:
  • crush_bucket: (string)

  • ceph_version: (string)

  • max: CephInt

Ceph Module:

osd

Required Permissions:

r

osd out

set osd(s) <id> [<id>…] out, or use <any|all> to set all osds out

Example command:
ceph osd out --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pause

pause osd

Example command:
ceph osd pause
Ceph Module:

osd

Required Permissions:

rw

osd perf

print dump of OSD perf summary stats

Example command:
ceph osd perf
Ceph Module:

osd

Required Permissions:

r

osd pg-temp

set pg_temp mapping <pgid>:[<id> [<id>…]] (developers only)

Example command:
ceph osd pg-temp --pgid=0 --id=osd.0
Parameters:
  • pgid: CephPgid

  • id: CephOsdName (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pg-upmap

set pg_upmap mapping <pgid>:[<id> [<id>…]] (developers only)

Example command:
ceph osd pg-upmap --pgid=0 --id=osd.0
Parameters:
  • pgid: CephPgid

  • id: CephOsdName (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pg-upmap-items

set pg_upmap_items mapping <pgid>:{<id> to <id>, […]} (developers only)

Example command:
ceph osd pg-upmap-items --pgid=0 --id=osd.0
Parameters:
  • pgid: CephPgid

  • id: CephOsdName (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pg-upmap-primary

set pg primary osd <pgid>:<id> (id (osd) must be part of pgid)

Example command:
ceph osd pg-upmap-primary 0 osd.0
Parameters:
  • pgid: CephPgid

  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

rw

osd pool application disable

disables use of an application <app> on pool <poolname>

Example command:
ceph osd pool application disable poolname my_app
  --yes_i_really_mean_it
Parameters:
  • pool: CephPoolname

  • app: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool application enable

enable use of an application <app> [cephfs,rbd,rgw] on pool <poolname>

Example command:
ceph osd pool application enable poolname my_app
  --yes_i_really_mean_it
Parameters:
  • pool: CephPoolname

  • app: goodchars= [A-Za-z0-9-_.]

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool application get

get value of key <key> of application <app> on pool <poolname>

Example command:
ceph osd pool application get poolname my_app my_key
Parameters:
  • pool: CephPoolname

  • app: (string)

  • key: (string)

Ceph Module:

osd

Required Permissions:

r

osd pool application rm

removes application <app> metadata key <key> on pool <poolname>

Example command:
ceph osd pool application rm poolname my_app my_key
Parameters:
  • pool: CephPoolname

  • app: (string)

  • key: (string)

Ceph Module:

osd

Required Permissions:

rw

osd pool application set

sets application <app> metadata key <key> to <value> on pool <poolname>

Example command:
ceph osd pool application set --pool=poolname --app=string
  --key=string --value=string
Parameters:
  • pool: CephPoolname

  • app: (string)

  • key: goodchars= [A-Za-z0-9-_.]

  • value: goodchars= [A-Za-z0-9-_.=]

Ceph Module:

osd

Required Permissions:

rw

osd pool availability-status

obtain availability stats from all pools

Example command:
ceph osd pool availability-status
Ceph Module:

osd

Required Permissions:

r

osd pool cancel-force-backfill

restore normal recovery priority of specified pool <who>

Example command:
ceph osd pool cancel-force-backfill --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool cancel-force-recovery

restore normal recovery priority of specified pool <who>

Example command:
ceph osd pool cancel-force-recovery --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool clear-availability-status

clear a pool’s existing availability stats

Example command:
ceph osd pool clear-availability-status poolname
Parameters:
  • pool: CephPoolname

Ceph Module:

osd

Required Permissions:

r

osd pool create

create pool

Example command:
ceph osd pool create --pool=poolname --pg_num=0 --pgp_num=0
  --pool_type=replicated --erasure_code_profile=string --rule=string
  --expected_num_objects=0 --size=0 --pg_num_min=0 --pg_num_max=0
  --autoscale_mode=on --bulk --target_size_bytes=0
  --target_size_ratio=0.0 --yes_i_really_mean_it
Parameters:
  • pool: CephPoolname

  • pg_num: CephInt range= 0

  • pgp_num: CephInt range= 0

  • pool_type: CephChoices strings=(replicated erasure)

  • erasure_code_profile: goodchars= [A-Za-z0-9-_.]

  • rule: (string)

  • expected_num_objects: CephInt range= 0

  • size: CephInt range= 0

  • pg_num_min: CephInt range= 0

  • pg_num_max: CephInt range= 0

  • autoscale_mode: CephChoices strings=(on off warn)

  • bulk: CephBool

  • target_size_bytes: CephInt range= 0

  • target_size_ratio: CephFloat range= 0.0

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool deep-scrub

initiate deep-scrub on pool <who>

Example command:
ceph osd pool deep-scrub --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool delete

delete pool

Example command:
ceph osd pool delete --pool=poolname --pool2=poolname
  --yes_i_really_really_mean_it --yes_i_really_really_mean_it_not_faking
Parameters:
  • pool: CephPoolname

  • pool2: CephPoolname

  • yes_i_really_really_mean_it: CephBool

  • yes_i_really_really_mean_it_not_faking: CephBool

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd pool force-backfill

force backfill of specified pool <who> first

Example command:
ceph osd pool force-backfill --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool force-recovery

force recovery of specified pool <who> first

Example command:
ceph osd pool force-recovery --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool force-remove-snap

Forces removal of snapshots in the range [lower_snapid_bound, upper_snapid_bound) on pool <pool> in order to cause OSDs to re-trim them.

Example command:
ceph osd pool force-remove-snap --pool=poolname --lower_snapid_bound=0
  --upper_snapid_bound=0 --dry_run
Parameters:
  • pool: CephPoolname

  • lower_snapid_bound: CephInt range= 0

  • upper_snapid_bound: CephInt range= 0

  • dry_run: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool get

get pool parameter <var>

Example command:
ceph osd pool get poolname size
Parameters:
  • pool: CephPoolname

  • var: CephChoices strings=(size min_size pg_num pgp_num crush_rule hashpspool nodelete nopgchange nosizechange write_fadvise_dontneed noscrub nodeep-scrub hit_set_type hit_set_period hit_set_count hit_set_fpp use_gmt_hitset target_max_objects target_max_bytes cache_target_dirty_ratio cache_target_dirty_high_ratio cache_target_full_ratio cache_min_flush_age cache_min_evict_age erasure_code_profile min_read_recency_for_promote all min_write_recency_for_promote fast_read hit_set_grade_decay_rate hit_set_search_last_n scrub_min_interval scrub_max_interval deep_scrub_interval recovery_priority recovery_op_priority scrub_priority compression_mode compression_algorithm compression_required_ratio compression_max_blob_size compression_min_blob_size csum_type csum_min_block csum_max_block allow_ec_overwrites fingerprint_algorithm pg_autoscale_mode pg_autoscale_bias pg_num_min pg_num_max target_size_bytes target_size_ratio dedup_tier dedup_chunk_algorithm dedup_cdc_chunk_size eio bulk read_ratio pct_update_delay allow_ec_optimizations)

Ceph Module:

osd

Required Permissions:

r

osd pool get-quota

obtain object or byte limits for pool

Example command:
ceph osd pool get-quota poolname
Parameters:
  • pool: CephPoolname

Ceph Module:

osd

Required Permissions:

r

osd pool ls

list pools

Example command:
ceph osd pool ls detail
Parameters:
  • detail: CephChoices strings=(detail)

Ceph Module:

osd

Required Permissions:

r

osd pool mksnap

make snapshot <snap> in <pool>

Example command:
ceph osd pool mksnap poolname my_snap
Parameters:
  • pool: CephPoolname

  • snap: (string)

Ceph Module:

osd

Required Permissions:

rw

osd pool rename

rename <srcpool> to <destpool>

Example command:
ceph osd pool rename poolname poolname --yes_i_really_mean_it
Parameters:
  • srcpool: CephPoolname

  • destpool: CephPoolname

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool repair

initiate repair on pool <who>

Example command:
ceph osd pool repair --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool rm

remove pool

Example command:
ceph osd pool rm --pool=poolname --pool2=poolname
  --yes_i_really_really_mean_it --yes_i_really_really_mean_it_not_faking
Parameters:
  • pool: CephPoolname

  • pool2: CephPoolname

  • yes_i_really_really_mean_it: CephBool

  • yes_i_really_really_mean_it_not_faking: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool rmsnap

remove snapshot <snap> from <pool>

Example command:
ceph osd pool rmsnap poolname my_snap
Parameters:
  • pool: CephPoolname

  • snap: (string)

Ceph Module:

osd

Required Permissions:

rw

osd pool scrub

initiate scrub on pool <who>

Example command:
ceph osd pool scrub --who=poolname
Parameters:
  • who: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd pool set

set pool parameter <var> to <val>

Example command:
ceph osd pool set --pool=poolname --var=size --val=string
  --yes_i_really_mean_it
Parameters:
  • pool: CephPoolname

  • var: CephChoices strings=(size min_size pg_num pgp_num pgp_num_actual crush_rule hashpspool nodelete nopgchange nosizechange write_fadvise_dontneed noscrub nodeep-scrub hit_set_type hit_set_period hit_set_count hit_set_fpp use_gmt_hitset target_max_bytes target_max_objects cache_target_dirty_ratio cache_target_dirty_high_ratio cache_target_full_ratio cache_min_flush_age cache_min_evict_age min_read_recency_for_promote min_write_recency_for_promote fast_read hit_set_grade_decay_rate hit_set_search_last_n scrub_min_interval scrub_max_interval deep_scrub_interval recovery_priority recovery_op_priority scrub_priority compression_mode compression_algorithm compression_required_ratio compression_max_blob_size compression_min_blob_size csum_type csum_min_block csum_max_block allow_ec_overwrites fingerprint_algorithm pg_autoscale_mode pg_autoscale_bias pg_num_min pg_num_max target_size_bytes target_size_ratio dedup_tier dedup_chunk_algorithm dedup_cdc_chunk_size eio bulk read_ratio pct_update_delay allow_ec_optimizations)

  • val: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool set-quota

set object or byte limit on pool

Example command:
ceph osd pool set-quota poolname max_objects my_val
Parameters:
  • pool: CephPoolname

  • field: CephChoices strings=(max_objects max_bytes)

  • val: (string)

Ceph Module:

osd

Required Permissions:

rw

osd pool stats

obtain stats from all pools, or from specified pool

Example command:
ceph osd pool stats poolname
Parameters:
  • pool_name: CephPoolname

Ceph Module:

osd

Required Permissions:

r

osd pool stretch set

make the pool stretched across the specified number of CRUSH buckets

Example command:
ceph osd pool stretch set --pool=poolname
  --peering_crush_bucket_count=0 --peering_crush_bucket_target=0
  --peering_crush_bucket_barrier=string --crush_rule=string --size=0
  --min_size=0 --yes_i_really_mean_it
Parameters:
  • pool: CephPoolname

  • peering_crush_bucket_count: CephInt range= 0

  • peering_crush_bucket_target: CephInt range= 0

  • peering_crush_bucket_barrier: (string)

  • crush_rule: (string)

  • size: CephInt range= 0

  • min_size: CephInt range= 0

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd pool stretch show

show all the stretch related information for the pool

Example command:
ceph osd pool stretch show poolname
Parameters:
  • pool: CephPoolname

Ceph Module:

osd

Required Permissions:

r

osd pool stretch unset

unset the stretch mode for the pool

Example command:
ceph osd pool stretch unset --pool=poolname --crush_rule=string
  --size=0 --min_size=0
Parameters:
  • pool: CephPoolname

  • crush_rule: (string)

  • size: CephInt range= 0

  • min_size: CephInt range= 0

Ceph Module:

osd

Required Permissions:

rw

osd primary-affinity

adjust osd primary-affinity from 0.0 <= <weight> <= 1.0

Example command:
ceph osd primary-affinity osd.0 0.0
Parameters:
  • id: CephOsdName

  • weight: CephFloat range= 0.0..1.0

Ceph Module:

osd

Required Permissions:

rw

osd primary-temp

set primary_temp mapping pgid:<id> (developers only)

Example command:
ceph osd primary-temp 0 osd.0
Parameters:
  • pgid: CephPgid

  • id: CephOsdName

Ceph Module:

osd

Required Permissions:

rw

osd purge

purge all osd data from the monitors including the OSD id and CRUSH position

Example command:
ceph osd purge osd.0 --force --yes_i_really_mean_it
Parameters:
  • id: CephOsdName

  • force: CephBool

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd purge-new

purge all traces of an OSD that was partially created but never started

Example command:
ceph osd purge-new osd.0 --yes_i_really_mean_it
Parameters:
  • id: CephOsdName

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd repair

initiate repair on osd <who>, or use <all|any> to repair all

Example command:
ceph osd repair string
Parameters:
  • who: (string)

Ceph Module:

osd

Required Permissions:

rw

osd require-osd-release

set the minimum allowed OSD release to participate in the cluster

Example command:
ceph osd require-osd-release octopus --yes_i_really_mean_it
Parameters:
  • release: CephChoices strings=(octopus pacific quincy reef squid tentacle)

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd reweight

reweight osd to 0.0 < <weight> < 1.0

Example command:
ceph osd reweight osd.0 0.0
Parameters:
  • id: CephOsdName

  • weight: CephFloat range= 0.0..1.0

Ceph Module:

osd

Required Permissions:

rw

osd reweight-by-pg

reweight OSDs by PG distribution [overload-percentage-for- consideration, default 120]

Example command:
ceph osd reweight-by-pg --oload=1 --max_change=0.0 --max_osds=1
  --pools=poolname
Parameters:
  • oload: CephInt

  • max_change: CephFloat

  • max_osds: CephInt

  • pools: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd reweight-by-utilization

reweight OSDs by utilization [overload-percentage-for-consideration, default 120]

Example command:
ceph osd reweight-by-utilization --oload=1 --max_change=0.0
  --max_osds=1 --no_increasing
Parameters:
  • oload: CephInt

  • max_change: CephFloat

  • max_osds: CephInt

  • no_increasing: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd reweightn

reweight osds with {<id>: <weight>,…}

Example command:
ceph osd reweightn my_weights
Parameters:
  • weights: (string)

Ceph Module:

osd

Required Permissions:

rw

osd rm

remove osd(s) <id> [<id>…], or use <any|all> to remove all osds

Example command:
ceph osd rm --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd rm-nodown

allow osd(s) <id> [<id>…] to be marked down (if they are currently marked as nodown), can use <all|any> to automatically filter out all nodown osds

Example command:
ceph osd rm-nodown --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd rm-noin

allow osd(s) <id> [<id>…] to be marked in (if they are currently marked as noin), can use <all|any> to automatically filter out all noin osds

Example command:
ceph osd rm-noin --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd rm-noout

allow osd(s) <id> [<id>…] to be marked out (if they are currently marked as noout), can use <all|any> to automatically filter out all noout osds

Example command:
ceph osd rm-noout --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd rm-noup

allow osd(s) <id> [<id>…] to be marked up (if they are currently marked as noup), can use <all|any> to automatically filter out all noup osds

Example command:
ceph osd rm-noup --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd rm-pg-upmap

clear pg_upmap mapping for <pgid> (developers only)

Example command:
ceph osd rm-pg-upmap 0
Parameters:
  • pgid: CephPgid

Ceph Module:

osd

Required Permissions:

rw

osd rm-pg-upmap-items

clear pg_upmap_items mapping for <pgid> (developers only)

Example command:
ceph osd rm-pg-upmap-items 0
Parameters:
  • pgid: CephPgid

Ceph Module:

osd

Required Permissions:

rw

osd rm-pg-upmap-primary

clear pg primary setting for <pgid>

Example command:
ceph osd rm-pg-upmap-primary 0
Parameters:
  • pgid: CephPgid

Ceph Module:

osd

Required Permissions:

rw

osd rm-pg-upmap-primary-all

clear all pg primary entries (developers only)

Example command:
ceph osd rm-pg-upmap-primary-all
Ceph Module:

osd

Required Permissions:

rw

osd rm-primary-temp

clear primary_temp mapping pgid (developers only)

Example command:
ceph osd rm-primary-temp 0
Parameters:
  • pgid: CephPgid

Ceph Module:

osd

Required Permissions:

rw

osd safe-to-destroy

check whether osd(s) can be safely destroyed without reducing data durability

Example command:
ceph osd safe-to-destroy --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

r

osd scrub

initiate scrub on osd <who>, or use <all|any> to scrub all

Example command:
ceph osd scrub string
Parameters:
  • who: (string)

Ceph Module:

osd

Required Permissions:

rw

osd set

set <key>

Example command:
ceph osd set full --yes_i_really_mean_it
Parameters:
  • key: CephChoices strings=(full pause noup nodown noout noin nobackfill norebalance norecover noscrub nodeep-scrub notieragent nosnaptrim pglog_hardlimit noautoscale)

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd set-allow-crimson

Allow crimson-osds to boot and join the cluster. Note, crimson-osd is not yet considered stable and may crash or cause data loss -- should be avoided outside of testing and development. This setting is irrevocable

Example command:
ceph osd set-allow-crimson --yes_i_really_mean_it
Parameters:
  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd set-backfillfull-ratio

set usage ratio at which OSDs are marked too full to backfill

Example command:
ceph osd set-backfillfull-ratio 0.0
Parameters:
  • ratio: CephFloat range= 0.0..1.0

Ceph Module:

osd

Required Permissions:

rw

osd set-full-ratio

set usage ratio at which OSDs are marked full

Example command:
ceph osd set-full-ratio 0.0
Parameters:
  • ratio: CephFloat range= 0.0..1.0

Ceph Module:

osd

Required Permissions:

rw

osd set-group

set <flags> for batch osds or crush nodes, <flags> must be a comma- separated subset of {noup,nodown,noin,noout}

Example command:
ceph osd set-group --flags=string --who=string
Parameters:
  • flags: (string)

  • who: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd set-nearfull-ratio

set usage ratio at which OSDs are marked near-full

Example command:
ceph osd set-nearfull-ratio 0.0
Parameters:
  • ratio: CephFloat range= 0.0..1.0

Ceph Module:

osd

Required Permissions:

rw

osd set-require-min-compat-client

set the minimum client version we will maintain compatibility with

Example command:
ceph osd set-require-min-compat-client my_version
  --yes_i_really_mean_it
Parameters:
  • version: (string)

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd setcrushmap

set crush map from input file

Example command:
ceph osd setcrushmap 1
Parameters:
  • prior_version: CephInt

Ceph Module:

osd

Required Permissions:

rw

osd setmaxosd

set new maximum osd value

Example command:
ceph osd setmaxosd 1
Parameters:
  • newmax: CephInt range= 0

Ceph Module:

osd

Required Permissions:

rw

osd stat

print summary of OSD map

Example command:
ceph osd stat
Ceph Module:

osd

Required Permissions:

r

osd stop

stop the corresponding osd daemons and mark them as down

Example command:
ceph osd stop --ids=string
Parameters:
  • ids: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd test-reweight-by-pg

dry run of reweight OSDs by PG distribution [overload-percentage-for- consideration, default 120]

Example command:
ceph osd test-reweight-by-pg --oload=1 --max_change=0.0 --max_osds=1
  --pools=poolname
Parameters:
  • oload: CephInt

  • max_change: CephFloat

  • max_osds: CephInt

  • pools: CephPoolname (can be repeated)

Ceph Module:

osd

Required Permissions:

r

osd test-reweight-by-utilization

dry run of reweight OSDs by utilization [overload-percentage-for- consideration, default 120]

Example command:
ceph osd test-reweight-by-utilization --oload=1 --max_change=0.0
  --max_osds=1 --no_increasing
Parameters:
  • oload: CephInt

  • max_change: CephFloat

  • max_osds: CephInt

  • no_increasing: CephBool

Ceph Module:

osd

Required Permissions:

r

osd tier add

add the tier <tierpool> (the second one) to base pool <pool> (the first one)

Example command:
ceph osd tier add poolname poolname --force_nonempty
Parameters:
  • pool: CephPoolname

  • tierpool: CephPoolname

  • force_nonempty: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd tier add-cache

add a cache <tierpool> (the second one) of size <size> to existing pool <pool> (the first one)

Example command:
ceph osd tier add-cache poolname poolname 1
Parameters:
  • pool: CephPoolname

  • tierpool: CephPoolname

  • size: CephInt range= 0

Ceph Module:

osd

Required Permissions:

rw

osd tier cache-mode

specify the caching mode for cache tier <pool>

Example command:
ceph osd tier cache-mode poolname writeback --yes_i_really_mean_it
Parameters:
  • pool: CephPoolname

  • mode: CephChoices strings=(writeback proxy readproxy readonly none)

  • yes_i_really_mean_it: CephBool

Ceph Module:

osd

Required Permissions:

rw

osd tier remove

remove the tier <tierpool> (the second one) from base pool <pool> (the first one)

Example command:
ceph osd tier remove poolname poolname
Parameters:
  • pool: CephPoolname

  • tierpool: CephPoolname

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd tier remove-overlay

remove the overlay pool for base pool <pool>

Example command:
ceph osd tier remove-overlay poolname
Parameters:
  • pool: CephPoolname

Ceph Module:

osd

Required Permissions:

rw

Command Flags:

deprecated

osd tier rm

remove the tier <tierpool> (the second one) from base pool <pool> (the first one)

Example command:
ceph osd tier rm poolname poolname
Parameters:
  • pool: CephPoolname

  • tierpool: CephPoolname

Ceph Module:

osd

Required Permissions:

rw

osd tier rm-overlay

remove the overlay pool for base pool <pool>

Example command:
ceph osd tier rm-overlay poolname
Parameters:
  • pool: CephPoolname

Ceph Module:

osd

Required Permissions:

rw

osd tier set-overlay

set the overlay pool for base pool <pool> to be <overlaypool>

Example command:
ceph osd tier set-overlay poolname poolname
Parameters:
  • pool: CephPoolname

  • overlaypool: CephPoolname

Ceph Module:

osd

Required Permissions:

rw

osd tree

print OSD tree

Example command:
ceph osd tree --epoch=0 --states=up
Parameters:
  • epoch: CephInt range= 0

  • states: CephChoices strings=(up down in out destroyed) (can be repeated)

Ceph Module:

osd

Required Permissions:

r

osd tree-from

print OSD tree in bucket

Example command:
ceph osd tree-from --bucket=string --epoch=0 --states=up
Parameters:
  • bucket: (string)

  • epoch: CephInt range= 0

  • states: CephChoices strings=(up down in out destroyed) (can be repeated)

Ceph Module:

osd

Required Permissions:

r

osd unpause

unpause osd

Example command:
ceph osd unpause
Ceph Module:

osd

Required Permissions:

rw

osd unset

unset <key>

Example command:
ceph osd unset full
Parameters:
  • key: CephChoices strings=(full pause noup nodown noout noin nobackfill norebalance norecover noscrub nodeep-scrub notieragent nosnaptrim noautoscale)

Ceph Module:

osd

Required Permissions:

rw

osd unset-group

unset <flags> for batch osds or crush nodes, <flags> must be a comma- separated subset of {noup,nodown,noin,noout}

Example command:
ceph osd unset-group --flags=string --who=string
Parameters:
  • flags: (string)

  • who: (can be repeated)

Ceph Module:

osd

Required Permissions:

rw

osd utilization

get basic pg distribution stats

Example command:
ceph osd utilization
Ceph Module:

osd

Required Permissions:

r

osd versions

check running versions of OSDs

Example command:
ceph osd versions
Ceph Module:

osd

Required Permissions:

r

pg

pg cancel-force-backfill

restore normal backfill priority of <pgid>

Example command:
ceph pg cancel-force-backfill --pgid=0
Parameters:
  • pgid: CephPgid (can be repeated)

Ceph Module:

pg

Required Permissions:

rw

pg cancel-force-recovery

restore normal recovery priority of <pgid>

Example command:
ceph pg cancel-force-recovery --pgid=0
Parameters:
  • pgid: CephPgid (can be repeated)

Ceph Module:

pg

Required Permissions:

rw

pg debug

show debug info about pgs

Example command:
ceph pg debug unfound_objects_exist
Parameters:
  • debugop: CephChoices strings=(unfound_objects_exist degraded_pgs_exist)

Ceph Module:

pg

Required Permissions:

r

pg deep-scrub

start deep-scrub on <pgid>

Example command:
ceph pg deep-scrub 0
Parameters:
  • pgid: CephPgid

Ceph Module:

pg

Required Permissions:

rw

pg dump

show human-readable versions of pg map (only ‘all’ valid with plain)

Example command:
ceph pg dump --dumpcontents=all
Parameters:
  • dumpcontents: CephChoices strings=(all summary sum delta pools osds pgs pgs_brief) (can be repeated)

Ceph Module:

pg

Required Permissions:

r

pg dump_json

show human-readable version of pg map in json only

Example command:
ceph pg dump_json --dumpcontents=all
Parameters:
  • dumpcontents: CephChoices strings=(all summary sum pools osds pgs) (can be repeated)

Ceph Module:

pg

Required Permissions:

r

pg dump_pools_json

show pg pools info in json only

Example command:
ceph pg dump_pools_json
Ceph Module:

pg

Required Permissions:

r

pg dump_stuck

show information about stuck pgs

Example command:
ceph pg dump_stuck --stuckops=inactive --threshold=1
Parameters:
  • stuckops: CephChoices strings=(inactive unclean stale undersized degraded) (can be repeated)

  • threshold: CephInt

Ceph Module:

pg

Required Permissions:

r

pg force-backfill

force backfill of <pgid> first

Example command:
ceph pg force-backfill --pgid=0
Parameters:
  • pgid: CephPgid (can be repeated)

Ceph Module:

pg

Required Permissions:

rw

pg force-recovery

force recovery of <pgid> first

Example command:
ceph pg force-recovery --pgid=0
Parameters:
  • pgid: CephPgid (can be repeated)

Ceph Module:

pg

Required Permissions:

rw

pg getmap

get binary pg map to -o/stdout

Example command:
ceph pg getmap
Ceph Module:

pg

Required Permissions:

r

pg ls

list pg with specific pool, osd, state

Example command:
ceph pg ls --pool=1 --states=string
Parameters:
  • pool: CephInt

  • states: (can be repeated)

Ceph Module:

pg

Required Permissions:

r

pg ls-by-osd

list pg on osd [osd]

Example command:
ceph pg ls-by-osd --osd=osd.0 --pool=1 --states=string
Parameters:
  • osd: CephOsdName

  • pool: CephInt

  • states: (can be repeated)

Ceph Module:

pg

Required Permissions:

r

pg ls-by-pool

list pg with pool = [poolname]

Example command:
ceph pg ls-by-pool --poolstr=string --states=string
Parameters:
  • poolstr: (string)

  • states: (can be repeated)

Ceph Module:

pg

Required Permissions:

r

pg ls-by-primary

list pg with primary = [osd]

Example command:
ceph pg ls-by-primary --osd=osd.0 --pool=1 --states=string
Parameters:
  • osd: CephOsdName

  • pool: CephInt

  • states: (can be repeated)

Ceph Module:

pg

Required Permissions:

r

pg map

show mapping of pg to osds

Example command:
ceph pg map 0
Parameters:
  • pgid: CephPgid

Ceph Module:

pg

Required Permissions:

r

pg repair

start repair on <pgid>

Example command:
ceph pg repair 0
Parameters:
  • pgid: CephPgid

Ceph Module:

pg

Required Permissions:

rw

pg repeer

force a PG to repeer

Example command:
ceph pg repeer 0
Parameters:
  • pgid: CephPgid

Ceph Module:

osd

Required Permissions:

rw

pg scrub

start scrub on <pgid>

Example command:
ceph pg scrub 0
Parameters:
  • pgid: CephPgid

Ceph Module:

pg

Required Permissions:

rw

pg stat

show placement group status.

Example command:
ceph pg stat
Ceph Module:

pg

Required Permissions:

r

quorum

quorum enter

force monitor back into quorum

Example command:
ceph quorum enter
Ceph Module:

mon

Required Permissions:

rw

quorum exit

force monitor out of the quorum

Example command:
ceph quorum exit
Ceph Module:

mon

Required Permissions:

rw

quorum_status

report status of monitor quorum

Example command:
ceph quorum_status
Ceph Module:

mon

Required Permissions:

r

report

report full status of cluster, optional title tag strings

Example command:
ceph report --tags=string
Parameters:
  • tags: (can be repeated)

Ceph Module:

mon

Required Permissions:

r

service

service dump

dump service map

Example command:
ceph service dump
Ceph Module:

service

Required Permissions:

r

service status

dump service state

Example command:
ceph service status
Ceph Module:

service

Required Permissions:

r

sessions

list existing sessions

Example command:
ceph sessions
Ceph Module:

mon

Required Permissions:

r

smart

Query health metrics for underlying device

Example command:
ceph smart my_devid
Parameters:
  • devid: (string)

Ceph Module:

mon

Required Permissions:

rw

status

show cluster status

Example command:
ceph status
Ceph Module:

mon

Required Permissions:

r

sync_force

force sync of and clear monitor store

Example command:
ceph sync_force --yes_i_really_mean_it
Parameters:
  • yes_i_really_mean_it: CephBool

Ceph Module:

mon

Required Permissions:

rw

tell

send a command to a specific daemon

Example command:
ceph tell --target=name --args=string
Parameters:
  • target: CephName

  • args: (can be repeated)

Ceph Module:

mon

Required Permissions:

rw

time-sync-status

show time sync status

Example command:
ceph time-sync-status
Ceph Module:

mon

Required Permissions:

r

version

show mon daemon version

Example command:
ceph version
Ceph Module:

mon

Required Permissions:

r

versions

check running versions of ceph daemons

Example command:
ceph versions
Ceph Module:

mon

Required Permissions:

r

Brought to you by the Ceph Foundation

The Ceph Documentation is a community resource funded and hosted by the non-profit Ceph Foundation. If you would like to support this and our other efforts, please consider joining now.