注意
本文档适用于 Ceph 的开发版本。
cephadm
cephadm check-host
检查我们是否可以访问和管理远程主机
- 示例命令:
ceph cephadm check-host my_host my_addr
- 参数:
host: (string)
addr: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm clear-key
清除集群 SSH 密钥
- 示例命令:
ceph cephadm clear-key
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm clear-ssh-config
清除 ssh_config 文件
- 示例命令:
ceph cephadm clear-ssh-config
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm config-check disable
禁用特定的配置检查
- 示例命令:
ceph cephadm config-check disable my_check_name
- 参数:
check_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm config-check enable
启用特定的配置检查
- 示例命令:
ceph cephadm config-check enable my_check_name
- 参数:
check_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm config-check ls
列出可用的配置检查及其当前状态
- 示例命令:
ceph cephadm config-check ls plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm config-check status
显示配置检查器功能是否启用/禁用
- 示例命令:
ceph cephadm config-check status
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm generate-key
生成集群 SSH 密钥(如果不存在)
- 示例命令:
ceph cephadm generate-key
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm get-extra-ceph-conf
获取附加的额外 ceph 配置
- 示例命令:
ceph cephadm get-extra-ceph-conf
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm get-pub-key
显示用于连接到集群主机的 SSH 公钥
- 示例命令:
ceph cephadm get-pub-key
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm get-signed-cert
显示用于使用 CA 签名密钥连接到集群主机的 SSH 签名证书
- 示例命令:
ceph cephadm get-signed-cert
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm get-ssh-config
返回 cephadm 使用的 ssh 配置
- 示例命令:
ceph cephadm get-ssh-config
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm get-user
显示用于 SSH 连接到集群主机的用户
- 示例命令:
ceph cephadm get-user
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm osd activate
启动现有 OSD 的 OSD 容器
- 示例命令:
ceph cephadm osd activate --host=string
- 参数:
host: (可重复)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm prepare-host
准备远程主机以供 cephadm 使用
- 示例命令:
ceph cephadm prepare-host my_host my_addr
- 参数:
host: (string)
addr: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm registry-login
通过提供 url、用户名和密码或包含登录信息的 json 文件 (-i <file>) 设置自定义注册表登录信息
- 示例命令:
ceph cephadm registry-login my_url my_username my_password
- 参数:
url: (string)
username: (string)
password: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm set-extra-ceph-conf
附加到所有守护程序 ceph.conf 的文本。主要是在 config generate-minimal-conf 生成完整的 ceph.conf 之前的变通方法。警告:这是一个危险的操作。
- 示例命令:
ceph cephadm set-extra-ceph-conf
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm set-priv-key
设置集群 SSH 私钥(使用 -i <private_key>)
- 示例命令:
ceph cephadm set-priv-key
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm set-pub-key
设置集群 SSH 公钥(使用 -i <public_key>)
- 示例命令:
ceph cephadm set-pub-key
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm set-signed-cert
如果使用 CA 签名密钥,则设置签名证书(使用 -i <cert_filename>)
- 示例命令:
ceph cephadm set-signed-cert
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm set-ssh-config
设置 ssh_config 文件(使用 -i <ssh_config>)
- 示例命令:
ceph cephadm set-ssh-config
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
cephadm set-user
设置用于 SSH 连接到集群主机的用户,非 root 用户将需要无密码 sudo
- 示例命令:
ceph cephadm set-user my_user
- 参数:
user: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
cephadm systemd-unit ls
- 示例命令:
ceph cephadm systemd-unit ls my_hostname my_daemon_type my_daemon_id
- 参数:
hostname: (string)
daemon_type: (string)
daemon_id: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard
dashboard create-self-signed-cert
创建自签名证书
- 示例命令:
ceph dashboard create-self-signed-cert
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard get-account-lockout-attempts
获取 ACCOUNT_LOCKOUT_ATTEMPTS 选项值
- 示例命令:
ceph dashboard get-account-lockout-attempts
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-alertmanager-api-host
获取 ALERTMANAGER_API_HOST 选项值
- 示例命令:
ceph dashboard get-alertmanager-api-host
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-alertmanager-api-ssl-verify
获取 ALERTMANAGER_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard get-alertmanager-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-audit-api-enabled
获取 AUDIT_API_ENABLED 选项值
- 示例命令:
ceph dashboard get-audit-api-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-audit-api-log-payload
获取 AUDIT_API_LOG_PAYLOAD 选项值
- 示例命令:
ceph dashboard get-audit-api-log-payload
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-enable-browsable-api
获取 ENABLE_BROWSABLE_API 选项值
- 示例命令:
ceph dashboard get-enable-browsable-api
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-ganesha-clusters-rados-pool-namespace
获取 GANESHA_CLUSTERS_RADOS_POOL_NAMESPACE 选项值
- 示例命令:
ceph dashboard get-ganesha-clusters-rados-pool-namespace
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-grafana-api-password
获取 GRAFANA_API_PASSWORD 选项值
- 示例命令:
ceph dashboard get-grafana-api-password
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-grafana-api-ssl-verify
获取 GRAFANA_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard get-grafana-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-grafana-api-url
获取 GRAFANA_API_URL 选项值
- 示例命令:
ceph dashboard get-grafana-api-url
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-grafana-api-username
获取 GRAFANA_API_USERNAME 选项值
- 示例命令:
ceph dashboard get-grafana-api-username
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-grafana-frontend-api-url
获取 GRAFANA_FRONTEND_API_URL 选项值
- 示例命令:
ceph dashboard get-grafana-frontend-api-url
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-grafana-update-dashboards
获取 GRAFANA_UPDATE_DASHBOARDS 选项值
- 示例命令:
ceph dashboard get-grafana-update-dashboards
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-iscsi-api-ssl-verification
获取 ISCSI_API_SSL_VERIFICATION 选项值
- 示例命令:
ceph dashboard get-iscsi-api-ssl-verification
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-issue-tracker-api-key
获取 ISSUE_TRACKER_API_KEY 选项值
- 示例命令:
ceph dashboard get-issue-tracker-api-key
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-jwt-token-ttl
获取 JWT 令牌 TTL(秒)
- 示例命令:
ceph dashboard get-jwt-token-ttl
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-managed-by-clusters
获取 MANAGED_BY_CLUSTERS 选项值
- 示例命令:
ceph dashboard get-managed-by-clusters
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-multicluster-config
获取 MULTICLUSTER_CONFIG 选项值
- 示例命令:
ceph dashboard get-multicluster-config
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-prom-alert-credential-cache-ttl
获取 PROM_ALERT_CREDENTIAL_CACHE_TTL 选项值
- 示例命令:
ceph dashboard get-prom-alert-credential-cache-ttl
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-prometheus-api-host
获取 PROMETHEUS_API_HOST 选项值
- 示例命令:
ceph dashboard get-prometheus-api-host
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-prometheus-api-ssl-verify
获取 PROMETHEUS_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard get-prometheus-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-complexity-enabled
获取 PWD_POLICY_CHECK_COMPLEXITY_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-complexity-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-exclusion-list-enabled
获取 PWD_POLICY_CHECK_EXCLUSION_LIST_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-exclusion-list-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-length-enabled
获取 PWD_POLICY_CHECK_LENGTH_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-length-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-oldpwd-enabled
获取 PWD_POLICY_CHECK_OLDPWD_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-oldpwd-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-repetitive-chars-enabled
获取 PWD_POLICY_CHECK_REPETITIVE_CHARS_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-repetitive-chars-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-sequential-chars-enabled
获取 PWD_POLICY_CHECK_SEQUENTIAL_CHARS_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-sequential-chars-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-check-username-enabled
获取 PWD_POLICY_CHECK_USERNAME_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-check-username-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-enabled
获取 PWD_POLICY_ENABLED 选项值
- 示例命令:
ceph dashboard get-pwd-policy-enabled
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-exclusion-list
获取 PWD_POLICY_EXCLUSION_LIST 选项值
- 示例命令:
ceph dashboard get-pwd-policy-exclusion-list
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-min-complexity
获取 PWD_POLICY_MIN_COMPLEXITY 选项值
- 示例命令:
ceph dashboard get-pwd-policy-min-complexity
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-pwd-policy-min-length
获取 PWD_POLICY_MIN_LENGTH 选项值
- 示例命令:
ceph dashboard get-pwd-policy-min-length
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-rest-requests-timeout
获取 REST_REQUESTS_TIMEOUT 选项值
- 示例命令:
ceph dashboard get-rest-requests-timeout
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-rgw-api-access-key
获取 RGW_API_ACCESS_KEY 选项值
- 示例命令:
ceph dashboard get-rgw-api-access-key
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-rgw-api-admin-resource
获取 RGW_API_ADMIN_RESOURCE 选项值
- 示例命令:
ceph dashboard get-rgw-api-admin-resource
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-rgw-api-secret-key
获取 RGW_API_SECRET_KEY 选项值
- 示例命令:
ceph dashboard get-rgw-api-secret-key
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-rgw-api-ssl-verify
获取 RGW_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard get-rgw-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-rgw-hostname-per-daemon
获取 RGW_HOSTNAME_PER_DAEMON 选项值
- 示例命令:
ceph dashboard get-rgw-hostname-per-daemon
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-unsafe-tls-v1-2
获取 UNSAFE_TLS_v1_2 选项值
- 示例命令:
ceph dashboard get-unsafe-tls-v1-2
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-user-pwd-expiration-span
获取 USER_PWD_EXPIRATION_SPAN 选项值
- 示例命令:
ceph dashboard get-user-pwd-expiration-span
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-user-pwd-expiration-warning-1
获取 USER_PWD_EXPIRATION_WARNING_1 选项值
- 示例命令:
ceph dashboard get-user-pwd-expiration-warning-1
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard get-user-pwd-expiration-warning-2
获取 USER_PWD_EXPIRATION_WARNING_2 选项值
- 示例命令:
ceph dashboard get-user-pwd-expiration-warning-2
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard grafana dashboards update
将仪表板推送到 Grafana
- 示例命令:
ceph dashboard grafana dashboards update
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-account-lockout-attempts
将 ACCOUNT_LOCKOUT_ATTEMPTS 选项重置为默认值
- 示例命令:
ceph dashboard reset-account-lockout-attempts
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-alertmanager-api-host
将 ALERTMANAGER_API_HOST 选项重置为默认值
- 示例命令:
ceph dashboard reset-alertmanager-api-host
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-alertmanager-api-ssl-verify
将 ALERTMANAGER_API_SSL_VERIFY 选项重置为默认值
- 示例命令:
ceph dashboard reset-alertmanager-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-audit-api-enabled
将 AUDIT_API_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-audit-api-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-audit-api-log-payload
将 AUDIT_API_LOG_PAYLOAD 选项重置为默认值
- 示例命令:
ceph dashboard reset-audit-api-log-payload
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-enable-browsable-api
将 ENABLE_BROWSABLE_API 选项重置为默认值
- 示例命令:
ceph dashboard reset-enable-browsable-api
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-ganesha-clusters-rados-pool-namespace
将 GANESHA_CLUSTERS_RADOS_POOL_NAMESPACE 选项重置为默认值
- 示例命令:
ceph dashboard reset-ganesha-clusters-rados-pool-namespace
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-grafana-api-password
将 GRAFANA_API_PASSWORD 选项重置为默认值
- 示例命令:
ceph dashboard reset-grafana-api-password
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-grafana-api-ssl-verify
将 GRAFANA_API_SSL_VERIFY 选项重置为默认值
- 示例命令:
ceph dashboard reset-grafana-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-grafana-api-url
将 GRAFANA_API_URL 选项重置为默认值
- 示例命令:
ceph dashboard reset-grafana-api-url
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-grafana-api-username
将 GRAFANA_API_USERNAME 选项重置为默认值
- 示例命令:
ceph dashboard reset-grafana-api-username
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-grafana-frontend-api-url
将 GRAFANA_FRONTEND_API_URL 选项重置为默认值
- 示例命令:
ceph dashboard reset-grafana-frontend-api-url
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-grafana-update-dashboards
将 GRAFANA_UPDATE_DASHBOARDS 选项重置为默认值
- 示例命令:
ceph dashboard reset-grafana-update-dashboards
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-iscsi-api-ssl-verification
将 ISCSI_API_SSL_VERIFICATION 选项重置为默认值
- 示例命令:
ceph dashboard reset-iscsi-api-ssl-verification
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-issue-tracker-api-key
将 ISSUE_TRACKER_API_KEY 选项重置为默认值
- 示例命令:
ceph dashboard reset-issue-tracker-api-key
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-managed-by-clusters
将 MANAGED_BY_CLUSTERS 选项重置为默认值
- 示例命令:
ceph dashboard reset-managed-by-clusters
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-multicluster-config
将 MULTICLUSTER_CONFIG 选项重置为默认值
- 示例命令:
ceph dashboard reset-multicluster-config
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-prom-alert-credential-cache-ttl
将 PROM_ALERT_CREDENTIAL_CACHE_TTL 选项重置为默认值
- 示例命令:
ceph dashboard reset-prom-alert-credential-cache-ttl
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-prometheus-api-host
将 PROMETHEUS_API_HOST 选项重置为默认值
- 示例命令:
ceph dashboard reset-prometheus-api-host
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-prometheus-api-ssl-verify
将 PROMETHEUS_API_SSL_VERIFY 选项重置为默认值
- 示例命令:
ceph dashboard reset-prometheus-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-complexity-enabled
将 PWD_POLICY_CHECK_COMPLEXITY_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-complexity-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-exclusion-list-enabled
将 PWD_POLICY_CHECK_EXCLUSION_LIST_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-exclusion-list-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-length-enabled
将 PWD_POLICY_CHECK_LENGTH_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-length-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-oldpwd-enabled
将 PWD_POLICY_CHECK_OLDPWD_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-oldpwd-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-repetitive-chars-enabled
将 PWD_POLICY_CHECK_REPETITIVE_CHARS_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-repetitive-chars-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-sequential-chars-enabled
将 PWD_POLICY_CHECK_SEQUENTIAL_CHARS_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-sequential-chars-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-check-username-enabled
将 PWD_POLICY_CHECK_USERNAME_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-check-username-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-enabled
将 PWD_POLICY_ENABLED 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-enabled
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-exclusion-list
将 PWD_POLICY_EXCLUSION_LIST 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-exclusion-list
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-min-complexity
将 PWD_POLICY_MIN_COMPLEXITY 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-min-complexity
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-pwd-policy-min-length
将 PWD_POLICY_MIN_LENGTH 选项重置为默认值
- 示例命令:
ceph dashboard reset-pwd-policy-min-length
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-rest-requests-timeout
将 REST_REQUESTS_TIMEOUT 选项重置为默认值
- 示例命令:
ceph dashboard reset-rest-requests-timeout
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-rgw-api-access-key
将 RGW_API_ACCESS_KEY 选项重置为默认值
- 示例命令:
ceph dashboard reset-rgw-api-access-key
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-rgw-api-admin-resource
将 RGW_API_ADMIN_RESOURCE 选项重置为默认值
- 示例命令:
ceph dashboard reset-rgw-api-admin-resource
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-rgw-api-secret-key
将 RGW_API_SECRET_KEY 选项重置为默认值
- 示例命令:
ceph dashboard reset-rgw-api-secret-key
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-rgw-api-ssl-verify
将 RGW_API_SSL_VERIFY 选项重置为默认值
- 示例命令:
ceph dashboard reset-rgw-api-ssl-verify
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-rgw-hostname-per-daemon
将 RGW_HOSTNAME_PER_DAEMON 选项重置为默认值
- 示例命令:
ceph dashboard reset-rgw-hostname-per-daemon
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-unsafe-tls-v1-2
将 UNSAFE_TLS_v1_2 选项重置为默认值
- 示例命令:
ceph dashboard reset-unsafe-tls-v1-2
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-user-pwd-expiration-span
将 USER_PWD_EXPIRATION_SPAN 选项重置为默认值
- 示例命令:
ceph dashboard reset-user-pwd-expiration-span
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-user-pwd-expiration-warning-1
将 USER_PWD_EXPIRATION_WARNING_1 选项重置为默认值
- 示例命令:
ceph dashboard reset-user-pwd-expiration-warning-1
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard reset-user-pwd-expiration-warning-2
将 USER_PWD_EXPIRATION_WARNING_2 选项重置为默认值
- 示例命令:
ceph dashboard reset-user-pwd-expiration-warning-2
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-account-lockout-attempts
设置 ACCOUNT_LOCKOUT_ATTEMPTS 选项值
- 示例命令:
ceph dashboard set-account-lockout-attempts my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-alertmanager-api-host
设置 ALERTMANAGER_API_HOST 选项值
- 示例命令:
ceph dashboard set-alertmanager-api-host my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-alertmanager-api-ssl-verify
设置 ALERTMANAGER_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard set-alertmanager-api-ssl-verify my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-audit-api-enabled
设置 AUDIT_API_ENABLED 选项值
- 示例命令:
ceph dashboard set-audit-api-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-audit-api-log-payload
设置 AUDIT_API_LOG_PAYLOAD 选项值
- 示例命令:
ceph dashboard set-audit-api-log-payload my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-enable-browsable-api
设置 ENABLE_BROWSABLE_API 选项值
- 示例命令:
ceph dashboard set-enable-browsable-api my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-ganesha-clusters-rados-pool-namespace
设置 GANESHA_CLUSTERS_RADOS_POOL_NAMESPACE 选项值
- 示例命令:
ceph dashboard set-ganesha-clusters-rados-pool-namespace my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-grafana-api-password
设置从 -i <file> 读取的 GRAFANA_API_PASSWORD 选项值
- 示例命令:
ceph dashboard set-grafana-api-password
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-grafana-api-ssl-verify
设置 GRAFANA_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard set-grafana-api-ssl-verify my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-grafana-api-url
设置 GRAFANA_API_URL 选项值
- 示例命令:
ceph dashboard set-grafana-api-url my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-grafana-api-username
设置 GRAFANA_API_USERNAME 选项值
- 示例命令:
ceph dashboard set-grafana-api-username my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-grafana-frontend-api-url
设置 GRAFANA_FRONTEND_API_URL 选项值
- 示例命令:
ceph dashboard set-grafana-frontend-api-url my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-grafana-update-dashboards
设置 GRAFANA_UPDATE_DASHBOARDS 选项值
- 示例命令:
ceph dashboard set-grafana-update-dashboards my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-iscsi-api-ssl-verification
设置 ISCSI_API_SSL_VERIFICATION 选项值
- 示例命令:
ceph dashboard set-iscsi-api-ssl-verification my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-issue-tracker-api-key
设置从 -i <file> 读取的 ISSUE_TRACKER_API_KEY 选项值
- 示例命令:
ceph dashboard set-issue-tracker-api-key
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-jwt-token-ttl
设置 JWT 令牌 TTL(秒)
- 示例命令:
ceph dashboard set-jwt-token-ttl 1
- 参数:
seconds: CephInt
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-managed-by-clusters
设置 MANAGED_BY_CLUSTERS 选项值
- 示例命令:
ceph dashboard set-managed-by-clusters my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-multicluster-config
设置 MULTICLUSTER_CONFIG 选项值
- 示例命令:
ceph dashboard set-multicluster-config my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-prom-alert-credential-cache-ttl
设置 PROM_ALERT_CREDENTIAL_CACHE_TTL 选项值
- 示例命令:
ceph dashboard set-prom-alert-credential-cache-ttl my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-prometheus-api-host
设置 PROMETHEUS_API_HOST 选项值
- 示例命令:
ceph dashboard set-prometheus-api-host my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-prometheus-api-ssl-verify
设置 PROMETHEUS_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard set-prometheus-api-ssl-verify my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-complexity-enabled
设置 PWD_POLICY_CHECK_COMPLEXITY_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-complexity-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-exclusion-list-enabled
设置 PWD_POLICY_CHECK_EXCLUSION_LIST_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-exclusion-list-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-length-enabled
设置 PWD_POLICY_CHECK_LENGTH_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-length-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-oldpwd-enabled
设置 PWD_POLICY_CHECK_OLDPWD_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-oldpwd-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-repetitive-chars-enabled
设置 PWD_POLICY_CHECK_REPETITIVE_CHARS_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-repetitive-chars-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-sequential-chars-enabled
设置 PWD_POLICY_CHECK_SEQUENTIAL_CHARS_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-sequential-chars-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-check-username-enabled
设置 PWD_POLICY_CHECK_USERNAME_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-check-username-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-enabled
设置 PWD_POLICY_ENABLED 选项值
- 示例命令:
ceph dashboard set-pwd-policy-enabled my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-exclusion-list
设置 PWD_POLICY_EXCLUSION_LIST 选项值
- 示例命令:
ceph dashboard set-pwd-policy-exclusion-list my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-min-complexity
设置 PWD_POLICY_MIN_COMPLEXITY 选项值
- 示例命令:
ceph dashboard set-pwd-policy-min-complexity my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-pwd-policy-min-length
设置 PWD_POLICY_MIN_LENGTH 选项值
- 示例命令:
ceph dashboard set-pwd-policy-min-length my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-rest-requests-timeout
设置 REST_REQUESTS_TIMEOUT 选项值
- 示例命令:
ceph dashboard set-rest-requests-timeout my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-rgw-api-access-key
设置从 -i <file> 读取的 RGW_API_ACCESS_KEY 选项值
- 示例命令:
ceph dashboard set-rgw-api-access-key
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-rgw-api-admin-resource
设置 RGW_API_ADMIN_RESOURCE 选项值
- 示例命令:
ceph dashboard set-rgw-api-admin-resource my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-rgw-api-secret-key
设置从 -i <file> 读取的 RGW_API_SECRET_KEY 选项值
- 示例命令:
ceph dashboard set-rgw-api-secret-key
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-rgw-api-ssl-verify
设置 RGW_API_SSL_VERIFY 选项值
- 示例命令:
ceph dashboard set-rgw-api-ssl-verify my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-rgw-hostname-per-daemon
设置 RGW_HOSTNAME_PER_DAEMON 选项值
- 示例命令:
ceph dashboard set-rgw-hostname-per-daemon my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-unsafe-tls-v1-2
设置 UNSAFE_TLS_v1_2 选项值
- 示例命令:
ceph dashboard set-unsafe-tls-v1-2 my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-user-pwd-expiration-span
设置 USER_PWD_EXPIRATION_SPAN 选项值
- 示例命令:
ceph dashboard set-user-pwd-expiration-span my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-user-pwd-expiration-warning-1
设置 USER_PWD_EXPIRATION_WARNING_1 选项值
- 示例命令:
ceph dashboard set-user-pwd-expiration-warning-1 my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard set-user-pwd-expiration-warning-2
设置 USER_PWD_EXPIRATION_WARNING_2 选项值
- 示例命令:
ceph dashboard set-user-pwd-expiration-warning-2 my_value
- 参数:
value: (string)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard sso disable
禁用单点登录
- 示例命令:
ceph dashboard sso disable
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard sso enable saml2
启用 SAML2 单点登录
- 示例命令:
ceph dashboard sso enable saml2
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard sso setup saml2
设置 SAML2 单点登录
- 示例命令:
ceph dashboard sso setup saml2 --ceph_dashboard_base_url=string --idp_metadata=string --idp_username_attribute=string --idp_entity_id=string --sp_x_509_cert=/path/to/file --sp_private_key=/path/to/file
- 参数:
ceph_dashboard_base_url: (string)
idp_metadata: (string)
idp_username_attribute: (string)
idp_entity_id: (string)
sp_x_509_cert: CephFilepath
sp_private_key: CephFilepath
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
dashboard sso show saml2
显示 SAML2 配置
- 示例命令:
ceph dashboard sso show saml2
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
dashboard sso status
获取单点登录状态
- 示例命令:
ceph dashboard sso status
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
device
device light
启用或禁用设备指示灯。默认类型为 ident '用法: device light (on|off) <devid> [ident|fault] [--force]'
- 示例命令:
ceph device light --enable=on --devid=string --light_type=ident --force
- 参数:
enable: CephChoices strings=(on off)
devid: (string)
light_type: CephChoices strings=(ident fault)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
device ls-lights
列出当前活动的设备指示灯
- 示例命令:
ceph device ls-lights
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs
fs clone cancel
取消挂起或正在进行的克隆操作。
- 示例命令:
ceph fs clone cancel my_vol_name my_clone_name my_group_name
- 参数:
vol_name: (string)
clone_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs clone status
获取克隆子卷的状态。
- 示例命令:
ceph fs clone status my_vol_name my_clone_name my_group_name
- 参数:
vol_name: (string)
clone_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs perf stats
检索 ceph fs 性能统计信息
- 示例命令:
ceph fs perf stats my_mds_rank my_client_id my_client_ip
- 参数:
mds_rank: (string)
client_id: (string)
client_ip: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs quiesce --
管理子卷的静默集
- 示例命令:
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
- 参数:
vol_name: (string)
members: (可重复)
set_id: (string)
timeout: CephFloat range=
0expiration: CephFloat range=
0await_for: CephFloat range=
0await: CephBool
if_version: CephInt range=
0include: CephBool
exclude: CephBool
reset: CephBool
release: CephBool
query: CephBool
all: CephBool
cancel: CephBool
group_name: (string)
leader: CephBool
with_leader: CephInt range=
0
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume charmap get
获取子卷组的 charmap 设置
- 示例命令:
ceph fs subvolume charmap get --vol_name=string --sub_name=string --setting=casesensitive --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
setting: CephChoices strings=(casesensitive normalization encoding)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume charmap rm
删除子卷的 charmap 设置
- 示例命令:
ceph fs subvolume charmap rm my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume charmap set
设置子卷组的 charmap 设置
- 示例命令:
ceph fs subvolume charmap set --vol_name=string --sub_name=string --setting=casesensitive --value=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
setting: CephChoices strings=(casesensitive normalization encoding)
value: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume create
在卷中创建 CephFS 子卷,并可选地指定大小(字节)、特定的数据池布局、特定的模式、在特定的子卷组中以及在单独的 RADOS 命名空间中
- 示例命令:
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
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume earmark get
获取子卷的 earmark
- 示例命令:
ceph fs subvolume earmark get my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume earmark rm
从子卷中删除 earmark
- 示例命令:
ceph fs subvolume earmark rm my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume earmark set
设置子卷的 earmark
- 示例命令:
ceph fs subvolume earmark set --vol_name=string --sub_name=string --earmark=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
earmark: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume enctag get
获取子卷的加密标签
- 示例命令:
ceph fs subvolume enctag get my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume enctag rm
从子卷中删除加密标签
- 示例命令:
ceph fs subvolume enctag rm my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume enctag set
设置子卷的加密标签
- 示例命令:
ceph fs subvolume enctag set --vol_name=string --sub_name=string --enctag=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
enctag: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume evict
根据 auth ID 和挂载的子卷驱逐客户端
- 示例命令:
ceph fs subvolume evict --vol_name=string --sub_name=string --auth_id=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
auth_id: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume exist
检查卷中是否存在子卷,可选地在指定的子卷组中
- 示例命令:
ceph fs subvolume exist my_vol_name my_group_name
- 参数:
vol_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume getpath
获取卷中 CephFS 子卷的挂载路径,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume getpath my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume info
获取卷中 CephFS 子卷的信息,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume info my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume ls
列出子卷
- 示例命令:
ceph fs subvolume ls my_vol_name my_group_name
- 参数:
vol_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume metadata get
获取卷中 CephFS 子卷键关联的自定义元数据,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume metadata get --vol_name=string --sub_name=string --key_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
key_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume metadata ls
列出卷中 CephFS 子卷的自定义元数据(键值对),可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume metadata ls my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume metadata rm
删除卷中 CephFS 子卷键关联的自定义元数据(键值对),可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume metadata rm --vol_name=string --sub_name=string --key_name=string --group_name=string --force
- 参数:
vol_name: (string)
sub_name: (string)
key_name: (string)
group_name: (string)
force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume metadata set
设置卷中 CephFS 子卷的自定义元数据(键值对),可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume metadata set --vol_name=string --sub_name=string --key_name=string --value=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
key_name: (string)
value: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume pin
设置子卷的 MDS 固定策略
- 示例命令:
ceph fs subvolume pin --vol_name=string --sub_name=string --pin_type=export --pin_setting=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
pin_type: CephChoices strings=(export distributed random)
pin_setting: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume resize
调整 CephFS 子卷的大小
- 示例命令:
ceph fs subvolume resize --vol_name=string --sub_name=string --new_size=string --group_name=string --no_shrink
- 参数:
vol_name: (string)
sub_name: (string)
new_size: (string)
group_name: (string)
no_shrink: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume rm
删除卷中的 CephFS 子卷,可选地在特定的子卷组中,强制删除已取消或失败的克隆,并保留现有的子卷快照
- 示例命令:
ceph fs subvolume rm --vol_name=string --sub_name=string --group_name=string --force --retain_snapshots
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
force: CephBool
retain_snapshots: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot clone
将快照克隆到目标子卷
- 示例命令:
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
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
target_sub_name: (string)
pool_layout: (string)
group_name: (string)
target_group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot create
在卷中创建 CephFS 子卷的快照,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot create --vol_name=string --sub_name=string --snap_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot getpath
获取位于特定卷中的 CephFS 子卷快照的路径,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot getpath --vol_name=string --sub_name=string --snap_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume snapshot info
获取 CephFS 子卷快照的信息,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot info --vol_name=string --sub_name=string --snap_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume snapshot ls
列出子卷快照
- 示例命令:
ceph fs subvolume snapshot ls my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume snapshot metadata get
获取卷中 CephFS 子卷快照键关联的自定义元数据,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot metadata get --vol_name=string --sub_name=string --snap_name=string --key_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
key_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume snapshot metadata ls
列出卷中 CephFS 子卷快照的自定义元数据(键值对),可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot metadata ls --vol_name=string --sub_name=string --snap_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolume snapshot metadata rm
删除卷中 CephFS 子卷快照键关联的自定义元数据(键值对),可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot metadata rm --vol_name=string --sub_name=string --snap_name=string --key_name=string --group_name=string --force
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
key_name: (string)
group_name: (string)
force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot metadata set
设置卷中 CephFS 子卷快照的自定义元数据(键值对),可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot metadata set --vol_name=string --sub_name=string --snap_name=string --key_name=string --value=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
key_name: (string)
value: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot protect
(已弃用)保护卷中 CephFS 子卷的快照,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot protect --vol_name=string --sub_name=string --snap_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot rm
删除卷中 CephFS 子卷的快照,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot rm --vol_name=string --sub_name=string --snap_name=string --group_name=string --force
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot unprotect
(已弃用)取消保护卷中 CephFS 子卷的快照,可选地在特定的子卷组中
- 示例命令:
ceph fs subvolume snapshot unprotect --vol_name=string --sub_name=string --snap_name=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
snap_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot_visibility get
获取子卷的快照目录可见性
- 示例命令:
ceph fs subvolume snapshot_visibility get my_vol_name my_sub_name my_group_name
- 参数:
vol_name: (string)
sub_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolume snapshot_visibility set
设置子卷的快照目录可见性
- 示例命令:
ceph fs subvolume snapshot_visibility set --vol_name=string --sub_name=string --value=string --group_name=string
- 参数:
vol_name: (string)
sub_name: (string)
value: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup charmap get
获取子卷组的 charmap 设置
- 示例命令:
ceph fs subvolumegroup charmap get my_vol_name my_group_name casesensitive
- 参数:
vol_name: (string)
group_name: (string)
setting: CephChoices strings=(casesensitive normalization encoding)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup charmap rm
删除子卷组的 charmap 设置
- 示例命令:
ceph fs subvolumegroup charmap rm my_vol_name my_group_name
- 参数:
vol_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup charmap set
设置子卷组的 charmap 设置
- 示例命令:
ceph fs subvolumegroup charmap set --vol_name=string --group_name=string --setting=casesensitive --value=string
- 参数:
vol_name: (string)
group_name: (string)
setting: CephChoices strings=(casesensitive normalization encoding)
value: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup create
在卷中创建 CephFS 子卷组,可选地指定特定的数据池布局和特定的数字模式
- 示例命令:
ceph fs subvolumegroup create --vol_name=string --group_name=string --size=1 --pool_layout=string --uid=1 --gid=1 --mode=string --normalization=nfd --casesensitive
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup exist
检查卷中是否存在子卷组
- 示例命令:
ceph fs subvolumegroup exist my_vol_name
- 参数:
vol_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolumegroup getpath
获取卷中 CephFS 子卷组的挂载路径
- 示例命令:
ceph fs subvolumegroup getpath my_vol_name my_group_name
- 参数:
vol_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolumegroup info
获取卷中 CephFS 子卷组的元数据
- 示例命令:
ceph fs subvolumegroup info my_vol_name my_group_name
- 参数:
vol_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolumegroup ls
列出子卷组
- 示例命令:
ceph fs subvolumegroup ls my_vol_name
- 参数:
vol_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolumegroup pin
设置子卷组的 MDS 固定策略
- 示例命令:
ceph fs subvolumegroup pin --vol_name=string --group_name=string --pin_type=export --pin_setting=string
- 参数:
vol_name: (string)
group_name: (string)
pin_type: CephChoices strings=(export distributed random)
pin_setting: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup resize
调整 CephFS 子卷组的大小
- 示例命令:
ceph fs subvolumegroup resize --vol_name=string --group_name=string --new_size=string --no_shrink
- 参数:
vol_name: (string)
group_name: (string)
new_size: (string)
no_shrink: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup rm
删除卷中的 CephFS 子卷组
- 示例命令:
ceph fs subvolumegroup rm my_vol_name my_group_name --force
- 参数:
vol_name: (string)
group_name: (string)
force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup snapshot create
在卷中创建 CephFS 子卷组的快照
- 示例命令:
ceph fs subvolumegroup snapshot create my_vol_name my_group_name my_snap_name
- 参数:
vol_name: (string)
group_name: (string)
snap_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs subvolumegroup snapshot ls
列出子卷组快照
- 示例命令:
ceph fs subvolumegroup snapshot ls my_vol_name my_group_name
- 参数:
vol_name: (string)
group_name: (string)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs subvolumegroup snapshot rm
删除卷中 CephFS 子卷组的快照
- 示例命令:
ceph fs subvolumegroup snapshot rm --vol_name=string --group_name=string --snap_name=string --force
- 参数:
vol_name: (string)
group_name: (string)
snap_name: (string)
force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs volume create
创建 CephFS 卷
- 示例命令:
ceph fs volume create --name=string --placement=string --meta_pool=string --data_pool=string
- 参数:
name: goodchars=
[A-Za-z0-9-_.]placement: (string)
meta_pool: goodchars=
[A-Za-z0-9-_.]data_pool: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs volume info
获取 CephFS 卷的信息
- 示例命令:
ceph fs volume info my_vol_name --human_readable
- 参数:
vol_name: (string)
human_readable: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs volume ls
列出卷
- 示例命令:
ceph fs volume ls
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
fs volume rename
通过传递 --yes-i-really-mean-it 标志重命名 CephFS 卷
- 示例命令:
ceph fs volume rename my_vol_name my_new_vol_name --yes_i_really_mean_it
- 参数:
vol_name: goodchars=
[A-Za-z0-9-_.]new_vol_name: goodchars=
[A-Za-z0-9-_.]yes_i_really_mean_it: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
fs volume rm
通过传递 --yes-i-really-mean-it 标志来删除 FS 卷
- 示例命令:
ceph fs volume rm my_vol_name my_yes-i-really-mean-it
- 参数:
vol_name: (string)
yes-i-really-mean-it: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
influx
influx config-set
设置配置值
- 示例命令:
ceph influx config-set my_key my_value
- 参数:
key: (string)
value: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
influx config-show
显示当前配置
- 示例命令:
ceph influx config-show
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
influx send
强制向 Influx 发送数据
- 示例命令:
ceph influx send
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
k8sevents
k8sevents ceph
列出被跟踪并发送到 kubernetes 集群的 Ceph 事件
- 示例命令:
ceph k8sevents ceph
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
k8sevents clear-config
清除外部 kubernetes 配置设置
- 示例命令:
ceph k8sevents clear-config
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
k8sevents ls
列出 Ceph 命名空间中所有当前的 Kuberenetes 事件
- 示例命令:
ceph k8sevents ls
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
k8sevents set-access
设置 kubernetes 访问凭据。<key> 必须是 cacrt 或 token,并使用 -i <filename> 语法(例如,ceph k8sevents set-access cacrt -i /root/ca.crt)。
- 示例命令:
ceph k8sevents set-access my_key
- 参数:
key: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
k8sevents set-config
设置 kubernetes 配置参数。<key> 必须是 server 或 namespace(例如,ceph k8sevents set-config server https://:30433)。
- 示例命令:
ceph k8sevents set-config my_key my_value
- 参数:
key: (string)
value: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
k8sevents status
显示数据收集线程的状态
- 示例命令:
ceph k8sevents status
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch
orch
启动、停止、重启、重新部署或重新配置整个服务(即所有守护进程)
- 示例命令:
ceph orch start my_service_name
- 参数:
action: CephChoices strings=(start stop restart redeploy reconfig rotate-key)
service_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch alertmanager get-credentials
- 示例命令:
ceph orch alertmanager get-credentials
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch alertmanager set-credentials
- 示例命令:
ceph orch alertmanager set-credentials my_username my_password
- 参数:
username: (string)
password: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply
更新服务的大小或位置,或应用大型 yaml 规范
- 示例命令:
ceph orch apply --service_type=mon --placement=string --dry_run --format=plain --unmanaged --no_overwrite --continue_on_error
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply iscsi
扩展 iSCSI 服务
- 示例命令:
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
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply jaeger
应用 jaeger 追踪服务
- 示例命令:
ceph orch apply jaeger --es_nodes=string --without_query --placement=string --unmanaged --dry_run --format=plain --no_overwrite
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply mds
更新给定 fs_name 的 MDS 实例数量
- 示例命令:
ceph orch apply mds --fs_name=string --placement=string --dry_run --unmanaged --format=plain --no_overwrite
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply mgmt-gateway
添加集群网关服务(仅限 cephadm)
- 示例命令:
ceph orch apply mgmt-gateway --port=1 --ssl --enable_auth --virtual_ip=string --placement=string --unmanaged --dry_run --format=plain --no_overwrite
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply nfs
扩展 NFS 服务
- 示例命令:
ceph orch apply nfs --svc_id=string --placement=string --format=plain --port=1 --dry_run --unmanaged --no_overwrite
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply nvmeof
扩展 nvmeof 服务
- 示例命令:
ceph orch apply nvmeof --pool=string --group=string --placement=string --unmanaged --dry_run --format=plain --no_overwrite
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply oauth2-proxy
添加集群网关服务(仅限 cephadm)
- 示例命令:
ceph orch apply oauth2-proxy --https_address=string --placement=string --unmanaged --dry_run --format=plain --no_overwrite
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply osd
在所有可用设备上创建 OSD 守护进程
- 示例命令:
ceph orch apply osd --all_available_devices --format=plain --unmanaged --dry_run --no_overwrite --method=raw
- 参数:
--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)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply rgw
更新给定区域的 RGW 实例数量
- 示例命令:
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
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply smb
应用 SMB 网络文件系统网关服务配置。
- 示例命令:
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
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch apply snmp-gateway
添加 Prometheus 到 SNMP 网关服务(仅限 cephadm)
- 示例命令:
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
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch cancel
取消正在进行的后台操作
- 示例命令:
ceph orch cancel
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr bindings ls
- 示例命令:
ceph orch certmgr bindings ls plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch certmgr cert check
- 示例命令:
ceph orch certmgr cert check plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch certmgr cert get
- 示例命令:
ceph orch certmgr cert get --cert_name=string --service_name=string --hostname=string --no_exception_when_missing
- 参数:
cert_name: (string)
--service_name: (string)
--hostname: (string)
--no_exception_when_missing: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch certmgr cert ls
- 示例命令:
ceph orch certmgr cert ls --filter_by=string --show_details --include_cephadm_signed --format=plain
- 参数:
filter_by: (string)
--show_details: CephBool
--include_cephadm_signed: CephBool
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch certmgr cert rm
- 示例命令:
ceph orch certmgr cert rm my_cert_name my_service_name my_hostname
- 参数:
cert_name: (string)
--service_name: (string)
--hostname: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr cert set
从 --cert 参数或 -i <cert-file> 设置证书。
- 示例命令:
ceph orch certmgr cert set --cert_name=string --cert=string --service_name=string --hostname=string --force
- 参数:
cert_name: (string)
--cert: (string)
--service_name: (string)
--hostname: (string)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr cert-key set
从 -i <pem-file> 设置 cert-key 对,该文件必须是包含证书和私钥的有效 PEM 文件。
- 示例命令:
ceph orch certmgr cert-key set --consumer=string --cert=string --key=string --cert_name=string --service_name=string --hostname=string --force
- 参数:
consumer: (string)
--cert: (string)
--key: (string)
--cert_name: (string)
--service_name: (string)
--hostname: (string)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr generate-certificates
- 示例命令:
ceph orch certmgr generate-certificates my_module_name
- 参数:
module_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr key get
- 示例命令:
ceph orch certmgr key get --key_name=string --service_name=string --hostname=string --no_exception_when_missing
- 参数:
key_name: (string)
--service_name: (string)
--hostname: (string)
--no_exception_when_missing: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch certmgr key ls
- 示例命令:
ceph orch certmgr key ls --include_cephadm_generated_keys plain
- 参数:
--include_cephadm_generated_keys: CephBool
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch certmgr key rm
- 示例命令:
ceph orch certmgr key rm my_key_name my_service_name my_hostname
- 参数:
key_name: (string)
--service_name: (string)
--hostname: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr key set
从 --key 参数或 -i <key-file> 设置密钥。
- 示例命令:
ceph orch certmgr key set --key_name=string --key=string --service_name=string --hostname=string
- 参数:
key_name: (string)
--key: (string)
--service_name: (string)
--hostname: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch certmgr reload
- 示例命令:
ceph orch certmgr reload plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch client-keyring ls
列出 cephadm 管理下的客户端密钥环
- 示例命令:
ceph orch client-keyring ls plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch client-keyring rm
从 cephadm 管理中删除客户端密钥环
- 示例命令:
ceph orch client-keyring rm my_entity
- 参数:
entity: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch client-keyring set
添加或更新 cephadm 管理下的客户端密钥环
- 示例命令:
ceph orch client-keyring set --entity=string --placement=string --owner=string --mode=string --no_ceph_conf
- 参数:
entity: (string)
placement: (string)
owner: (string)
mode: (string)
--no_ceph_conf: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon
启动、停止、重启、重新部署、重新配置或轮换特定守护进程的密钥
- 示例命令:
ceph orch daemon start my_name --force
- 参数:
action: CephChoices strings=(start stop restart reconfig rotate-key)
name: (string)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add
添加守护进程
- 示例命令:
ceph orch daemon add mon my_placement
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add iscsi
启动 iscsi 守护进程
- 示例命令:
ceph orch daemon add iscsi --pool=string --api_user=string --api_password=string --trusted_ip_list=string --placement=string
- 参数:
pool: (string)
api_user: (string)
api_password: (string)
trusted_ip_list: (string)
placement: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add mds
启动 MDS 守护进程
- 示例命令:
ceph orch daemon add mds my_fs_name my_placement
- 参数:
fs_name: (string)
placement: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add nfs
启动 NFS 守护进程
- 示例命令:
ceph orch daemon add nfs my_svc_id my_placement
- 参数:
svc_id: (string)
placement: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add nvmeof
启动 nvmeof 守护进程
- 示例命令:
ceph orch daemon add nvmeof my_pool my_group my_placement
- 参数:
pool: (string)
group: (string)
placement: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add osd
在指定主机和设备上创建 OSD 守护进程(例如,ceph orch daemon add osd myhost:/dev/sdb)
- 示例命令:
ceph orch daemon add osd my_svc_arg raw --skip_validation
- 参数:
svc_arg: (string)
method: CephChoices strings=(raw lvm)
--skip_validation: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon add rgw
启动 RGW 守护进程
- 示例命令:
ceph orch daemon add rgw --svc_id=string --placement=string --port=1 --ssl
- 参数:
svc_id: (string)
placement: (string)
--port: CephInt
--ssl: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon redeploy
重新部署守护进程(使用特定镜像)
- 示例命令:
ceph orch daemon redeploy my_name my_image
- 参数:
name: (string)
image: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch daemon rm
删除特定守护进程
- 示例命令:
ceph orch daemon rm --names=string --force
- 参数:
names: (can be repeated)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch device ls
列出主机上的设备
- 示例命令:
ceph orch device ls --hostname=string --format=plain --refresh --wide --summary
- 参数:
hostname: (can be repeated)
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
--refresh: CephBool
--wide: CephBool
--summary: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch device replace
执行所有必要的操作以替换设备。
- 示例命令:
ceph orch device replace --hostname=string --device=string --clear --yes_i_really_mean_it
- 参数:
hostname: (string)
device: (string)
--clear: CephBool
--yes_i_really_mean_it: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch device zap
擦除(清除!)设备以便重新使用
- 示例命令:
ceph orch device zap my_hostname my_path --force
- 参数:
hostname: (string)
path: (string)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch get-security-config
- 示例命令:
ceph orch get-security-config
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch hardware light
启用或禁用设备或机箱 LED
- 示例命令:
ceph orch hardware light --light_type=chassis --action=on --hostname=string --device=string
- 参数:
light_type: CephChoices strings=(chassis drive)
action: CephChoices strings=(on off get)
hostname: (string)
device: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch hardware powercycle
重启主机
- 示例命令:
ceph orch hardware powercycle my_hostname --yes_i_really_mean_it
- 参数:
hostname: (string)
--yes_i_really_mean_it: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch hardware shutdown
关闭主机
- 示例命令:
ceph orch hardware shutdown my_hostname --force --yes_i_really_mean_it
- 参数:
hostname: (string)
--force: CephBool
--yes_i_really_mean_it: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch hardware status
显示硬件状态摘要:param hostname: hostname
- 示例命令:
ceph orch hardware status my_hostname my_category plain
- 参数:
hostname: (string)
--category: (string)
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host add
添加主机
- 示例命令:
ceph orch host add --hostname=string --addr=string --labels=string --maintenance
- 参数:
hostname: (string)
addr: (string)
labels: (can be repeated)
--maintenance: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host drain
从主机排出所有守护进程
- 示例命令:
ceph orch host drain --hostname=string --force --keep_conf_keyring --zap_osd_devices
- 参数:
hostname: (string)
--force: CephBool
--keep_conf_keyring: CephBool
--zap_osd_devices: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host drain stop
从主机排出所有守护进程
- 示例命令:
ceph orch host drain stop my_hostname
- 参数:
hostname: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host label add
添加主机标签
- 示例命令:
ceph orch host label add my_hostname my_label
- 参数:
hostname: (string)
label: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host label rm
移除主机标签
- 示例命令:
ceph orch host label rm my_hostname my_label --force
- 参数:
hostname: (string)
label: (string)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host ls
列出高级主机信息
- 示例命令:
ceph orch host ls --format=plain --host_pattern=string --label=string --host_status=string --detail
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
--host_pattern: (string)
--label: (string)
--host_status: (string)
--detail: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch host maintenance enter
通过关闭并禁用所有 Ceph 守护进程来准备主机进行维护(仅限 cephadm)
- 示例命令:
ceph orch host maintenance enter my_hostname --force --yes_i_really_mean_it
- 参数:
hostname: (string)
--force: CephBool
--yes_i_really_mean_it: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host maintenance exit
将主机从维护状态返回,重启所有 Ceph 守护进程(仅限 cephadm)
- 示例命令:
ceph orch host maintenance exit my_hostname --force --offline
- 参数:
hostname: (string)
--force: CephBool
--offline: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host ok-to-stop
检查是否可以安全地停止指定主机而不会降低可用性
- 示例命令:
ceph orch host ok-to-stop my_hostname
- 参数:
hostname: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host rescan
在主机上执行磁盘重新扫描
- 示例命令:
ceph orch host rescan my_hostname --with_summary
- 参数:
hostname: (string)
--with_summary: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host rm
移除主机
- 示例命令:
ceph orch host rm --hostname=string --force --offline --rm_crush_entry
- 参数:
hostname: (string)
--force: CephBool
--offline: CephBool
--rm_crush_entry: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch host set-addr
更新主机地址
- 示例命令:
ceph orch host set-addr my_hostname my_addr
- 参数:
hostname: (string)
addr: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch ls
列出协调器已知的所有服务
- 示例命令:
ceph orch ls --service_type=string --service_name=string --export --format=plain --refresh
- 参数:
service_type: (string)
service_name: (string)
--export: CephBool
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
--refresh: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch osd rm
移除 OSD 守护进程
- 示例命令:
ceph orch osd rm --osd_id=string --replace --force --zap --no_destroy
- 参数:
osd_id: (can be repeated)
--replace: CephBool
--force: CephBool
--zap: CephBool
--no_destroy: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch osd rm status
OSD 移除操作的状态
- 示例命令:
ceph orch osd rm status plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch osd rm stop
取消正在进行的 OSD 移除操作
- 示例命令:
ceph orch osd rm stop --osd_id=string
- 参数:
osd_id: (can be repeated)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch osd set-spec-affinity
设置 osd 的服务规范亲和性
- 示例命令:
ceph orch osd set-spec-affinity --service_name=string --osd_id=string
- 参数:
service_name: (string)
osd_id: (can be repeated)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch pause
暂停协调器后台工作
- 示例命令:
ceph orch pause
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch prometheus get-credentials
- 示例命令:
ceph orch prometheus get-credentials
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch prometheus remove-target
- 示例命令:
ceph orch prometheus remove-target my_url
- 参数:
url: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch prometheus set-credentials
- 示例命令:
ceph orch prometheus set-credentials my_username my_password
- 参数:
username: (string)
password: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch prometheus set-custom-alerts
- 示例命令:
ceph orch prometheus set-custom-alerts
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch prometheus set-target
- 示例命令:
ceph orch prometheus set-target my_url
- 参数:
url: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch ps
列出协调器已知的所有守护进程
- 示例命令:
ceph orch ps --hostname=string --service_name=string --daemon_type=string --daemon_id=string --sort_by=service_name --format=plain --refresh
- 参数:
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 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch resume
恢复协调器后台工作(如果已暂停)
- 示例命令:
ceph orch resume
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch rm
移除服务
- 示例命令:
ceph orch rm my_service_name --force
- 参数:
service_name: (string)
--force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch set backend
选择协调器模块后端
- 示例命令:
ceph orch set backend my_module_name
- 参数:
module_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch set-managed
为给定服务名称设置 'unmanaged: false'
- 示例命令:
ceph orch set-managed my_service_name
- 参数:
service_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch set-unmanaged
为给定服务名称设置 'unmanaged: true'
- 示例命令:
ceph orch set-unmanaged my_service_name
- 参数:
service_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch status
报告已配置的后端及其状态
- 示例命令:
ceph orch status --detail plain
- 参数:
--detail: CephBool
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch tuned-profile add-setting
- 示例命令:
ceph orch tuned-profile add-setting my_profile_name my_setting my_value
- 参数:
profile_name: (string)
setting: (string)
value: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch tuned-profile add-settings
- 示例命令:
ceph orch tuned-profile add-settings my_profile_name my_settings
- 参数:
profile_name: (string)
settings: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch tuned-profile apply
添加或更新 tuned 配置文件
- 示例命令:
ceph orch tuned-profile apply --profile_name=string --placement=string --settings=string --no_overwrite
- 参数:
profile_name: (string)
placement: (string)
settings: (string)
--no_overwrite: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch tuned-profile ls
- 示例命令:
ceph orch tuned-profile ls plain
- 参数:
--format: CephChoices strings=(plain json json-pretty yaml xml-pretty xml)
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch tuned-profile rm
- 示例命令:
ceph orch tuned-profile rm my_profile_name
- 参数:
profile_name: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch tuned-profile rm-setting
- 示例命令:
ceph orch tuned-profile rm-setting my_profile_name my_setting
- 参数:
profile_name: (string)
setting: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch tuned-profile rm-settings
- 示例命令:
ceph orch tuned-profile rm-settings my_profile_name my_settings
- 参数:
profile_name: (string)
settings: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch unpause
orch resume 的别名
- 示例命令:
ceph orch unpause
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch update service
更新非 ceph 镜像守护进程的镜像
- 示例命令:
ceph orch update service prometheus my_image
- 参数:
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 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch upgrade check
检查服务版本与可用和目标容器的匹配情况
- 示例命令:
ceph orch upgrade check my_image my_ceph_version
- 参数:
image: (string)
ceph_version: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch upgrade ls
检查可用于升级的版本(或标签)
- 示例命令:
ceph orch upgrade ls my_image --tags --show_all_versions
- 参数:
image: (string)
--tags: CephBool
--show_all_versions: CephBool
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
orch upgrade pause
暂停正在进行的升级
- 示例命令:
ceph orch upgrade pause
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch upgrade resume
恢复暂停的升级
- 示例命令:
ceph orch upgrade resume
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch upgrade start
启动升级
- 示例命令:
ceph orch upgrade start --image=string --daemon_types=string --hosts=string --services=string --limit=1 --ceph_version=string
- 参数:
image: (string)
--daemon_types: (string)
--hosts: (string)
--services: (string)
--limit: CephInt
--ceph_version: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch upgrade status
检查任何潜在的正在进行的升级操作的状态
- 示例命令:
ceph orch upgrade status my_format
- 参数:
--format: (string)
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
orch upgrade stop
停止正在进行的升级
- 示例命令:
ceph orch upgrade stop
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
osd
osd perf counters get
获取 osd 性能计数器
- 示例命令:
ceph osd perf counters get 1
- 参数:
query_id: CephInt
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
osd perf query add
添加 osd 性能查询
- 示例命令:
ceph osd perf query add client_id
- 参数:
query: CephChoices strings=(client_id rbd_image_id all_subkeys)
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
osd perf query remove
移除 osd 性能查询
- 示例命令:
ceph osd perf query remove 1
- 参数:
query_id: CephInt
- Ceph 模块:
mgr
- 所需权限:
w- 命令标志:
mgr
progress
progress
显示恢复操作的进度
- 示例命令:
ceph progress- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
progress clear
重置进度跟踪
- 示例命令:
ceph progress clear
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
progress json
显示机器可读的进度信息
- 示例命令:
ceph progress json
- Ceph 模块:
mgr
- 所需权限:
r- 命令标志:
mgr
progress off
禁用进度跟踪
- 示例命令:
ceph progress off
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
progress on
启用进度跟踪
- 示例命令:
ceph progress on
- Ceph 模块:
mgr
- 所需权限:
rw- 命令标志:
mgr
add_bootstrap_peer_hint
添加对等地址作为集群启动的潜在引导对等节点
- 示例命令:
ceph add_bootstrap_peer_hint 0.0.0.0
- 参数:
addr: CephIPAddr
- Ceph 模块:
mon
- 所需权限:
rw
add_bootstrap_peer_hintv
添加对等地址向量作为集群启动的潜在引导对等节点
- 示例命令:
ceph add_bootstrap_peer_hintv my_addrv
- 参数:
addrv: (string)
- Ceph 模块:
mon
- 所需权限:
rw
auth
auth add
从输入文件添加 <entity> 的身份验证信息,如果没有输入则使用随机密钥,以及/或命令中指定的任何功能
- 示例命令:
ceph auth add --entity=string --caps=string
- 参数:
entity: (string)
caps: (can be repeated)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth caps
更新 <name> 的功能,来自命令中指定的功能
- 示例命令:
ceph auth caps --entity=string --caps=string
- 参数:
entity: (string)
caps: (can be repeated)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth clear-pending
清除挂起的密钥
- 示例命令:
ceph auth clear-pending my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth commit-pending
将挂起的密钥轮换到活动位置
- 示例命令:
ceph auth commit-pending my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth del
删除 <name> 的所有功能
- 示例命令:
ceph auth del my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx- 命令标志:
已弃用
auth export
写入请求实体的密钥环,如果没有给出则写入主密钥环
- 示例命令:
ceph auth export my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rx
auth get
写入包含请求密钥的密钥环文件
- 示例命令:
ceph auth get my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rx
auth get-key
显示请求的密钥
- 示例命令:
ceph auth get-key my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rx
auth get-or-create
从输入文件添加 <entity> 的身份验证信息,如果没有输入则使用随机密钥,以及/或命令中指定的任何功能
- 示例命令:
ceph auth get-or-create --entity=string --caps=string
- 参数:
entity: (string)
caps: (can be repeated)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth get-or-create-key
从命令中指定的系统/功能对获取或添加 <name> 的密钥。如果密钥已存在,则给定的任何功能必须与该密钥的现有功能匹配。
- 示例命令:
ceph auth get-or-create-key --entity=string --caps=string
- 参数:
entity: (string)
caps: (can be repeated)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth get-or-create-pending
生成和/或检索现有挂起密钥(在首次使用时轮换到位)
- 示例命令:
ceph auth get-or-create-pending my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth import
auth import:从 -i <file> 读取密钥环文件
- 示例命令:
ceph auth import
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth list
列出身份验证状态
- 示例命令:
ceph auth list
- Ceph 模块:
auth(认证)
- 所需权限:
rx- 命令标志:
已弃用
auth ls
列出身份验证状态
- 示例命令:
ceph auth ls
- Ceph 模块:
auth(认证)
- 所需权限:
rx
auth print-key
显示请求的密钥
- 示例命令:
ceph auth print-key my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rx
auth print_key
显示请求的密钥
- 示例命令:
ceph auth print_key my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rx
auth rm
移除 <name> 的所有功能
- 示例命令:
ceph auth rm my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
auth rotate
轮换实体密钥
- 示例命令:
ceph auth rotate my_entity
- 参数:
entity: (string)
- Ceph 模块:
auth(认证)
- 所需权限:
rwx
compact
导致监视器 RocksDB 存储压缩
- 示例命令:
ceph compact- Ceph 模块:
mon
- 所需权限:
rw
config
config assimilate-conf
从 conf 文件吸收选项,并返回一个新的最小 conf 文件
- 示例命令:
ceph config assimilate-conf
- Ceph 模块:
config
- 所需权限:
rw
config dump
显示所有配置选项
- 示例命令:
ceph config dump
- Ceph 模块:
mon
- 所需权限:
r
config generate-minimal-conf
生成一个最小的 ceph.conf 文件
- 示例命令:
ceph config generate-minimal-conf
- Ceph 模块:
config
- 所需权限:
r
config get
显示实体的配置选项
- 示例命令:
ceph config get string my_key
- 参数:
who: (string)
key: (string)
- Ceph 模块:
config
- 所需权限:
r
config help
描述配置选项
- 示例命令:
ceph config help my_key
- 参数:
key: (string)
- Ceph 模块:
config
- 所需权限:
r
config log
显示配置更改的最近历史记录
- 示例命令:
ceph config log 1
- 参数:
num: CephInt
- Ceph 模块:
config
- 所需权限:
r
config ls
列出可用的配置选项
- 示例命令:
ceph config ls
- Ceph 模块:
config
- 所需权限:
r
config reset
将配置恢复到由 <num> 指定的历史版本
- 示例命令:
ceph config reset 1
- 参数:
num: CephInt range=
0
- Ceph 模块:
config
- 所需权限:
rw
config rm
清除一个或多个实体的配置选项
- 示例命令:
ceph config rm string my_name
- 参数:
who: (string)
name: (string)
- Ceph 模块:
config
- 所需权限:
rw
config set
为一个或多个实体设置配置选项
- 示例命令:
ceph config set --who=string --name=string --value=string --force
- 参数:
who: (string)
name: (string)
value: (string)
force: CephBool
- Ceph 模块:
config
- 所需权限:
rw
config show
显示运行配置
- 示例命令:
ceph config show string my_key
- 参数:
who: (string)
key: (string)
- Ceph 模块:
mgr
- 所需权限:
r
config show-with-defaults
显示运行配置(包括编译的默认值)
- 示例命令:
ceph config show-with-defaults string
- 参数:
who: (string)
- Ceph 模块:
mgr
- 所需权限:
r
config-key
config-key del
删除 <key>
- 示例命令:
ceph config-key del my_key
- 参数:
key: (string)
- Ceph 模块:
config-key
- 所需权限:
rw- 命令标志:
已弃用
config-key dump
转储键和值(带可选前缀)
- 示例命令:
ceph config-key dump my_key
- 参数:
key: (string)
- Ceph 模块:
config-key
- 所需权限:
r
config-key exists
检查 <key> 是否存在
- 示例命令:
ceph config-key exists my_key
- 参数:
key: (string)
- Ceph 模块:
config-key
- 所需权限:
r
config-key get
获取 <key>
- 示例命令:
ceph config-key get my_key
- 参数:
key: (string)
- Ceph 模块:
config-key
- 所需权限:
r
config-key list
列出键
- 示例命令:
ceph config-key list
- Ceph 模块:
config-key
- 所需权限:
r- 命令标志:
已弃用
config-key ls
列出键
- 示例命令:
ceph config-key ls
- Ceph 模块:
config-key
- 所需权限:
r
config-key put
放置 <key>,值 <val>
- 示例命令:
ceph config-key put my_key my_val
- 参数:
key: (string)
val: (string)
- Ceph 模块:
config-key
- 所需权限:
rw- 命令标志:
已弃用
config-key rm
移除 <key>
- 示例命令:
ceph config-key rm my_key
- 参数:
key: (string)
- Ceph 模块:
config-key
- 所需权限:
rw
config-key set
设置 <key> 的值为 <val>
- 示例命令:
ceph config-key set my_key my_val
- 参数:
key: (string)
val: (string)
- Ceph 模块:
config-key
- 所需权限:
rw
connection
connection scores dump
显示基于连接的选举中使用的分数
- 示例命令:
ceph connection scores dump
- Ceph 模块:
mon
- 所需权限:
rwx
connection scores reset
重置基于连接的选举中使用的分数
- 示例命令:
ceph connection scores reset
- Ceph 模块:
mon
- 所需权限:
rwx
device
device info
显示设备信息
- 示例命令:
ceph device info my_devid
- 参数:
devid: (string)
- Ceph 模块:
mgr
- 所需权限:
r
device ls
显示设备
- 示例命令:
ceph device ls
- Ceph 模块:
mgr
- 所需权限:
r
device ls-by-daemon
显示与守护进程关联的设备
- 示例命令:
ceph device ls-by-daemon string
- 参数:
who: (string)
- Ceph 模块:
mgr
- 所需权限:
r
device ls-by-host
显示主机上的设备
- 示例命令:
ceph device ls-by-host my_host
- 参数:
host: (string)
- Ceph 模块:
mgr
- 所需权限:
r
device rm-life-expectancy
清除预测的设备预期寿命
- 示例命令:
ceph device rm-life-expectancy my_devid
- 参数:
devid: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
device set-life-expectancy
设置预测的设备预期寿命
- 示例命令:
ceph device set-life-expectancy my_devid my_from my_to
- 参数:
devid: (string)
from: (string)
to: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
df
显示集群可用空间统计信息
- 示例命令:
ceph df detail
- 参数:
detail: CephChoices strings=(detail)
- Ceph 模块:
mon
- 所需权限:
r
dump_historic_ops
显示最近的操作
- 示例命令:
ceph dump_historic_ops- Ceph 模块:
mon
- 所需权限:
r
dump_historic_ops_by_duration
按持续时间排序显示最近的操作
- 示例命令:
ceph dump_historic_ops_by_duration- Ceph 模块:
mon
- 所需权限:
r
dump_historic_slow_ops
显示最近的慢操作
- 示例命令:
ceph dump_historic_slow_ops- Ceph 模块:
mon
- 所需权限:
r
dump_ops_in_flight
显示当前正在执行的操作
- 示例命令:
ceph dump_ops_in_flight- Ceph 模块:
mon
- 所需权限:
r
features
报告连接的功能
- 示例命令:
ceph features- Ceph 模块:
mon
- 所需权限:
r
fs
fs add_data_pool
添加数据池 <pool>
- 示例命令:
ceph fs add_data_pool my_fs_name my_pool
- 参数:
fs_name: (string)
pool: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs compat
操作兼容性设置
- 示例命令:
ceph fs compat --fs_name=string --subop=rm_compat --feature=1 --feature_str=string
- 参数:
fs_name: (string)
subop: CephChoices strings=(rm_compat rm_incompat add_compat add_incompat)
feature: CephInt
feature_str: (string)
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs compat show
显示 fs 兼容性设置
- 示例命令:
ceph fs compat show my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
mds
- 所需权限:
r
fs dump
转储所有 CephFS 状态,可选从纪元开始
- 示例命令:
ceph fs dump 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
mds
- 所需权限:
r
fs fail
关闭文件系统及其所有排名
- 示例命令:
ceph fs fail my_fs_name --yes_i_really_mean_it
- 参数:
fs_name: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs feature ls
列出可设置/取消设置的 cephfs 功能
- 示例命令:
ceph fs feature ls
- Ceph 模块:
mds
- 所需权限:
r
fs flag set
设置全局 CephFS 标志
- 示例命令:
ceph fs flag set enable_multiple my_val --yes_i_really_mean_it
- 参数:
flag_name: CephChoices strings=(enable_multiple)
val: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs get
获取一个文件系统的信息
- 示例命令:
ceph fs get my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
fs(文件系统)
- 所需权限:
r
fs ls
列出文件系统
- 示例命令:
ceph fs ls
- Ceph 模块:
fs(文件系统)
- 所需权限:
r
fs lsflags
列出 ceph 文件系统上设置的标志
- 示例命令:
ceph fs lsflags my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
fs(文件系统)
- 所需权限:
r
fs mirror disable
禁用 ceph 文件系统的镜像
- 示例命令:
ceph fs mirror disable my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs mirror enable
启用 ceph 文件系统的镜像
- 示例命令:
ceph fs mirror enable my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs mirror peer_add
为 ceph 文件系统添加镜像对等体
- 示例命令:
ceph fs mirror peer_add --fs_name=string --uuid=string --remote_cluster_spec=string --remote_fs_name=string
- 参数:
fs_name: (string)
uuid: (string)
remote_cluster_spec: (string)
remote_fs_name: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs mirror peer_remove
为 ceph 文件系统移除镜像对等体
- 示例命令:
ceph fs mirror peer_remove my_fs_name my_uuid
- 参数:
fs_name: (string)
uuid: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs new
使用命名池 <metadata> 和 <data> 创建新文件系统
- 示例命令:
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
- 参数:
fs_name: goodchars=
[A-Za-z0-9-_.]metadata: (string)
data: (string)
force: CephBool
allow_dangerous_metadata_overlay: CephBool
fscid: CephInt range=
0recover: CephBool
yes_i_really_really_mean_it: CephBool
set: (can be repeated)
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs rename
重命名 ceph 文件系统
- 示例命令:
ceph fs rename my_fs_name my_new_fs_name --yes_i_really_mean_it
- 参数:
fs_name: (string)
new_fs_name: goodchars=
[A-Za-z0-9-_.]yes_i_really_mean_it: CephBool
- Ceph 模块:
mds
- 所需权限:
rw
fs required_client_features
添加/移除客户端所需功能
- 示例命令:
ceph fs required_client_features my_fs_name add my_val
- 参数:
fs_name: (string)
subop: CephChoices strings=(add rm)
val: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs reset
仅用于灾难恢复:重置为单个 MDS 映射
- 示例命令:
ceph fs reset my_fs_name --yes_i_really_mean_it
- 参数:
fs_name: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs rm
禁用命名文件系统
- 示例命令:
ceph fs rm my_fs_name --yes_i_really_mean_it
- 参数:
fs_name: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs rm_data_pool
移除数据池 <pool>
- 示例命令:
ceph fs rm_data_pool my_fs_name my_pool
- 参数:
fs_name: (string)
pool: (string)
- Ceph 模块:
mds
- 所需权限:
rw
fs set
设置 fs 参数 <var> 的值为 <val>
- 示例命令:
ceph fs set --fs_name=string --var=max_mds --val=string --yes_i_really_mean_it --yes_i_really_really_mean_it
- 参数:
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 模块:
mds
- 所需权限:
rw
fs set-default
设置默认文件系统为命名文件系统
- 示例命令:
ceph fs set-default my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw
fs set_default
设置默认文件系统为命名文件系统
- 示例命令:
ceph fs set_default my_fs_name
- 参数:
fs_name: (string)
- Ceph 模块:
fs(文件系统)
- 所需权限:
rw- 命令标志:
已弃用
fs swap
交换 ceph 文件系统名称
- 示例命令:
ceph fs swap --fs1_name=string --fs1_id=0 --fs2_name=string --fs2_id=0 --swap_fscids=yes --yes_i_really_mean_it
- 参数:
fs1_name: (string)
fs1_id: CephInt range=
0fs2_name: (string)
fs2_id: CephInt range=
0swap_fscids: CephChoices strings=(yes no)
yes_i_really_mean_it: CephBool
- Ceph 模块:
mds
- 所需权限:
rw
fsid
显示集群 FSID/UUID
- 示例命令:
ceph fsid- Ceph 模块:
mon
- 所需权限:
r
health
health
显示集群健康状况
- 示例命令:
ceph health detail
- 参数:
detail: CephChoices strings=(detail)
- Ceph 模块:
mon
- 所需权限:
r
health mute
静音健康警报
- 示例命令:
ceph health mute my_code my_ttl --sticky
- 参数:
code: (string)
ttl: (string)
sticky: CephBool
- Ceph 模块:
mon
- 所需权限:
w
health unmute
取消静音现有健康警报静音
- 示例命令:
ceph health unmute my_code
- 参数:
code: (string)
- Ceph 模块:
mon
- 所需权限:
w
heap
显示堆使用信息(仅在用 tcmalloc 编译时可用)
- 示例命令:
ceph heap dump my_value
- 参数:
heapcmd: CephChoices strings=(dump start_profiler stop_profiler release stats)
value: (string)
- Ceph 模块:
mon
- 所需权限:
rw
injectargs
将配置参数注入监视器
- 示例命令:
ceph injectargs --injected_args=string
- 参数:
injected_args: (can be repeated)
- Ceph 模块:
mon
- 所需权限:
rw
log
log
将提供的文本记录到监视器日志
- 示例命令:
ceph log --logtext=string
- 参数:
logtext: (can be repeated)
- Ceph 模块:
mon
- 所需权限:
rw
log last
打印集群日志的最后几行
- 示例命令:
ceph log last 1 debug *
- 参数:
num: CephInt range=
1level: CephChoices strings=(debug info sec warn error)
channel: CephChoices strings=(* cluster audit cephadm)
- Ceph 模块:
mon
- 所需权限:
r
mds
mds compat rm_compat
移除兼容功能
- 示例命令:
ceph mds compat rm_compat 1
- 参数:
feature: CephInt range=
0
- Ceph 模块:
mds
- 所需权限:
rw- 命令标志:
已弃用
mds compat rm_incompat
移除不兼容功能
- 示例命令:
ceph mds compat rm_incompat 1
- 参数:
feature: CephInt range=
0
- Ceph 模块:
mds
- 所需权限:
rw- 命令标志:
已弃用
mds compat show
显示 mds 兼容性设置
- 示例命令:
ceph mds compat show
- Ceph 模块:
mds
- 所需权限:
r- 命令标志:
已弃用
mds count-metadata
按元数据字段属性计数 MDS
- 示例命令:
ceph mds count-metadata my_property
- 参数:
property: (string)
- Ceph 模块:
mds
- 所需权限:
r
mds fail
标记 MDS 失败:如果备用 MDS 可用,则触发故障转移
- 示例命令:
ceph mds fail my_role_or_gid --yes_i_really_mean_it
- 参数:
role_or_gid: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
mds
- 所需权限:
rw
mds last-seen
获取 mds <id> 的元数据
- 示例命令:
ceph mds last-seen my_id
- 参数:
id: (string)
- Ceph 模块:
mds
- 所需权限:
r
mds metadata
获取 mds <role> 的元数据
- 示例命令:
ceph mds metadata string
- 参数:
who: (string)
- Ceph 模块:
mds
- 所需权限:
r
mds ok-to-stop
检查停止指定 MDS 是否会降低即时可用性
- 示例命令:
ceph mds ok-to-stop --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
mds
- 所需权限:
r
mds repaired
将损坏的 MDS 排名标记为不再损坏
- 示例命令:
ceph mds repaired my_role
- 参数:
role: (string)
- Ceph 模块:
mds
- 所需权限:
rw
mds rm
移除非活动的 mds
- 示例命令:
ceph mds rm 1
- 参数:
gid: CephInt range=
0
- Ceph 模块:
mds
- 所需权限:
rw
mds versions
检查 MDSs 的运行版本
- 示例命令:
ceph mds versions
- Ceph 模块:
mds
- 所需权限:
r
mgr
mgr count-metadata
按元数据字段属性计数 ceph-mgr 守护进程
- 示例命令:
ceph mgr count-metadata my_property
- 参数:
property: (string)
- Ceph 模块:
mgr
- 所需权限:
r
mgr dump
转储最新的 MgrMap
- 示例命令:
ceph mgr dump 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
mgr
- 所需权限:
r
mgr fail
将命名管理器守护进程视为失败
- 示例命令:
ceph mgr fail string
- 参数:
who: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
mgr metadata
转储所有守护进程或特定守护进程的元数据
- 示例命令:
ceph mgr metadata string
- 参数:
who: (string)
- Ceph 模块:
mgr
- 所需权限:
r
mgr module disable
禁用 mgr 模块
- 示例命令:
ceph mgr module disable my_module
- 参数:
module: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
mgr module enable
启用 mgr 模块
- 示例命令:
ceph mgr module enable my_module --force
- 参数:
module: (string)
force: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw
mgr module force disable
强制禁用始终开启的 mgr 模块
- 示例命令:
ceph mgr module force disable my_module --yes_i_really_mean_it
- 参数:
module: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
mgr
- 所需权限:
rw
mgr module ls
列出活动的 mgr 模块
- 示例命令:
ceph mgr module ls
- Ceph 模块:
mgr
- 所需权限:
r
mgr services
列出 mgr 模块提供的服务终结点
- 示例命令:
ceph mgr services
- Ceph 模块:
mgr
- 所需权限:
r
mgr set
设置 mgr 参数 <var> 的值为 <val>
- 示例命令:
ceph mgr set down my_val
- 参数:
var: CephChoices strings=(down)
val: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
mgr stat
转储 mgr 集群状态的基本信息
- 示例命令:
ceph mgr stat
- Ceph 模块:
mgr
- 所需权限:
r
mgr versions
检查 ceph-mgr 守护进程的运行版本
- 示例命令:
ceph mgr versions
- Ceph 模块:
mgr
- 所需权限:
r
mon
mon add
在 <addr> 添加名为 <name> 的新监视器,可能带有 CRUSH 位置 <location>
- 示例命令:
ceph mon add --name=string --addr=0.0.0.0 --location=string
- 参数:
name: (string)
addr: CephIPAddr
location: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
mon
- 所需权限:
rw
mon add disallowed_leader
阻止命名监视器成为领导者
- 示例命令:
ceph mon add disallowed_leader my_name
- 参数:
name: (string)
- Ceph 模块:
mon
- 所需权限:
rw
mon count-metadata
按元数据字段属性计数 mons
- 示例命令:
ceph mon count-metadata my_property
- 参数:
property: (string)
- Ceph 模块:
mon
- 所需权限:
r
mon disable_stretch_mode
禁用拉伸模式,恢复正常对等规则
- 示例命令:
ceph mon disable_stretch_mode my_crush_rule --yes_i_really_mean_it
- 参数:
crush_rule: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
mon
- 所需权限:
rw
mon dump
转储格式化的 monmap(可选从纪元开始)
- 示例命令:
ceph mon dump 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
mon
- 所需权限:
r
mon enable-msgr2
在端口 3300 启用 msgr2 协议
- 示例命令:
ceph mon enable-msgr2
- Ceph 模块:
mon
- 所需权限:
rw
mon enable_stretch_mode
启用拉伸模式,更改所有池的对等规则和故障处理,以 <tiebreaker_mon> 作为决胜者,并设置 <dividing_bucket> 位置作为跨越的单位
- 示例命令:
ceph mon enable_stretch_mode my_tiebreaker_mon my_new_crush_rule my_dividing_bucket
- 参数:
tiebreaker_mon: (string)
new_crush_rule: (string)
dividing_bucket: (string)
- Ceph 模块:
mon
- 所需权限:
rw
mon feature ls
列出可设置/取消设置的 mon map 功能
- 示例命令:
ceph mon feature ls --with_value
- 参数:
with_value: CephBool
- Ceph 模块:
mon
- 所需权限:
r
mon feature set
在 mon map 上设置提供的功能
- 示例命令:
ceph mon feature set my_feature_name --yes_i_really_mean_it
- 参数:
feature_name: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
mon
- 所需权限:
rw
mon getmap
获取 monmap
- 示例命令:
ceph mon getmap 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
mon
- 所需权限:
r
mon metadata
获取 mon <id> 的元数据
- 示例命令:
ceph mon metadata my_id
- 参数:
id: (string)
- Ceph 模块:
mon
- 所需权限:
r
mon ok-to-add-offline
检查添加一个 mon 而不启动它是否会破坏仲裁
- 示例命令:
ceph mon ok-to-add-offline
- Ceph 模块:
mon
- 所需权限:
r
mon ok-to-rm
检查移除指定 mon 是否会破坏仲裁
- 示例命令:
ceph mon ok-to-rm my_id
- 参数:
id: (string)
- Ceph 模块:
mon
- 所需权限:
r
mon ok-to-stop
检查是否可以安全地停止监视器而不会降低即时可用性
- 示例命令:
ceph mon ok-to-stop --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
mon
- 所需权限:
r
mon remove
移除名为 <name> 的监视器
- 示例命令:
ceph mon remove my_name
- 参数:
name: (string)
- Ceph 模块:
mon
- 所需权限:
rw- 命令标志:
已弃用
mon rm
移除名为 <name> 的监视器
- 示例命令:
ceph mon rm my_name
- 参数:
name: (string)
- Ceph 模块:
mon
- 所需权限:
rw
mon rm disallowed_leader
允许命名监视器再次成为领导者
- 示例命令:
ceph mon rm disallowed_leader my_name
- 参数:
name: (string)
- Ceph 模块:
mon
- 所需权限:
rw
mon scrub
擦洗监视器存储
- 示例命令:
ceph mon scrub
- Ceph 模块:
mon
- 所需权限:
rw
mon set election_strategy
设置要使用的选举策略;选项包括 classic, disallow, connectivity
- 示例命令:
ceph mon set election_strategy my_strategy
- 参数:
strategy: (string)
- Ceph 模块:
mon
- 所需权限:
rw
mon set-addrs
设置特定监视器绑定到的地址(IP 和端口)
- 示例命令:
ceph mon set-addrs my_name my_addrs
- 参数:
name: (string)
addrs: (string)
- Ceph 模块:
mon
- 所需权限:
rw
mon set-rank
设置指定 mon 的排名
- 示例命令:
ceph mon set-rank my_name 1
- 参数:
name: (string)
rank: CephInt
- Ceph 模块:
mon
- 所需权限:
rw
mon set-weight
设置指定 mon 的权重
- 示例命令:
ceph mon set-weight my_name 1
- 参数:
name: (string)
weight: CephInt range=
0..65535
- Ceph 模块:
mon
- 所需权限:
rw
mon set_location
使用 CRUSH 桶名称为监视器 <name> 指定位置 <args>
- 示例命令:
ceph mon set_location --name=string --args=string
- 参数:
name: (string)
args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
mon
- 所需权限:
rw
mon set_new_tiebreaker
将拉伸决胜者切换为命名监视器
- 示例命令:
ceph mon set_new_tiebreaker my_name --yes_i_really_mean_it
- 参数:
name: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
mon
- 所需权限:
rw
mon stat
总结监视器状态
- 示例命令:
ceph mon stat
- Ceph 模块:
mon
- 所需权限:
r
mon versions
检查监视器的运行版本
- 示例命令:
ceph mon versions
- Ceph 模块:
mon
- 所需权限:
r
mon_status
报告监视器的状态
- 示例命令:
ceph mon_status- Ceph 模块:
mon
- 所需权限:
r
node ls
列出集群中的所有节点 [type]
- 示例命令:
ceph node ls all
- 参数:
type: CephChoices strings=(all osd mon mds mgr)
- Ceph 模块:
mon
- 所需权限:
r
nvme-gw
nvme-gw create
为 (pool, group) 创建 nvmeof 网关 ID
- 示例命令:
ceph nvme-gw create my_id my_pool my_group
- 参数:
id: (string)
pool: (string)
group: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
nvme-gw delete
为 (pool, group) 删除 nvmeof 网关 ID
- 示例命令:
ceph nvme-gw delete my_id my_pool my_group
- 参数:
id: (string)
pool: (string)
group: (string)
- Ceph 模块:
mgr
- 所需权限:
rw
nvme-gw listeners
显示 (pool, group) 内所有 nvmeof 网关侦听器
- 示例命令:
ceph nvme-gw listeners my_pool my_group
- 参数:
pool: (string)
group: (string)
- Ceph 模块:
mon
- 所需权限:
r
nvme-gw show
显示 (pool, group) 内 nvmeof 网关
- 示例命令:
ceph nvme-gw show my_pool my_group
- 参数:
pool: (string)
group: (string)
- Ceph 模块:
mon
- 所需权限:
r
ops
显示当前正在执行的操作
- 示例命令:
ceph ops- Ceph 模块:
mon
- 所需权限:
r
osd
osd add-nodown
将 osd(s) <id> [<id>…] 标记为 nodown,或使用 <all|any> 将所有 osd 标记为 nodown
- 示例命令:
ceph osd add-nodown --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd add-noin
将 osd(s) <id> [<id>…] 标记为 noin,或使用 <all|any> 将所有 osd 标记为 noin
- 示例命令:
ceph osd add-noin --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd add-noout
将 osd(s) <id> [<id>…] 标记为 noout,或使用 <all|any> 将所有 osd 标记为 noout
- 示例命令:
ceph osd add-noout --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd add-noup
将 osd(s) <id> [<id>…] 标记为 noup,或使用 <all|any> 将所有 osd 标记为 noup
- 示例命令:
ceph osd add-noup --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd blacklist
添加(可选直到 <expire> 秒后)或移除 <addr> 从黑名单中
- 示例命令:
ceph osd blacklist add entityaddr 0.0
- 参数:
blacklistop: CephChoices strings=(add rm)
addr: CephEntityAddr
expire: CephFloat range=
0.0
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd blacklist clear
清除所有黑名单客户端
- 示例命令:
ceph osd blacklist clear
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd blacklist ls
显示黑名单客户端
- 示例命令:
ceph osd blacklist ls
- Ceph 模块:
osd
- 所需权限:
r- 命令标志:
已弃用
osd blocked-by
打印哪些 OSD 正在阻塞其对等节点的直方图
- 示例命令:
ceph osd blocked-by
- Ceph 模块:
osd
- 所需权限:
r
osd blocklist
添加(可选直到 <expire> 秒后)或移除 <addr> 从阻止列表中
- 示例命令:
ceph osd blocklist --blocklistop=add --addr=entityaddr --range=string --expire=0.0
- 参数:
blocklistop: CephChoices strings=(add rm)
addr: CephEntityAddr
range: goodchars=
[range]expire: CephFloat range=
0.0
- Ceph 模块:
osd
- 所需权限:
rw
osd blocklist clear
清除所有阻止列表客户端
- 示例命令:
ceph osd blocklist clear
- Ceph 模块:
osd
- 所需权限:
rw
osd blocklist ls
显示阻止列表客户端
- 示例命令:
ceph osd blocklist ls
- Ceph 模块:
osd
- 所需权限:
r
osd count-metadata
按元数据字段属性计数 OSDs
- 示例命令:
ceph osd count-metadata my_property
- 参数:
property: (string)
- Ceph 模块:
osd
- 所需权限:
r
osd create
创建新 osd(带可选 UUID 和 ID)
- 示例命令:
ceph osd create uuid osd.0
- 参数:
uuid: CephUUID
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd crush add
添加或更新 <name> 的 crushmap 位置和权重,使用 <weight> 和位置 <args>
- 示例命令:
ceph osd crush add --id=osd.0 --weight=0.0 --args=string
- 参数:
id: CephOsdName
weight: CephFloat range=
0.0args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush add-bucket
添加无父级(可能是根)crush 桶 <name>,类型为 <type>,到位置 <args>
- 示例命令:
ceph osd crush add-bucket --name=string --type=string --args=string
- 参数:
name: goodchars=
[A-Za-z0-9-_.]type: (string)
args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush class create
创建 crush 设备类 <class>
- 示例命令:
ceph osd crush class create my_class
- 参数:
class: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush class ls
列出所有 crush 设备类
- 示例命令:
ceph osd crush class ls
- Ceph 模块:
osd
- 所需权限:
r
osd crush class ls-osd
列出属于特定 <class> 的所有 osd
- 示例命令:
ceph osd crush class ls-osd my_class
- 参数:
class: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
r
osd crush class rename
重命名 crush 设备类 <srcname> 为 <dstname>
- 示例命令:
ceph osd crush class rename my_srcname my_dstname
- 参数:
srcname: goodchars=
[A-Za-z0-9-_]dstname: goodchars=
[A-Za-z0-9-_]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush class rm
移除 crush 设备类 <class>
- 示例命令:
ceph osd crush class rm my_class
- 参数:
class: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush create-or-move
为 <name> <weight> 在位置 <args> 创建条目或移动现有条目
- 示例命令:
ceph osd crush create-or-move --id=osd.0 --weight=0.0 --args=string
- 参数:
id: CephOsdName
weight: CephFloat range=
0.0args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush dump
转储 crush map
- 示例命令:
ceph osd crush dump
- Ceph 模块:
osd
- 所需权限:
r
osd crush get-device-class
获取指定 osd(s) <id> [<id>…] 的类
- 示例命令:
ceph osd crush get-device-class --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
r
osd crush get-tunable
获取 crush 可调参数 <tunable>
- 示例命令:
ceph osd crush get-tunable straw_calc_version
- 参数:
tunable: CephChoices strings=(straw_calc_version)
- Ceph 模块:
osd
- 所需权限:
r
osd crush link
链接现有条目 <name> 到位置 <args> 下
- 示例命令:
ceph osd crush link --name=string --args=string
- 参数:
name: (string)
args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush ls
列出 CRUSH 树中节点下的项目
- 示例命令:
ceph osd crush ls my_node
- 参数:
node: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
r
osd crush move
将现有条目 <name> 移动到位置 <args>
- 示例命令:
ceph osd crush move --name=string --args=string
- 参数:
name: goodchars=
[A-Za-z0-9-_.]args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush remove
从 crush map 中移除 <name>(全部移除,或仅在 <ancestor> 处移除)
- 示例命令:
ceph osd crush remove my_name my_ancestor
- 参数:
name: goodchars=
[A-Za-z0-9-_.]ancestor: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd crush rename-bucket
重命名桶 <srcname> 为 <dstname>
- 示例命令:
ceph osd crush rename-bucket my_srcname my_dstname
- 参数:
srcname: goodchars=
[A-Za-z0-9-_.]dstname: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush reweight
更改 crush map 中 <name> 的权重为 <weight>
- 示例命令:
ceph osd crush reweight my_name 0.0
- 参数:
name: goodchars=
[A-Za-z0-9-_.]weight: CephFloat range=
0.0
- Ceph 模块:
osd
- 所需权限:
rw
osd crush reweight-all
重新计算树的权重以确保它们正确求和
- 示例命令:
ceph osd crush reweight-all
- Ceph 模块:
osd
- 所需权限:
rw
osd crush reweight-subtree
更改 crush map 中 <name> 下所有叶子项目的权重为 <weight>
- 示例命令:
ceph osd crush reweight-subtree my_name 0.0
- 参数:
name: goodchars=
[A-Za-z0-9-_.]weight: CephFloat range=
0.0
- Ceph 模块:
osd
- 所需权限:
rw
osd crush rm
从 crush map 中移除 <name>(全部移除,或仅在 <ancestor> 处移除)
- 示例命令:
ceph osd crush rm my_name my_ancestor
- 参数:
name: goodchars=
[A-Za-z0-9-_.]ancestor: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush rm-device-class
移除 osd(s) <id> [<id>…] 的类,或使用 <all|any> 移除所有。
- 示例命令:
ceph osd crush rm-device-class --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush rule create-erasure
为使用 <profile> 创建的纠删码池创建 crush 规则 <name>(默认为 default)
- 示例命令:
ceph osd crush rule create-erasure my_name my_profile
- 参数:
name: goodchars=
[A-Za-z0-9-_.]profile: goodchars=
[A-Za-z0-9-_.=]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush rule create-replicated
为复制池创建 crush 规则 <name>,从 <root> 开始,跨越 <type> 类型的桶进行复制,使用 <class> 类型的设备(ssd 或 hdd)
- 示例命令:
ceph osd crush rule create-replicated --name=string --root=string --type=string --class=string
- 参数:
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 模块:
osd
- 所需权限:
rw
osd crush rule create-simple
创建 crush 规则 <name>,从 <root> 开始,跨越 <type> 类型的桶进行复制,使用 <firstn|indep> 选择模式(默认为 firstn;indep 最适合纠删码池)
- 示例命令:
ceph osd crush rule create-simple --name=string --root=string --type=string --mode=firstn
- 参数:
name: goodchars=
[A-Za-z0-9-_.]root: goodchars=
[A-Za-z0-9-_.]type: goodchars=
[A-Za-z0-9-_.]mode: CephChoices strings=(firstn indep)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush rule dump
转储 crush 规则 <name>(默认为 all)
- 示例命令:
ceph osd crush rule dump my_name
- 参数:
name: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
r
osd crush rule list
列出 crush 规则
- 示例命令:
ceph osd crush rule list
- Ceph 模块:
osd
- 所需权限:
r- 命令标志:
已弃用
osd crush rule ls
列出 crush 规则
- 示例命令:
ceph osd crush rule ls
- Ceph 模块:
osd
- 所需权限:
r
osd crush rule ls-by-class
列出引用相同 <class> 的所有 crush 规则
- 示例命令:
ceph osd crush rule ls-by-class my_class
- 参数:
class: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
r
osd crush rule rename
重命名 crush 规则 <srcname> 为 <dstname>
- 示例命令:
ceph osd crush rule rename my_srcname my_dstname
- 参数:
srcname: goodchars=
[A-Za-z0-9-_.]dstname: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush rule rm
移除 crush 规则 <name>
- 示例命令:
ceph osd crush rule rm my_name
- 参数:
name: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush set
从输入文件设置 crush map
- 示例命令:
ceph osd crush set 1
- 参数:
prior_version: CephInt
- Ceph 模块:
osd
- 所需权限:
rw
osd crush set
更新 <name> 的 crushmap 位置和权重,使用 <weight> 和位置 <args>
- 示例命令:
ceph osd crush set --id=osd.0 --weight=0.0 --args=string
- 参数:
id: CephOsdName
weight: CephFloat range=
0.0args: goodchars=
[A-Za-z0-9-_.=](can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush set-all-straw-buckets-to-straw2
将所有 CRUSH straw 桶转换为使用 straw2 算法
- 示例命令:
ceph osd crush set-all-straw-buckets-to-straw2
- Ceph 模块:
osd
- 所需权限:
rw
osd crush set-device-class
设置 osd(s) <id> [<id>…] 的 <class>,或使用 <all|any> 设置所有。
- 示例命令:
ceph osd crush set-device-class --class=string --ids=string
- 参数:
class: goodchars=
[A-Za-z0-9-_.]ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush set-tunable
设置 crush 可调参数 <tunable> 的值为 <value>
- 示例命令:
ceph osd crush set-tunable straw_calc_version 1
- 参数:
tunable: CephChoices strings=(straw_calc_version)
value: CephInt
- Ceph 模块:
osd
- 所需权限:
rw
osd crush show-tunables
显示当前 crush 可调参数
- 示例命令:
ceph osd crush show-tunables
- Ceph 模块:
osd
- 所需权限:
r
osd crush swap-bucket
交换现有桶内容从(孤立)桶 <source> 和 <target>
- 示例命令:
ceph osd crush swap-bucket my_source my_dest --yes_i_really_mean_it
- 参数:
source: goodchars=
[A-Za-z0-9-_.]dest: goodchars=
[A-Za-z0-9-_.]yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd crush tree
以树状视图转储 crush 桶和项目
- 示例命令:
ceph osd crush tree --show_shadow
- 参数:
show_shadow: CephBool
- Ceph 模块:
osd
- 所需权限:
r
osd crush tunables
设置 crush 可调参数值为 <profile>
- 示例命令:
ceph osd crush tunables legacy
- 参数:
profile: CephChoices strings=(legacy argonaut bobtail firefly hammer jewel optimal default)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush unlink
从 crush map 中解除链接 <name>(全部解除,或仅在 <ancestor> 处解除)
- 示例命令:
ceph osd crush unlink my_name my_ancestor
- 参数:
name: goodchars=
[A-Za-z0-9-_.]ancestor: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
rw
osd crush weight-set create
为给定池创建 weight-set
- 示例命令:
ceph osd crush weight-set create poolname flat
- 参数:
pool: CephPoolname
mode: CephChoices strings=(flat positional)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush weight-set create-compat
创建默认的向后兼容 weight-set
- 示例命令:
ceph osd crush weight-set create-compat
- Ceph 模块:
osd
- 所需权限:
rw
osd crush weight-set dump
转储 crush weight sets
- 示例命令:
ceph osd crush weight-set dump
- Ceph 模块:
osd
- 所需权限:
r
osd crush weight-set ls
列出 crush weight sets
- 示例命令:
ceph osd crush weight-set ls
- Ceph 模块:
osd
- 所需权限:
r
osd crush weight-set reweight
设置池的 weight-set 中项目(桶或 osd)的权重
- 示例命令:
ceph osd crush weight-set reweight --pool=poolname --item=string --weight=0.0
- 参数:
pool: CephPoolname
item: (string)
weight: CephFloat range=
0.0(can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush weight-set reweight-compat
set weight for an item (bucket or osd) in the backward-compatible weight-set
- 示例命令:
ceph osd crush weight-set reweight-compat --item=string --weight=0.0
- 参数:
item: (string)
weight: CephFloat range=
0.0(can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd crush weight-set rm
remove the weight-set for a given pool
- 示例命令:
ceph osd crush weight-set rm poolname
- 参数:
pool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
rw
osd crush weight-set rm-compat
remove the backward-compatible weight-set
- 示例命令:
ceph osd crush weight-set rm-compat
- Ceph 模块:
osd
- 所需权限:
rw
osd deep-scrub
initiate deep scrub on osd <who>, or use <all|any> to deep scrub all
- 示例命令:
ceph osd deep-scrub string
- 参数:
who: (string)
- Ceph 模块:
osd
- 所需权限:
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.
- 示例命令:
ceph osd destroy osd.0 --force --yes_i_really_mean_it
- 参数:
id: CephOsdName
force: CephBool
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd df
show OSD utilization
- 示例命令:
ceph osd df plain class my_filter
- 参数:
output_method: CephChoices strings=(plain tree)
filter_by: CephChoices strings=(class name)
filter: (string)
- Ceph 模块:
osd
- 所需权限:
r
osd down
set osd(s) <id> [<id>…] down, or use <any|all> to set all osds down
- 示例命令:
ceph osd down --ids=string --definitely_dead
- 参数:
ids: (can be repeated)
definitely_dead: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd dump
print summary of OSD map
- 示例命令:
ceph osd dump 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
r
osd erasure-code-profile get
get erasure code profile <name>
- 示例命令:
ceph osd erasure-code-profile get my_name
- 参数:
name: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
r
osd erasure-code-profile ls
list all erasure code profiles
- 示例命令:
ceph osd erasure-code-profile ls
- Ceph 模块:
osd
- 所需权限:
r
osd erasure-code-profile rm
remove erasure code profile <name>
- 示例命令:
ceph osd erasure-code-profile rm my_name
- 参数:
name: goodchars=
[A-Za-z0-9-_.]
- Ceph 模块:
osd
- 所需权限:
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)
- 示例命令:
ceph osd erasure-code-profile set --name=string --profile=string --force --yes_i_really_mean_it
- 参数:
name: goodchars=
[A-Za-z0-9-_.]profile: (can be repeated)
force: CephBool
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd find
find osd <id> in the CRUSH map and show its location
- 示例命令:
ceph osd find osd.0
- 参数:
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
r
osd force-create-pg
force creation of pg <pgid>
- 示例命令:
ceph osd force-create-pg 0 --yes_i_really_mean_it
- 参数:
pgid: CephPgid
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
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
- 示例命令:
ceph osd force_healthy_stretch_mode --yes_i_really_mean_it
- 参数:
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
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
- 示例命令:
ceph osd force_recovery_stretch_mode --yes_i_really_mean_it
- 参数:
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd get-require-min-compat-client
get the minimum client version we will maintain compatibility with
- 示例命令:
ceph osd get-require-min-compat-client
- Ceph 模块:
osd
- 所需权限:
r
osd getcrushmap
get CRUSH map
- 示例命令:
ceph osd getcrushmap 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
r
osd getmap
get OSD map
- 示例命令:
ceph osd getmap 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
r
osd getmaxosd
show largest OSD id
- 示例命令:
ceph osd getmaxosd
- Ceph 模块:
osd
- 所需权限:
r
osd in
set osd(s) <id> [<id>…] in, can use <any|all> to automatically set all previously out osds in
- 示例命令:
ceph osd in --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd info
print osd’s {id} information (instead of all osds from map)
- 示例命令:
ceph osd info osd.0
- 参数:
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
r
osd last-stat-seq
get the last pg stats sequence number reported for this osd
- 示例命令:
ceph osd last-stat-seq osd.0
- 参数:
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
r
osd lost
mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL
- 示例命令:
ceph osd lost osd.0 --yes_i_really_mean_it
- 参数:
id: CephOsdName
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd ls
show all OSD ids
- 示例命令:
ceph osd ls 1
- 参数:
epoch: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
r
osd ls-tree
show OSD ids under bucket <name> in the CRUSH map
- 示例命令:
ceph osd ls-tree my_name 1
- 参数:
name: (string)
epoch: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
r
osd lspools
list pools
- 示例命令:
ceph osd lspools
- Ceph 模块:
osd
- 所需权限:
r- 命令标志:
已弃用
osd map
find pg for <object> in <pool> with [namespace]
- 示例命令:
ceph osd map poolname objectname my_nspace
- 参数:
pool: CephPoolname
object: CephObjectname
nspace: (string)
- Ceph 模块:
osd
- 所需权限:
r
osd metadata
fetch metadata for osd {id} (default all)
- 示例命令:
ceph osd metadata osd.0
- 参数:
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
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).
- 示例命令:
ceph osd new uuid osd.0
- 参数:
uuid: CephUUID
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
rw
osd numa-status
show NUMA status of OSDs
- 示例命令:
ceph osd numa-status
- Ceph 模块:
osd
- 所需权限:
r
osd ok-to-stop
check whether osd(s) can be safely stopped without reducing immediate data availability
- 示例命令:
ceph osd ok-to-stop --ids=string --max=1
- 参数:
ids: (can be repeated)
max: CephInt
- Ceph 模块:
osd
- 所需权限:
r
osd out
set osd(s) <id> [<id>…] out, or use <any|all> to set all osds out
- 示例命令:
ceph osd out --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pause
pause osd
- 示例命令:
ceph osd pause
- Ceph 模块:
osd
- 所需权限:
rw
osd perf
print dump of OSD perf summary stats
- 示例命令:
ceph osd perf
- Ceph 模块:
osd
- 所需权限:
r
osd pg-temp
set pg_temp mapping <pgid>:[<id> [<id>…]] (developers only)
- 示例命令:
ceph osd pg-temp --pgid=0 --id=osd.0
- 参数:
pgid: CephPgid
id: CephOsdName (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pg-upmap
set pg_upmap mapping <pgid>:[<id> [<id>…]] (developers only)
- 示例命令:
ceph osd pg-upmap --pgid=0 --id=osd.0
- 参数:
pgid: CephPgid
id: CephOsdName (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pg-upmap-items
set pg_upmap_items mapping <pgid>:{<id> to <id>, […]} (developers only)
- 示例命令:
ceph osd pg-upmap-items --pgid=0 --id=osd.0
- 参数:
pgid: CephPgid
id: CephOsdName (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pg-upmap-primary
set pg primary osd <pgid>:<id> (id (osd) must be part of pgid)
- 示例命令:
ceph osd pg-upmap-primary 0 osd.0
- 参数:
pgid: CephPgid
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
rw
osd pool application disable
disables use of an application <app> on pool <poolname>
- 示例命令:
ceph osd pool application disable poolname my_app --yes_i_really_mean_it
- 参数:
pool: CephPoolname
app: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool application enable
enable use of an application <app> [cephfs,rbd,rgw] on pool <poolname>
- 示例命令:
ceph osd pool application enable poolname my_app --yes_i_really_mean_it
- 参数:
pool: CephPoolname
app: goodchars=
[A-Za-z0-9-_.]yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool application get
get value of key <key> of application <app> on pool <poolname>
- 示例命令:
ceph osd pool application get poolname my_app my_key
- 参数:
pool: CephPoolname
app: (string)
key: (string)
- Ceph 模块:
osd
- 所需权限:
r
osd pool application rm
removes application <app> metadata key <key> on pool <poolname>
- 示例命令:
ceph osd pool application rm poolname my_app my_key
- 参数:
pool: CephPoolname
app: (string)
key: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool application set
sets application <app> metadata key <key> to <value> on pool <poolname>
- 示例命令:
ceph osd pool application set --pool=poolname --app=string --key=string --value=string
- 参数:
pool: CephPoolname
app: (string)
key: goodchars=
[A-Za-z0-9-_.]value: goodchars=
[A-Za-z0-9-_.=]
- Ceph 模块:
osd
- 所需权限:
rw
osd pool availability-status
obtain availability stats from all pools
- 示例命令:
ceph osd pool availability-status
- Ceph 模块:
osd
- 所需权限:
r
osd pool cancel-force-backfill
restore normal recovery priority of specified pool <who>
- 示例命令:
ceph osd pool cancel-force-backfill --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool cancel-force-recovery
restore normal recovery priority of specified pool <who>
- 示例命令:
ceph osd pool cancel-force-recovery --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool clear-availability-status
clear a pool’s existing availability stats
- 示例命令:
ceph osd pool clear-availability-status poolname
- 参数:
pool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
r
osd pool create
create pool
- 示例命令:
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
- 参数:
pool: CephPoolname
pg_num: CephInt range=
0pgp_num: CephInt range=
0pool_type: CephChoices strings=(replicated erasure)
erasure_code_profile: goodchars=
[A-Za-z0-9-_.]rule: (string)
expected_num_objects: CephInt range=
0size: CephInt range=
0pg_num_min: CephInt range=
0pg_num_max: CephInt range=
0autoscale_mode: CephChoices strings=(on off warn)
bulk: CephBool
target_size_bytes: CephInt range=
0target_size_ratio: CephFloat range=
0.0yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool deep-scrub
initiate deep-scrub on pool <who>
- 示例命令:
ceph osd pool deep-scrub --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool delete
delete pool
- 示例命令:
ceph osd pool delete --pool=poolname --pool2=poolname --yes_i_really_really_mean_it --yes_i_really_really_mean_it_not_faking
- 参数:
pool: CephPoolname
pool2: CephPoolname
yes_i_really_really_mean_it: CephBool
yes_i_really_really_mean_it_not_faking: CephBool
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd pool force-backfill
force backfill of specified pool <who> first
- 示例命令:
ceph osd pool force-backfill --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool force-recovery
force recovery of specified pool <who> first
- 示例命令:
ceph osd pool force-recovery --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
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.
- 示例命令:
ceph osd pool force-remove-snap --pool=poolname --lower_snapid_bound=0 --upper_snapid_bound=0 --dry_run
- 参数:
pool: CephPoolname
lower_snapid_bound: CephInt range=
0upper_snapid_bound: CephInt range=
0dry_run: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool get
get pool parameter <var>
- 示例命令:
ceph osd pool get poolname size
- 参数:
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 模块:
osd
- 所需权限:
r
osd pool get-quota
obtain object or byte limits for pool
- 示例命令:
ceph osd pool get-quota poolname
- 参数:
pool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
r
osd pool ls
list pools
- 示例命令:
ceph osd pool ls detail
- 参数:
detail: CephChoices strings=(detail)
- Ceph 模块:
osd
- 所需权限:
r
osd pool mksnap
make snapshot <snap> in <pool>
- 示例命令:
ceph osd pool mksnap poolname my_snap
- 参数:
pool: CephPoolname
snap: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool rename
rename <srcpool> to <destpool>
- 示例命令:
ceph osd pool rename poolname poolname --yes_i_really_mean_it
- 参数:
srcpool: CephPoolname
destpool: CephPoolname
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool repair
initiate repair on pool <who>
- 示例命令:
ceph osd pool repair --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool rm
remove pool
- 示例命令:
ceph osd pool rm --pool=poolname --pool2=poolname --yes_i_really_really_mean_it --yes_i_really_really_mean_it_not_faking
- 参数:
pool: CephPoolname
pool2: CephPoolname
yes_i_really_really_mean_it: CephBool
yes_i_really_really_mean_it_not_faking: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool rmsnap
remove snapshot <snap> from <pool>
- 示例命令:
ceph osd pool rmsnap poolname my_snap
- 参数:
pool: CephPoolname
snap: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool scrub
initiate scrub on pool <who>
- 示例命令:
ceph osd pool scrub --who=poolname
- 参数:
who: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool set
set pool parameter <var> to <val>
- 示例命令:
ceph osd pool set --pool=poolname --var=size --val=string --yes_i_really_mean_it
- 参数:
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 模块:
osd
- 所需权限:
rw
osd pool set-quota
set object or byte limit on pool
- 示例命令:
ceph osd pool set-quota poolname max_objects my_val
- 参数:
pool: CephPoolname
field: CephChoices strings=(max_objects max_bytes)
val: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd pool stats
obtain stats from all pools, or from specified pool
- 示例命令:
ceph osd pool stats poolname
- 参数:
pool_name: CephPoolname
- Ceph 模块:
osd
- 所需权限:
r
osd pool stretch set
make the pool stretched across the specified number of CRUSH buckets
- 示例命令:
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
- 参数:
pool: CephPoolname
peering_crush_bucket_count: CephInt range=
0peering_crush_bucket_target: CephInt range=
0peering_crush_bucket_barrier: (string)
crush_rule: (string)
size: CephInt range=
0min_size: CephInt range=
0yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd pool stretch show
show all the stretch related information for the pool
- 示例命令:
ceph osd pool stretch show poolname
- 参数:
pool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
r
osd pool stretch unset
unset the stretch mode for the pool
- 示例命令:
ceph osd pool stretch unset --pool=poolname --crush_rule=string --size=0 --min_size=0
- 参数:
pool: CephPoolname
crush_rule: (string)
size: CephInt range=
0min_size: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
rw
osd primary-affinity
adjust osd primary-affinity from 0.0 <= <weight> <= 1.0
- 示例命令:
ceph osd primary-affinity osd.0 0.0
- 参数:
id: CephOsdName
weight: CephFloat range=
0.0..1.0
- Ceph 模块:
osd
- 所需权限:
rw
osd primary-temp
set primary_temp mapping pgid:<id> (developers only)
- 示例命令:
ceph osd primary-temp 0 osd.0
- 参数:
pgid: CephPgid
id: CephOsdName
- Ceph 模块:
osd
- 所需权限:
rw
osd purge
purge all osd data from the monitors including the OSD id and CRUSH position
- 示例命令:
ceph osd purge osd.0 --force --yes_i_really_mean_it
- 参数:
id: CephOsdName
force: CephBool
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd purge-new
purge all traces of an OSD that was partially created but never started
- 示例命令:
ceph osd purge-new osd.0 --yes_i_really_mean_it
- 参数:
id: CephOsdName
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd repair
initiate repair on osd <who>, or use <all|any> to repair all
- 示例命令:
ceph osd repair string
- 参数:
who: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd require-osd-release
set the minimum allowed OSD release to participate in the cluster
- 示例命令:
ceph osd require-osd-release octopus --yes_i_really_mean_it
- 参数:
release: CephChoices strings=(octopus pacific quincy reef squid tentacle)
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd reweight
reweight osd to 0.0 < <weight> < 1.0
- 示例命令:
ceph osd reweight osd.0 0.0
- 参数:
id: CephOsdName
weight: CephFloat range=
0.0..1.0
- Ceph 模块:
osd
- 所需权限:
rw
osd reweight-by-pg
reweight OSDs by PG distribution [overload-percentage-for- consideration, default 120]
- 示例命令:
ceph osd reweight-by-pg --oload=1 --max_change=0.0 --max_osds=1 --pools=poolname
- 参数:
oload: CephInt
max_change: CephFloat
max_osds: CephInt
pools: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd reweight-by-utilization
reweight OSDs by utilization [overload-percentage-for-consideration, default 120]
- 示例命令:
ceph osd reweight-by-utilization --oload=1 --max_change=0.0 --max_osds=1 --no_increasing
- 参数:
oload: CephInt
max_change: CephFloat
max_osds: CephInt
no_increasing: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd reweightn
reweight osds with {<id>: <weight>,…}
- 示例命令:
ceph osd reweightn my_weights
- 参数:
weights: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd rm
remove osd(s) <id> [<id>…], or use <any|all> to remove all osds
- 示例命令:
ceph osd rm --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
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
- 示例命令:
ceph osd rm-nodown --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
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
- 示例命令:
ceph osd rm-noin --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
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
- 示例命令:
ceph osd rm-noout --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
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
- 示例命令:
ceph osd rm-noup --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd rm-pg-upmap
clear pg_upmap mapping for <pgid> (developers only)
- 示例命令:
ceph osd rm-pg-upmap 0
- 参数:
pgid: CephPgid
- Ceph 模块:
osd
- 所需权限:
rw
osd rm-pg-upmap-items
clear pg_upmap_items mapping for <pgid> (developers only)
- 示例命令:
ceph osd rm-pg-upmap-items 0
- 参数:
pgid: CephPgid
- Ceph 模块:
osd
- 所需权限:
rw
osd rm-pg-upmap-primary
clear pg primary setting for <pgid>
- 示例命令:
ceph osd rm-pg-upmap-primary 0
- 参数:
pgid: CephPgid
- Ceph 模块:
osd
- 所需权限:
rw
osd rm-pg-upmap-primary-all
clear all pg primary entries (developers only)
- 示例命令:
ceph osd rm-pg-upmap-primary-all
- Ceph 模块:
osd
- 所需权限:
rw
osd rm-primary-temp
clear primary_temp mapping pgid (developers only)
- 示例命令:
ceph osd rm-primary-temp 0
- 参数:
pgid: CephPgid
- Ceph 模块:
osd
- 所需权限:
rw
osd safe-to-destroy
check whether osd(s) can be safely destroyed without reducing data durability
- 示例命令:
ceph osd safe-to-destroy --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
r
osd scrub
initiate scrub on osd <who>, or use <all|any> to scrub all
- 示例命令:
ceph osd scrub string
- 参数:
who: (string)
- Ceph 模块:
osd
- 所需权限:
rw
osd set
set <key>
- 示例命令:
ceph osd set full --yes_i_really_mean_it
- 参数:
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 模块:
osd
- 所需权限:
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
- 示例命令:
ceph osd set-allow-crimson --yes_i_really_mean_it
- 参数:
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd set-backfillfull-ratio
set usage ratio at which OSDs are marked too full to backfill
- 示例命令:
ceph osd set-backfillfull-ratio 0.0
- 参数:
ratio: CephFloat range=
0.0..1.0
- Ceph 模块:
osd
- 所需权限:
rw
osd set-full-ratio
set usage ratio at which OSDs are marked full
- 示例命令:
ceph osd set-full-ratio 0.0
- 参数:
ratio: CephFloat range=
0.0..1.0
- Ceph 模块:
osd
- 所需权限:
rw
osd set-group
set <flags> for batch osds or crush nodes, <flags> must be a comma- separated subset of {noup,nodown,noin,noout}
- 示例命令:
ceph osd set-group --flags=string --who=string
- 参数:
flags: (string)
who: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd set-nearfull-ratio
set usage ratio at which OSDs are marked near-full
- 示例命令:
ceph osd set-nearfull-ratio 0.0
- 参数:
ratio: CephFloat range=
0.0..1.0
- Ceph 模块:
osd
- 所需权限:
rw
osd set-require-min-compat-client
set the minimum client version we will maintain compatibility with
- 示例命令:
ceph osd set-require-min-compat-client my_version --yes_i_really_mean_it
- 参数:
version: (string)
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd setcrushmap
从输入文件设置 crush map
- 示例命令:
ceph osd setcrushmap 1
- 参数:
prior_version: CephInt
- Ceph 模块:
osd
- 所需权限:
rw
osd setmaxosd
set new maximum osd value
- 示例命令:
ceph osd setmaxosd 1
- 参数:
newmax: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
rw
osd stat
print summary of OSD map
- 示例命令:
ceph osd stat
- Ceph 模块:
osd
- 所需权限:
r
osd stop
stop the corresponding osd daemons and mark them as down
- 示例命令:
ceph osd stop --ids=string
- 参数:
ids: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd test-reweight-by-pg
dry run of reweight OSDs by PG distribution [overload-percentage-for- consideration, default 120]
- 示例命令:
ceph osd test-reweight-by-pg --oload=1 --max_change=0.0 --max_osds=1 --pools=poolname
- 参数:
oload: CephInt
max_change: CephFloat
max_osds: CephInt
pools: CephPoolname (can be repeated)
- Ceph 模块:
osd
- 所需权限:
r
osd test-reweight-by-utilization
dry run of reweight OSDs by utilization [overload-percentage-for- consideration, default 120]
- 示例命令:
ceph osd test-reweight-by-utilization --oload=1 --max_change=0.0 --max_osds=1 --no_increasing
- 参数:
oload: CephInt
max_change: CephFloat
max_osds: CephInt
no_increasing: CephBool
- Ceph 模块:
osd
- 所需权限:
r
osd tier add
add the tier <tierpool> (the second one) to base pool <pool> (the first one)
- 示例命令:
ceph osd tier add poolname poolname --force_nonempty
- 参数:
pool: CephPoolname
tierpool: CephPoolname
force_nonempty: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd tier add-cache
add a cache <tierpool> (the second one) of size <size> to existing pool <pool> (the first one)
- 示例命令:
ceph osd tier add-cache poolname poolname 1
- 参数:
pool: CephPoolname
tierpool: CephPoolname
size: CephInt range=
0
- Ceph 模块:
osd
- 所需权限:
rw
osd tier cache-mode
specify the caching mode for cache tier <pool>
- 示例命令:
ceph osd tier cache-mode poolname writeback --yes_i_really_mean_it
- 参数:
pool: CephPoolname
mode: CephChoices strings=(writeback proxy readproxy readonly none)
yes_i_really_mean_it: CephBool
- Ceph 模块:
osd
- 所需权限:
rw
osd tier remove
remove the tier <tierpool> (the second one) from base pool <pool> (the first one)
- 示例命令:
ceph osd tier remove poolname poolname
- 参数:
pool: CephPoolname
tierpool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd tier remove-overlay
remove the overlay pool for base pool <pool>
- 示例命令:
ceph osd tier remove-overlay poolname
- 参数:
pool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
rw- 命令标志:
已弃用
osd tier rm
remove the tier <tierpool> (the second one) from base pool <pool> (the first one)
- 示例命令:
ceph osd tier rm poolname poolname
- 参数:
pool: CephPoolname
tierpool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
rw
osd tier rm-overlay
remove the overlay pool for base pool <pool>
- 示例命令:
ceph osd tier rm-overlay poolname
- 参数:
pool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
rw
osd tier set-overlay
set the overlay pool for base pool <pool> to be <overlaypool>
- 示例命令:
ceph osd tier set-overlay poolname poolname
- 参数:
pool: CephPoolname
overlaypool: CephPoolname
- Ceph 模块:
osd
- 所需权限:
rw
osd tree
print OSD tree
- 示例命令:
ceph osd tree --epoch=0 --states=up
- 参数:
epoch: CephInt range=
0states: CephChoices strings=(up down in out destroyed) (can be repeated)
- Ceph 模块:
osd
- 所需权限:
r
osd tree-from
print OSD tree in bucket
- 示例命令:
ceph osd tree-from --bucket=string --epoch=0 --states=up
- 参数:
bucket: (string)
epoch: CephInt range=
0states: CephChoices strings=(up down in out destroyed) (can be repeated)
- Ceph 模块:
osd
- 所需权限:
r
osd unpause
unpause osd
- 示例命令:
ceph osd unpause
- Ceph 模块:
osd
- 所需权限:
rw
osd unset
unset <key>
- 示例命令:
ceph osd unset full
- 参数:
key: CephChoices strings=(full pause noup nodown noout noin nobackfill norebalance norecover noscrub nodeep-scrub notieragent nosnaptrim noautoscale)
- Ceph 模块:
osd
- 所需权限:
rw
osd unset-group
unset <flags> for batch osds or crush nodes, <flags> must be a comma- separated subset of {noup,nodown,noin,noout}
- 示例命令:
ceph osd unset-group --flags=string --who=string
- 参数:
flags: (string)
who: (can be repeated)
- Ceph 模块:
osd
- 所需权限:
rw
osd utilization
get basic pg distribution stats
- 示例命令:
ceph osd utilization
- Ceph 模块:
osd
- 所需权限:
r
osd versions
check running versions of OSDs
- 示例命令:
ceph osd versions
- Ceph 模块:
osd
- 所需权限:
r
pg
pg cancel-force-backfill
restore normal backfill priority of <pgid>
- 示例命令:
ceph pg cancel-force-backfill --pgid=0
- 参数:
pgid: CephPgid (can be repeated)
- Ceph 模块:
pg
- 所需权限:
rw
pg cancel-force-recovery
restore normal recovery priority of <pgid>
- 示例命令:
ceph pg cancel-force-recovery --pgid=0
- 参数:
pgid: CephPgid (can be repeated)
- Ceph 模块:
pg
- 所需权限:
rw
pg debug
show debug info about pgs
- 示例命令:
ceph pg debug unfound_objects_exist
- 参数:
debugop: CephChoices strings=(unfound_objects_exist degraded_pgs_exist)
- Ceph 模块:
pg
- 所需权限:
r
pg deep-scrub
start deep-scrub on <pgid>
- 示例命令:
ceph pg deep-scrub 0
- 参数:
pgid: CephPgid
- Ceph 模块:
pg
- 所需权限:
rw
pg dump
show human-readable versions of pg map (only ‘all’ valid with plain)
- 示例命令:
ceph pg dump --dumpcontents=all
- 参数:
dumpcontents: CephChoices strings=(all summary sum delta pools osds pgs pgs_brief) (can be repeated)
- Ceph 模块:
pg
- 所需权限:
r
pg dump_json
show human-readable version of pg map in json only
- 示例命令:
ceph pg dump_json --dumpcontents=all
- 参数:
dumpcontents: CephChoices strings=(all summary sum pools osds pgs) (can be repeated)
- Ceph 模块:
pg
- 所需权限:
r
pg dump_pools_json
show pg pools info in json only
- 示例命令:
ceph pg dump_pools_json
- Ceph 模块:
pg
- 所需权限:
r
pg dump_stuck
show information about stuck pgs
- 示例命令:
ceph pg dump_stuck --stuckops=inactive --threshold=1
- 参数:
stuckops: CephChoices strings=(inactive unclean stale undersized degraded) (can be repeated)
threshold: CephInt
- Ceph 模块:
pg
- 所需权限:
r
pg force-backfill
force backfill of <pgid> first
- 示例命令:
ceph pg force-backfill --pgid=0
- 参数:
pgid: CephPgid (can be repeated)
- Ceph 模块:
pg
- 所需权限:
rw
pg force-recovery
force recovery of <pgid> first
- 示例命令:
ceph pg force-recovery --pgid=0
- 参数:
pgid: CephPgid (can be repeated)
- Ceph 模块:
pg
- 所需权限:
rw
pg getmap
get binary pg map to -o/stdout
- 示例命令:
ceph pg getmap
- Ceph 模块:
pg
- 所需权限:
r
pg ls
list pg with specific pool, osd, state
- 示例命令:
ceph pg ls --pool=1 --states=string
- 参数:
pool: CephInt
states: (can be repeated)
- Ceph 模块:
pg
- 所需权限:
r
pg ls-by-osd
list pg on osd [osd]
- 示例命令:
ceph pg ls-by-osd --osd=osd.0 --pool=1 --states=string
- 参数:
osd: CephOsdName
pool: CephInt
states: (can be repeated)
- Ceph 模块:
pg
- 所需权限:
r
pg ls-by-pool
list pg with pool = [poolname]
- 示例命令:
ceph pg ls-by-pool --poolstr=string --states=string
- 参数:
poolstr: (string)
states: (can be repeated)
- Ceph 模块:
pg
- 所需权限:
r
pg ls-by-primary
list pg with primary = [osd]
- 示例命令:
ceph pg ls-by-primary --osd=osd.0 --pool=1 --states=string
- 参数:
osd: CephOsdName
pool: CephInt
states: (can be repeated)
- Ceph 模块:
pg
- 所需权限:
r
pg map
show mapping of pg to osds
- 示例命令:
ceph pg map 0
- 参数:
pgid: CephPgid
- Ceph 模块:
pg
- 所需权限:
r
pg repair
start repair on <pgid>
- 示例命令:
ceph pg repair 0
- 参数:
pgid: CephPgid
- Ceph 模块:
pg
- 所需权限:
rw
pg repeer
force a PG to repeer
- 示例命令:
ceph pg repeer 0
- 参数:
pgid: CephPgid
- Ceph 模块:
osd
- 所需权限:
rw
pg scrub
start scrub on <pgid>
- 示例命令:
ceph pg scrub 0
- 参数:
pgid: CephPgid
- Ceph 模块:
pg
- 所需权限:
rw
pg stat
show placement group status.
- 示例命令:
ceph pg stat
- Ceph 模块:
pg
- 所需权限:
r
quorum
quorum enter
force monitor back into quorum
- 示例命令:
ceph quorum enter
- Ceph 模块:
mon
- 所需权限:
rw
quorum exit
force monitor out of the quorum
- 示例命令:
ceph quorum exit
- Ceph 模块:
mon
- 所需权限:
rw
quorum_status
report status of monitor quorum
- 示例命令:
ceph quorum_status- Ceph 模块:
mon
- 所需权限:
r
report
report full status of cluster, optional title tag strings
- 示例命令:
ceph report --tags=string
- 参数:
tags: (can be repeated)
- Ceph 模块:
mon
- 所需权限:
r
service
service dump
dump service map
- 示例命令:
ceph service dump
- Ceph 模块:
service(服务)
- 所需权限:
r
service status
dump service state
- 示例命令:
ceph service status
- Ceph 模块:
service(服务)
- 所需权限:
r
sessions
list existing sessions
- 示例命令:
ceph sessions- Ceph 模块:
mon
- 所需权限:
r
smart
Query health metrics for underlying device
- 示例命令:
ceph smart my_devid
- 参数:
devid: (string)
- Ceph 模块:
mon
- 所需权限:
rw
status
show cluster status
- 示例命令:
ceph status- Ceph 模块:
mon
- 所需权限:
r
sync_force
force sync of and clear monitor store
- 示例命令:
ceph sync_force --yes_i_really_mean_it
- 参数:
yes_i_really_mean_it: CephBool
- Ceph 模块:
mon
- 所需权限:
rw
tell
send a command to a specific daemon
- 示例命令:
ceph tell --target=name --args=string
- 参数:
target: CephName
args: (can be repeated)
- Ceph 模块:
mon
- 所需权限:
rw
time-sync-status
show time sync status
- 示例命令:
ceph time-sync-status- Ceph 模块:
mon
- 所需权限:
r
version
show mon daemon version
- 示例命令:
ceph version- Ceph 模块:
mon
- 所需权限:
r
versions
check running versions of ceph daemons
- 示例命令:
ceph versions- Ceph 模块:
mon
- 所需权限:
r