The Comprehensive Ceph Guide
فارسیGet started
On this page
Appendix B

Command Cheat Sheet

35 min read

Every command that appears in a code block of a chapter is collected here, grouped by tool and subcommand, so you can find it quickly during day-to-day work. The right-hand column shows the chapter of first use; go back to that chapter for the full explanation. Before running state-changing commands on a real cluster, make sure you are connected to the right cluster (ceph fsid) and record the current state with ceph -s. Commands that need a release newer than Reef carry a release label (for example Squid+); the others work unchanged on Reef (18.2) and later. The same labels appear on the code blocks in the chapters.

ceph · main cluster command line#

ceph osd
ceph osd treeCh. 1
ceph osd pool create lab-poolCh. 1
ceph osd pool application enable lab-pool rados-testCh. 1
ceph osd map lab-pool helloCh. 1
ceph osd pool ls detailCh. 1
ceph osd df treeCh. 1
ceph osd pool autoscale-statusCh. 1
ceph osd pool create rbdCh. 1
ceph osd pool rm lab-pool lab-pool --yes-i-really-really-mean-itCh. 1
ceph osd map rbd rbd_data.5e2a.0000000000000001Ch. 1
ceph osd pool create vms && rbd pool init vmsCh. 2
ceph osd blocklist lsCh. 2
ceph osd pool create nvmeof-pool && rbd pool init nvmeof-pool Squid+Ch. 2
ceph osd pool create $pCh. 3
ceph osd pool ls detail | grep -E "images|volumes|backups|vms"Ch. 3
ceph osd pool set volumes target_size_ratio 0.6Ch. 3
ceph osd pool set vms target_size_ratio 0.2Ch. 3
ceph osd pool set images target_size_ratio 0.1Ch. 3
ceph osd pool set backups target_size_ratio 0.1Ch. 3
ceph osd get-require-min-compat-clientCh. 3
ceph osd pool create cephfs.fs02.metaCh. 6
ceph osd pool create cephfs.fs02.dataCh. 6
ceph osd pool set cephfs.fs02.meta crush_rule ssd-ruleCh. 6
ceph osd pool create cephfs.fs01.ec erasureCh. 6
ceph osd pool set cephfs.fs01.ec allow_ec_overwrites trueCh. 6
ceph osd set norebalance && ceph osd set nobackfillCh. 7
ceph osd unset nobackfill && ceph osd unset norebalanceCh. 7
ceph osd safe-to-destroy osd.9Ch. 7
ceph osd ok-to-stop osd.9Ch. 7
ceph osd tree downCh. 7
ceph osd safe-to-destroy osd.7Ch. 7
ceph osd tree | grep osd.7Ch. 7
ceph osd dump | grep -E 'full_ratio|nearfull'Ch. 7
ceph osd df | sort -nk17 | tailCh. 7
ceph osd pool set rbd target_size_ratio 0.4Ch. 7
ceph osd pool set cephfs.fs01.meta pg_autoscale_mode onCh. 7
ceph osd pool set images bulk trueCh. 7
ceph osd ok-to-stop $(ceph osd ls-tree ceph-node2 | tr '\n' ' ')Ch. 7
ceph osd set nooutCh. 7
ceph osd unset nooutCh. 7
ceph osd set-group noout osd.4Ch. 7
ceph osd set-group noout ceph-node3Ch. 7
ceph osd unset-group noout ceph-node3Ch. 7
ceph osd map rbd rbd_data.12ab.0000000000000004Ch. 8
ceph osd crush tree --show-shadowCh. 8
ceph osd crush add-bucket rack1 rackCh. 8
ceph osd crush move rack1 root=defaultCh. 8
ceph osd crush move ceph-node1 rack=rack1Ch. 8
ceph osd crush set-device-class nvme osd.20Ch. 8
ceph osd crush class lsCh. 8
ceph osd crush reweight osd.20 3.49309Ch. 8
ceph osd reweight 20 0.9Ch. 8
ceph osd crush rule create-replicated rep-ssd-host default host ssdCh. 8
ceph osd crush rule create-replicated rep-rack default rackCh. 8
ceph osd erasure-code-profile set ec42-rack k=4 m=2 crush-failure-domain=rack crush-device-class=hddCh. 8
ceph osd crush rule create-erasure ec42-rack ec42-rackCh. 8
ceph osd crush rule lsCh. 8
ceph osd crush rule dump rep-ssd-hostCh. 8
ceph osd getcrushmap -o crush.binCh. 8
ceph osd setcrushmap -i crush.newCh. 8
ceph osd crush show-tunablesCh. 8
ceph osd crush tunables optimalCh. 8
ceph osd crush set-all-straw-buckets-to-straw2Ch. 8
ceph osd crush rm-device-class osd.$idCh. 8
ceph osd crush set-device-class fastnvme osd.$idCh. 8
ceph osd crush rule create-replicated fast-host default host fastnvmeCh. 8
ceph osd pool create tenant-a-db 64 64 replicated fast-hostCh. 8
ceph osd pool application enable tenant-a-db rbdCh. 8
ceph osd pool create analytics-rbd --autoscale-mode=onCh. 9
ceph osd pool set analytics-rbd crush_rule rep-ssd-hostCh. 9
ceph osd pool application enable analytics-rbd rbdCh. 9
ceph osd pool create benchpool 128 128Ch. 10
ceph osd pool application enable benchpool rados-bench --yes-i-really-mean-itCh. 10
ceph osd perfCh. 10
ceph osd metadata 3 | jq '{bluefs_dedicated_db, bluefs_db_size, devices}'Ch. 12
ceph osd pool set rgw-data compression_algorithm zstdCh. 12
ceph osd pool set rgw-data compression_mode aggressiveCh. 12
ceph osd pool set rgw-data compression_required_ratio 0.875Ch. 12
ceph osd erasure-code-profile lsCh. 13
ceph osd erasure-code-profile get defaultCh. 13
ceph osd erasure-code-profile set ec42 plugin=isa technique=reed_sol_van k=4 m=2 \Ch. 13
ceph osd pool create ecpool erasure ec42Ch. 13
ceph osd pool set ecpool allow_ec_overwrites trueCh. 13
ceph osd pool application enable ecpool rgwCh. 13
ceph osd erasure-code-profile set lrc42 plugin=lrc k=4 m=2 l=3 crush-failure-domain=hostCh. 13
ceph osd erasure-code-profile set clay42 plugin=clay k=4 m=2 d=5 crush-failure-domain=hostCh. 13
ceph osd pool set ecpool allow_ec_optimizations true Tentacle+Ch. 13
ceph osd pool get ecpool allow_ec_optimizations Tentacle+Ch. 13
ceph osd erasure-code-profile set ec42fast plugin=isa technique=reed_sol_van k=4 m=2 \ Tentacle+Ch. 13
ceph osd pool create rbd-ec erasure ec42fast Tentacle+Ch. 13
ceph osd pool set rbd-ec allow_ec_overwrites true Tentacle+Ch. 13
ceph osd pool set rbd-ec allow_ec_optimizations true Tentacle+Ch. 13
ceph osd crush rule dump ecpoolCh. 13
ceph osd getcrushmap -o cm && crushtool -i cm --test --rule <id> --num-rep 6 --show-bad-mappingsCh. 13
ceph osd pool set ecpool fast_read 1Ch. 13
ceph osd pool create devpool 32Ch. 14
ceph osd pool application enable devpool myappCh. 14
ceph osd tier add cold-storage hot-storageCh. 16
ceph osd tier cache-mode hot-storage writebackCh. 16
ceph osd tier set-overlay cold-storage hot-storageCh. 16
ceph osd pool set hot-storage hit_set_type bloomCh. 16
ceph osd pool set hot-storage hit_set_count 12Ch. 16
ceph osd pool set hot-storage hit_set_period 14400Ch. 16
ceph osd pool set hot-storage target_max_bytes 1099511627776Ch. 16
ceph osd pool ls detail | grep -E "tier|cache_mode|read_tier|write_tier"Ch. 16
ceph osd tier cache-mode hot-storage proxyCh. 16
ceph osd tier remove-overlay cold-storageCh. 16
ceph osd tier remove cold-storage hot-storageCh. 16
ceph osd crush rule create-replicated fast-rule default host nvmeCh. 16
ceph osd erasure-code-profile set cold-ec k=4 m=2 crush-failure-domain=host crush-device-class=hddCh. 16
ceph osd pool create vm-fast 128 128 replicated fast-ruleCh. 16
ceph osd pool create archive 256 256 erasure cold-ecCh. 16
ceph osd pool set archive allow_ec_overwrites trueCh. 16
ceph osd find 12Ch. 17
ceph osd dump | grep -E "^osd.12 "Ch. 17
ceph osd dump | grep -E 'stretch_mode|degraded_stretch|recovering_stretch'Ch. 18
ceph osd pool ls detail | grep -E 'peering_crush|min_size'Ch. 18
ceph osd crush add-bucket site1 datacenterCh. 18
ceph osd crush add-bucket site2 datacenterCh. 18
ceph osd crush move site1 root=defaultCh. 18
ceph osd crush move site2 root=defaultCh. 18
ceph osd crush move stor-a1 datacenter=site1Ch. 18
ceph osd tree | grep -E "down|destroyed"Ch. 19
ceph osd pool set vm-fast target_size_ratio 0.4Ch. 19
ceph osd pool set archive bulk trueCh. 19
ceph osd pool set archive pg_num_min 256Ch. 19
ceph osd pool get thresholdCh. 19
ceph osd pool set noautoscaleCh. 19
ceph osd pool unset noautoscaleCh. 19
ceph osd df tree | sort -nk17 | tailCh. 19
ceph osd set-group noout stor-b3Ch. 19
ceph osd unset-group noout stor-b3Ch. 19
ceph osd set norebalance && ceph osd unset norebalanceCh. 19
ceph osd metadata 4 | jq '{bluestore_bdev_type, bluestore_bdev_rotational, bluestore_bdev_dev_node}'Ch. 23
ceph osd erasure-code-profile set ec42 plugin=isa technique=reed_sol_van k=4 m=2 crush-failure-domain=host Tentacle+Ch. 27
ceph osd pool create ecdata erasure ec42 Tentacle+Ch. 27
ceph osd pool set ecdata allow_ec_overwrites true Tentacle+Ch. 27
ceph osd pool set ecdata allow_ec_optimizations true Tentacle+Ch. 27
ceph osd pool get ecdata all | grep -E 'ec_optim|stripe' Tentacle+Ch. 27
ceph osd pool ls detail | grep -E 'erasure|stripe_width'Ch. 27
ceph osd getcrushmap -o cm.bin && crushtool -d cm.bin -o cm.txtCh. 28
ceph osd map rbd rbd_data.10ab2c3d4e5f.0000000000000000Ch. 28
ceph osd pg-upmap-items 3.15 4 11Ch. 28
ceph osd rm-pg-upmap-items 3.15Ch. 28
ceph osd crush weight-set lsCh. 28
ceph osd dump | grep -E '^pg_upmap(_items|_primary)?' | headCh. 28
ceph osd crush rule create-replicated fast default host ssdCh. 28
ceph osd crush class ls-osd ssdCh. 28
ceph osd dump | grep -E 'allow_crimson|crimson' mainCh. 30
ceph osd numa-statusCh. 33
ceph osd map rbd rbd_header.5f3a2b8c1d4eCh. 34
ceph orch
ceph orch host add ceph-node2 192.168.56.12 --labels _adminCh. 1
ceph orch host add ceph-node3 192.168.56.13Ch. 1
ceph orch host lsCh. 1
ceph orch apply mon --placement="ceph-node1,ceph-node2,ceph-node3"Ch. 1
ceph orch apply mgr --placement="ceph-node1,ceph-node2"Ch. 1
ceph orch lsCh. 1
ceph orch psCh. 1
ceph orch device lsCh. 1
ceph orch apply osd --all-available-devicesCh. 1
ceph orch daemon add osd ceph-node1:/dev/sdbCh. 1
ceph orch host add ceph-node4 192.168.56.14Ch. 1
ceph orch host label add ceph-node4 rgwCh. 1
ceph orch device ls ceph-node4Ch. 1
ceph orch host label add ceph-node4 monCh. 1
ceph orch apply -i mon.yamlCh. 1
ceph orch apply rgw demo --placement="label:rgw" --port=8080Ch. 1
ceph orch apply rbd-mirror --placement="2 ceph-node2 ceph-node3"Ch. 2
ceph orch ps --daemon-type rbd-mirrorCh. 2
ceph orch apply nvmeof nvmeof-pool group1 --placement="ceph-node2,ceph-node3" Squid+Ch. 2
ceph orch host label add ceph-node3 rgwCh. 4
ceph orch apply rgw objstore --placement="label:rgw count-per-host:1" --port=8080Ch. 4
ceph orch ls rgwCh. 4
ceph orch ps --daemon-type rgwCh. 4
ceph orch apply -i ingress.yamlCh. 4
ceph orch ls ingressCh. 4
ceph orch restart rgw.objstoreCh. 4
ceph orch apply rgw gold-eu1 --realm=gold --zone=eu-1 \Ch. 5
ceph orch apply rgw gold-eu2 --realm=gold --zone=eu-2 \Ch. 5
ceph orch restart rgw.gold-eu2Ch. 5
ceph orch restart rgw.gold-eu1Ch. 5
ceph orch ps --daemon-type mdsCh. 6
ceph orch apply mds fs02 --placement="2 ceph-node3 ceph-node4"Ch. 6
ceph orch apply cephfs-mirror --placement="1 ceph-node2"Ch. 6
ceph orch ps --daemon-type osd --hostname ceph-node2Ch. 7
ceph orch ls --export > cluster-specs.yamlCh. 7
ceph orch daemon restart osd.3Ch. 7
ceph orch daemon stop mds.fs01.ceph-node3.xyzabcCh. 7
ceph orch daemon start mds.fs01.ceph-node3.xyzabcCh. 7
ceph orch daemon redeploy mgr.ceph-node1.abcdefCh. 7
ceph orch host add ceph-node5 192.168.10.15 --labels osdCh. 7
ceph orch device ls ceph-node5 --refreshCh. 7
ceph orch ls osdCh. 7
ceph orch apply -i osd-spec.yamlCh. 7
ceph orch host label add ceph-node5 monCh. 7
ceph orch apply -i mon-spec.yamlCh. 7
ceph orch osd rm 9Ch. 7
ceph orch osd rm statusCh. 7
ceph orch host drain ceph-node5Ch. 7
ceph orch ps ceph-node5Ch. 7
ceph orch host rm ceph-node5Ch. 7
ceph orch osd rm 7 --replace --zapCh. 7
ceph orch device ls ceph-node2 --refreshCh. 7
ceph orch upgrade start --image quay.io/ceph/ceph:v20.2.5Ch. 7
ceph orch upgrade statusCh. 7
ceph orch upgrade pauseCh. 7
ceph orch upgrade resumeCh. 7
ceph orch upgrade stopCh. 7
ceph orch upgrade start --image quay.io/ceph/ceph:v21.2.0 --daemon-types mgr,mon Umbrella+Ch. 7
ceph orch host maintenance enter ceph-node2Ch. 7
ceph orch host maintenance exit ceph-node2Ch. 7
ceph orch apply mgmt-gateway --placement="label:mgmt" Tentacle+Ch. 9
ceph orch apply mgmt-gateway --virtual_ip 192.168.10.60 --enable-auth=true --placement="label:mgmt" Tentacle+Ch. 9
ceph orch ls mgmt-gateway Tentacle+Ch. 9
ceph orch daemon stop osd.12Ch. 10
ceph orch daemon stop osd.20Ch. 10
ceph orch daemon start osd.20Ch. 10
ceph orch apply -i cluster.yaml --dry-runCh. 11
ceph orch apply -i cluster.yamlCh. 11
ceph orch ls --export > cluster-current.yamlCh. 11
ceph orch ls osd --exportCh. 11
ceph orch rm rgw.objstoreCh. 11
ceph orch device ls --wideCh. 11
ceph orch ls --export > /srv/ceph-gitops/specs/cluster.yamlCh. 11
ceph orch apply -i osd-hybrid.yaml --dry-runCh. 11
ceph orch device ls --refresh --wideCh. 11
ceph orch ls --export > /tmp/live-specs.yamlCh. 11
ceph orch daemon stop osd.7Ch. 12
ceph orch daemon start osd.7Ch. 12
ceph orch restart osd.<service>Ch. 15
ceph orch apply rbd-mirror --placement=1Ch. 18
ceph orch upgrade start --ceph-version 20.2.5Ch. 19
ceph orch upgrade pause | resume | stopCh. 19
ceph orch upgrade start --image quay.io/ceph/ceph:v20.2.5 --daemon-types mgr,mon --hosts mon1,mon2Ch. 19
ceph orch upgrade start --image quay.io/ceph/ceph:v20.2.5 --services rgw.s3main --limit 2Ch. 19
ceph orch osd rm 17 --replaceCh. 19
ceph orch device ls stor-b3 --refreshCh. 19
ceph orch device zap stor-b3 /dev/sdk --forceCh. 19
ceph orch ps --daemon-type osd | grep osd.17Ch. 19
ceph orch host maintenance enter stor-b3Ch. 19
ceph orch host maintenance exit stor-b3Ch. 19
ceph orch host drain stor-b3Ch. 19
ceph orch host rm stor-b3Ch. 19
ceph orch apply node-exporterCh. 20
ceph orch apply ceph-exporterCh. 20
ceph orch apply alertmanagerCh. 20
ceph orch apply prometheusCh. 20
ceph orch apply grafanaCh. 20
ceph orch ls --service-type prometheusCh. 20
ceph orch apply mgmt-gateway --virtual_ip 192.0.2.50 --enable-auth=true --placement="label:mgmt" Tentacle+Ch. 20
ceph orch apply oauth2-proxy -i oauth2-proxy.yaml Tentacle+Ch. 20
ceph orch ls | grep -E "mgmt-gateway|oauth2" Tentacle+Ch. 20
ceph orch host ls --detailCh. 21
ceph orch apply nvmeof POOL GROUP --placement="host01, host02" Tentacle+Ch. 31
ceph config
ceph config dumpCh. 1
ceph config get osd osd_memory_targetCh. 1
ceph config set osd osd_max_backfills 2Ch. 1
ceph config show osd.0 | headCh. 1
ceph config help osd_memory_targetCh. 1
ceph config set mon mon_allow_pool_delete trueCh. 1
ceph config set mon mon_allow_pool_delete falseCh. 1
ceph config generate-minimal-conf > /tmp/ceph.confCh. 2
ceph config set client.rgw rgw_dns_name s3.example.comCh. 4
ceph config set client.rgw rgw_keystone_url https://keystone.example.com:5000Ch. 4
ceph config set client.rgw rgw_keystone_api_version 3Ch. 4
ceph config set client.rgw rgw_keystone_admin_user rgwCh. 4
ceph config set client.rgw rgw_keystone_admin_password_path /etc/ceph/keystone.passCh. 4
ceph config set client.rgw rgw_keystone_admin_domain DefaultCh. 4
ceph config set client.rgw rgw_keystone_admin_project serviceCh. 4
ceph config set client.rgw rgw_keystone_accepted_roles "member,admin"Ch. 4
ceph config set client.rgw rgw_keystone_implicit_tenants trueCh. 4
ceph config set client.rgw rgw_swift_account_in_url trueCh. 4
ceph config set client.rgw rgw_s3_auth_use_keystone trueCh. 4
ceph config set osd osd_memory_target 6442450944Ch. 7
ceph config set osd.12 osd_memory_target 8589934592Ch. 7
ceph config set osd/class:ssd osd_memory_target 8589934592Ch. 7
ceph config set client.rgw.objstore rgw_max_concurrent_requests 2048Ch. 7
ceph config show osd.3 | grep memory_targetCh. 7
ceph config log 10Ch. 7
ceph config set mgr target_max_misplaced_ratio .03Ch. 7
ceph config get osd osd_mclock_profileCh. 7
ceph config set osd osd_mclock_profile high_recovery_opsCh. 7
ceph config set osd osd_mclock_profile balancedCh. 7
ceph config set osd osd_scrub_begin_hour 1Ch. 7
ceph config set osd osd_scrub_end_hour 6Ch. 7
ceph config get mon ms_cluster_modeCh. 8
ceph config get mon ms_service_modeCh. 8
ceph config get mon ms_client_modeCh. 8
ceph config set global ms_cluster_mode "secure"Ch. 8
ceph config set global ms_client_mode secureCh. 8
ceph config set global ms_service_mode secureCh. 8
ceph config set mgr mgr/prometheus/rbd_stats_pools "analytics-rbd"Ch. 9
ceph config set mgr mgr/pgwatch/interval 10Ch. 9
ceph config set global mgr_stats_period p ; wait 2p+2 secondsCh. 9
ceph config dump | grep osd_mclock_max_capacity_iopsCh. 10
ceph config set mgr mgr/cephadm/container_image_prometheus registry.internal:5000/prometheus/prometheus:<tag>Ch. 11
ceph config set mgr mgr/cephadm/container_image_grafana registry.internal:5000/ceph/grafana:<tag>Ch. 11
ceph config set mgr mgr/cephadm/log_to_cluster_level debugCh. 11
ceph config dump --format json | jq -S 'sort_by(.section, .name)' > /tmp/live-config.jsonCh. 11
ceph config set global osd_pool_default_flag_ec_optimizations true Tentacle+Ch. 13
ceph config get client objecter_inflight_opsCh. 14
ceph config get client objecter_inflight_op_bytesCh. 14
ceph config set client.devapp rados_osd_op_timeout 30Ch. 14
ceph config get osd osd_class_dirCh. 15
ceph config set client.rgw rgw_lifecycle_work_time "00:00-23:59"Ch. 16
ceph config get mon mon_stretch_cluster_recovery_ratioCh. 18
ceph config set mgr mgr/balancer/upmap_max_deviation 1Ch. 19
ceph config dump | headCh. 19
ceph config get osd.12 osd_memory_targetCh. 19
ceph config show osd.12 | grep -E "osd_memory_target|osd_max_backfills"Ch. 19
ceph config set osd/class:hdd osd_memory_target 6GCh. 19
ceph config set osd.12 debug_osd 10/10Ch. 19
ceph config rm osd.12 debug_osdCh. 19
ceph config log 20Ch. 19
ceph config reset 1234Ch. 19
ceph config help osd_op_queueCh. 19
ceph config get client.ceph-exporter exporter_prio_limitCh. 20
ceph config get mgr mgr_stats_periodCh. 20
ceph config set osd osd_mclock_profile high_client_opsCh. 21
ceph config show osd.0 | grep -E "osd_mclock_max_capacity_iops|osd_mclock_scheduler"Ch. 21
ceph config set osd/host:stor-a1 osd_memory_target 8GCh. 21
ceph config show osd.3 bluestore_throttle_cost_per_ioCh. 21
ceph config set osd.3 debug_osd 20 ; ceph config set osd.3 debug_bluestore 20Ch. 22
ceph config rm osd.3 debug_osd ; ceph config rm osd.3 debug_bluestoreCh. 22
ceph config get osd.4 bdev_ioringCh. 23
ceph config get osd.4 osd_memory_targetCh. 23
ceph config set osd bluestore_rocksdb_options_annex "max_background_jobs=6"Ch. 25
ceph config set osd crimson_prometheus_port_base 29180 mainCh. 30
ceph config set osd debug_osd 20/20 Squid+Ch. 32
ceph tell
ceph tell mds.cephfs:0 session ls | jq '.[] | {id, num_caps, "client": .client_metadata.hostname}'Ch. 6
ceph tell mds.cephfs:0 dump_ops_in_flight | jq '.ops[0]'Ch. 6
ceph tell mds.cephfs:0 perf dump mds_log | jq '.mds_log | {ev, seg, evtrm}'Ch. 6
ceph tell mds.cephfs:0 cache statusCh. 6
ceph tell mds.fs01:0 session lsCh. 6
ceph tell mds.fs01:0 perf dump mds_serverCh. 6
ceph tell mds.fs01:0 dump_ops_in_flightCh. 6
ceph tell mds.fs01:0 cache statusCh. 6
ceph tell mds.fs01:0 client ls | grep -E '"id"|hostname'Ch. 6
ceph tell mds.fs01:0 client evict id=4305Ch. 6
ceph tell osd.* config set debug_osd 10/10Ch. 7
ceph tell osd.* config set debug_osd 1/5Ch. 7
ceph tell mon.ceph-node1 mon_statusCh. 8
ceph tell mgr.$(ceph mgr stat | jq -r .active_name) config set debug_mgr 20Ch. 9
ceph tell osd.0 benchCh. 10
ceph tell osd.0 bench 12288000 4096 4194304 100Ch. 10
ceph tell osd.3 dump_ops_in_flightCh. 10
ceph tell osd.3 dump_historic_slow_opsCh. 10
ceph tell osd.* versionCh. 10
ceph tell mon.* sessions | jq lengthCh. 10
ceph tell mds.fs01:0 perf dumpCh. 10
ceph tell mds.fs01:0 perf dump mds_server | jq '.mds_server | {req: .handle_client_request}'Ch. 10
ceph tell osd.4 benchCh. 10
ceph tell osd.4 bench 12288000 4096 4194304 100Ch. 10
ceph tell osd.3 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[0:5]'Ch. 10
ceph tell osd.3 heap statsCh. 10
ceph tell osd.3 heap releaseCh. 10
ceph tell osd.3 heap start_profilerCh. 10
ceph tell osd.3 heap dumpCh. 10
ceph tell osd.3 heap stop_profilerCh. 10
ceph tell osd.3 bluefs statsCh. 12
ceph tell osd.3 bluestore allocator score blockCh. 12
ceph tell osd.3 bluestore allocator fragmentation histogram blockCh. 12
ceph tell osd.4 config get osd_backoff_on_peeringCh. 14
ceph tell osd.4 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[:6]'Ch. 23
ceph tell osd.4 dump_mempools | jq '.mempool.total'Ch. 23
ceph tell osd.4 compactCh. 25
ceph tell osd.4 config get osd_recovery_max_active_hddCh. 27
ceph tell osd.0 dump_metrics reactor_utilization mainCh. 30
ceph tell osd.0 dump_store_shards mainCh. 30
ceph tell osd.4 dump_scrubs Squid+Ch. 32
ceph tell osd.4 dump_scrub_reservations Squid+Ch. 32
ceph tell osd.4 dump_recovery_reservations Squid+Ch. 32
ceph tell osd.3 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[:5]'Ch. 33
ceph tell osd.3 perf dump | jq '."bluestore-pricache:meta"'Ch. 33
ceph fs
ceph fs volume create cephfs01Ch. 1
ceph fs volume create manila-fsCh. 3
ceph fs volume create fs01 --placement="2 ceph-node3 ceph-node4"Ch. 6
ceph fs lsCh. 6
ceph fs status fs01Ch. 6
ceph fs new fs02 cephfs.fs02.meta cephfs.fs02.dataCh. 6
ceph fs set fs01 allow_standby_replay trueCh. 6
ceph fs set fs01 standby_count_wanted 1Ch. 6
ceph fs set fs01 max_mds 2Ch. 6
ceph fs authorize fs01 client.webapp /web rwCh. 6
ceph fs authorize fs01 client.analyst / r /reports rwCh. 6
ceph fs subvolumegroup create fs01 smb Tentacle+Ch. 6
ceph fs subvolume create fs01 docs --group_name smb --size 107374182400 Tentacle+Ch. 6
ceph fs status ; ceph health detail | grep -E 'MDS_|CLIENT'Ch. 6
ceph fs subvolumegroup create fs01 teamsCh. 6
ceph fs subvolume create fs01 data-eng --group_name teams --size 53687091200 --mode 770Ch. 6
ceph fs subvolume getpath fs01 data-eng --group_name teamsCh. 6
ceph fs subvolume info fs01 data-eng --group_name teamsCh. 6
ceph fs subvolume resize fs01 data-eng 107374182400 --group_name teams --no_shrinkCh. 6
ceph fs subvolume ls fs01 --group_name teamsCh. 6
ceph fs subvolume snapshot create fs01 data-eng snap-2026-11-15 --group_name teamsCh. 6
ceph fs subvolume snapshot clone fs01 data-eng snap-2026-11-15 data-eng-test --group_name teamsCh. 6
ceph fs clone status fs01 data-eng-testCh. 6
ceph fs snap-schedule add /projects 1h --fs fs01Ch. 6
ceph fs snap-schedule retention add /projects h 24 --fs fs01Ch. 6
ceph fs snap-schedule retention add /projects d 7 --fs fs01Ch. 6
ceph fs snap-schedule status /projects --fs fs01Ch. 6
ceph fs add_data_pool fs01 cephfs.fs01.ecCh. 6
ceph fs authorize fs01 client.mirror_remote / rwpsCh. 6
ceph fs snapshot mirror peer_bootstrap create fs01 client.mirror_remote site-bCh. 6
ceph fs snapshot mirror enable fs01Ch. 6
ceph fs snapshot mirror peer_bootstrap import fs01 <token>Ch. 6
ceph fs snapshot mirror add fs01 /projectsCh. 6
ceph fs snapshot mirror peer_list fs01Ch. 6
ceph fs statusCh. 6
ceph fs subvolumegroup create fs01 analyticsCh. 9
ceph fs subvolume create fs01 shared --group_name analytics --size 2199023255552Ch. 9
ceph fs subvolume getpath fs01 shared --group_name analyticsCh. 9
ceph pg
ceph pg ls-by-pool lab-pool | headCh. 1
ceph pg force-recovery 2.1fCh. 7
ceph pg force-backfill 2.1f 2.20Ch. 7
ceph pg cancel-force-recovery 2.1fCh. 7
ceph pg deep-scrub 2.1fCh. 7
ceph pg map 3.1fCh. 8
ceph pg statCh. 8
ceph pg dump_stuck inactiveCh. 8
ceph pg dump_stuck uncleanCh. 8
ceph pg ls degradedCh. 8
ceph pg 3.1f query | jq '.recovery_state'Ch. 8
ceph pg ls-by-pool tenant-a-db | headCh. 8
ceph pg 5.3a query | jq .stateCh. 10
ceph pg ls-by-pool ecpool | grep -c 2147483647Ch. 13
ceph pg 5.1as2 query | jq '.info | {last_update, last_complete, log_tail}'Ch. 13
ceph pg 5.1a list_unfoundCh. 13
ceph pg dump_stuck staleCh. 17
ceph pg ls downCh. 17
ceph pg 2.1f query | jq '.state, .recovery_state[0]'Ch. 17
ceph pg repair 2.1fCh. 17
ceph pg 2.5 list_unfoundCh. 17
ceph pg 2.5 query | jq '.recovery_state[] | select(.name|test("Active")) | .might_have_unfound'Ch. 17
ceph pg 2.5 mark_unfound_lost revertCh. 17
ceph pg <pgid> query | jq '.info.stats.stat_sum.num_objects_degraded'Ch. 27
ceph pg 2.1f query | jq '.recovery_state' Squid+Ch. 32
ceph daemon
ceph daemon osd.4 bluestore allocator score blockCh. 1
ceph daemon osd.3 config showCh. 7
ceph daemon mon.a sessions | jq lengthCh. 7
ceph daemon osd.4 dump_ops_in_flight | jq '.ops[] | select(.description|test("ECSub"))'Ch. 13
ceph daemon osd.4 dump_blocked_opsCh. 14
ceph daemon client.admin.<pid>.<cookie> objecter_requestsCh. 14
ceph daemon osd.12 statusCh. 17
ceph daemon osd.7 dump_ops_in_flight | jq '.ops[] | {age, description, last: .type_data.events[-1].event}'Ch. 17
ceph daemon osd.7 dump_blocked_opsCh. 17
ceph daemon osd.7 dump_historic_slow_ops | jq '.ops[0].type_data.events'Ch. 17
ceph daemon osd.7 dump_historic_ops_by_duration | jq '.ops[0:3][] | {duration, description}'Ch. 17
ceph daemon osd.3 counter schema | jq 'keys' | headCh. 20
ceph daemon osd.3 counter dump | jq '.osd[0].counters | {op_w, op_r}'Ch. 20
ceph daemon osd.3 perf dump osd | jq '.osd.op_w_latency'Ch. 20
ceph daemon osd.3 perf schema | jq '.osd.op_r_latency'Ch. 20
ceph daemon osd.3 perf dump | jq '.osd.op_r_latency'Ch. 20
ceph daemon osd.3 counter dump | jq 'keys' | headCh. 20
ceph daemon osd.3 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[0:5]'Ch. 21
ceph daemon osd.3 perf dump | jq '.prioritycache'Ch. 21
ceph daemon osd.3 dump_mempools | jq '.mempool.total'Ch. 21
ceph daemon osd.4 bluefs statsCh. 24
ceph daemon osd.4 bluestore allocator fragmentation histogram blockCh. 24
ceph daemon osd.4 perf dump bluestore | jq '.bluestore | {onodes, onode_hits, onode_misses}'Ch. 24
ceph daemon osd.4 messenger dumpCh. 26
ceph daemon osd.12 dump_ops_in_flight | jq '.ops[] | {description, age, flag_point}'Ch. 34
ceph dashboard
ceph dashboard create-self-signed-certCh. 9
ceph dashboard set-ssl-certificate -i dashboard.crtCh. 9
ceph dashboard set-ssl-certificate-key -i dashboard.keyCh. 9
ceph dashboard ac-user-create admin2 -i /root/dash-admin.pw administratorCh. 9
ceph dashboard ac-user-show admin2Ch. 9
ceph dashboard ac-role-showCh. 9
ceph dashboard ac-role-create storage-ops "Ops team: OSD and pool only"Ch. 9
ceph dashboard ac-role-add-scope-perms storage-ops osd read updateCh. 9
ceph dashboard ac-role-add-scope-perms storage-ops pool read create updateCh. 9
ceph dashboard ac-user-create --pwd_update_required alice -i /root/alice.pw storage-opsCh. 9
ceph dashboard ac-user-set-roles alice storage-ops read-onlyCh. 9
ceph dashboard ac-user-disable aliceCh. 9
ceph dashboard set-pwd-policy-enabled trueCh. 9
ceph dashboard set-pwd-policy-min-length 12Ch. 9
ceph dashboard set-pwd-policy-check-complexity-enabled trueCh. 9
ceph dashboard motd set warning 2h "Maintenance on ceph-node3 in progress"Ch. 9
ceph dashboard motd clearCh. 9
ceph dashboard sso setup saml2 https://ceph-dash.example.internal \Ch. 9
ceph dashboard sso statusCh. 9
ceph dashboard sso enable saml2Ch. 9
ceph dashboard feature statusCh. 9
ceph dashboard feature disable iscsi mirroringCh. 9
ceph dashboard feature enable mirroringCh. 9
ceph dashboard get-prometheus-api-hostCh. 20
ceph auth
ceph auth get-or-create client.rbd-lab \Ch. 2
ceph auth get client.rbd-labCh. 2
ceph auth get-or-create client.glance \Ch. 3
ceph auth get-or-create client.cinder \Ch. 3
ceph auth get-or-create client.cinder-backup \Ch. 3
ceph auth get client.glance | ssh glance-host sudo tee /etc/ceph/ceph.client.glance.keyringCh. 3
ceph auth get client.cinder | ssh cinder-host sudo tee /etc/ceph/ceph.client.cinder.keyringCh. 3
ceph auth get client.cinder | ssh compute1 sudo tee /etc/ceph/ceph.client.cinder.keyringCh. 3
ceph auth get client.cinder-backup | ssh backup-host sudo tee /etc/ceph/ceph.client.cinder-backup.keyringCh. 3
ceph auth get-or-create client.manila mon 'allow r' mgr 'allow rw'Ch. 3
ceph auth get client.webappCh. 6
ceph auth get client.webapp -o /etc/ceph/ceph.client.webapp.keyringCh. 6
ceph auth lsCh. 8
ceph auth get client.adminCh. 8
ceph auth get-or-create client.vmhost mon 'profile rbd' osd 'profile rbd pool=vms' mgr 'profile rbd pool=vms'Ch. 8
ceph auth get-or-create client.monitor mon 'allow r' mgr 'allow r'Ch. 8
ceph auth get-or-create client.tenant1 mon 'allow r' osd 'allow rw pool=shared namespace=tenant1'Ch. 8
ceph auth caps client.vmhost mon 'profile rbd' osd 'profile rbd pool=vms, profile rbd-read-only pool=images'Ch. 8
ceph auth rm client.old-appCh. 8
ceph auth get-or-create client.devapp mon 'allow r' osd 'allow rwx pool=devpool' \Ch. 14
ceph auth caps client.devapp mon 'allow r' \Ch. 15
ceph auth caps client.counter mon 'allow r' \Ch. 15
ceph mgr
ceph mgr module enable rgwCh. 5
ceph mgr module enable nfsCh. 6
ceph mgr module enable smb Tentacle+Ch. 6
ceph mgr module enable snap_scheduleCh. 6
ceph mgr module enable mirroringCh. 6
ceph mgr module ls | grep -i dashboardCh. 9
ceph mgr module enable dashboardCh. 9
ceph mgr servicesCh. 9
ceph mgr module disable dashboard && ceph mgr module enable dashboardCh. 9
ceph mgr module disable prometheus && ceph mgr module enable prometheusCh. 9
ceph mgr module ls | jq '.enabled_modules'Ch. 9
ceph mgr module enable pgwatch --forceCh. 9
ceph mgr failCh. 9
ceph mgr statCh. 9
ceph mgr module enable prometheusCh. 20
ceph mon
ceph mon statCh. 7
ceph mon dump | grep election_strategyCh. 7
ceph mon set election_strategy connectivityCh. 7
ceph mon add disallowed_leader eCh. 7
ceph mon dumpCh. 8
ceph mon dump | grep -E "v2:|v1:"Ch. 8
ceph mon dump | grep -E 'tiebreaker|stretch|location'Ch. 18
ceph mon set_location a datacenter=site1Ch. 18
ceph mon set_location b datacenter=site1Ch. 18
ceph mon set_location c datacenter=site2Ch. 18
ceph mon set_location d datacenter=site2Ch. 18
ceph mon set_location e datacenter=site3Ch. 18
ceph mon enable_stretch_mode e stretch_rule datacenterCh. 18
ceph health
ceph health detail | grep -A3 LARGE_OMAPCh. 4
ceph health detail | grep -i mdsCh. 6
ceph health detailCh. 7
ceph health detail | grep -i scrubCh. 7
ceph health detail | grep -i cephadmCh. 10
ceph health mute CEPHADM_STRAY_DAEMON 1hCh. 11
ceph health detail | grep -i spilloverCh. 12
ceph health detail --format json-pretty | jq '.checks | keys'Ch. 17
ceph health detail | grep -A3 SLOW_OPSCh. 17
ceph health detail | grep -E "inconsistent|scrub errors"Ch. 17
ceph balancer
ceph balancer statusCh. 7
ceph balancer mode upmapCh. 7
ceph balancer onCh. 7
ceph balancer evalCh. 19
ceph balancer status && ceph balancer evalCh. 28
ceph nfs
ceph nfs cluster create nfs01 "2 ceph-node2 ceph-node3" --ingress --virtual_ip 192.168.10.50/24Ch. 6
ceph nfs cluster info nfs01Ch. 6
ceph nfs export create cephfs --cluster-id nfs01 --pseudo-path /shared --fsname fs01 --path /webCh. 6
ceph nfs export ls nfs01 --detailedCh. 6
ceph telemetry
ceph telemetry previewCh. 9
ceph telemetry showCh. 9
ceph telemetry on --license sharing-1-0Ch. 9
ceph telemetry offCh. 9
ceph df
ceph dfCh. 1
ceph df detailCh. 1
ceph df detail | grep -E 'POOL|rgw-data'Ch. 12
ceph rgw
ceph rgw realm bootstrap -i primary.yamlCh. 5
ceph rgw realm tokensCh. 5
ceph rgw zone create -i secondary.yamlCh. 5
ceph smb
ceph smb cluster create smb01 user --define-user-pass=alice%S3cret-Ch@ngeMe --placement="1 ceph-node2" Tentacle+Ch. 6
ceph smb share create smb01 docs fs01 / --subvolume=smb/docs Tentacle+Ch. 6
ceph smb show Tentacle+Ch. 6
ceph quorum_status
ceph quorum_status -f json-pretty | jq '.quorum_names'Ch. 7
ceph quorum_status | jq '.quorum_leader_name, .quorum_names'Ch. 7
ceph quorum_status -f json-prettyCh. 8
ceph log
ceph log last 20 info clusterCh. 9
ceph log last cephadm 50Ch. 11
ceph log last 100Ch. 17
ceph nvmeof
ceph nvmeof subsystem add --nqn nqn.2016-06.io.spdk:cnode1 Tentacle+Ch. 31
ceph nvmeof listener add --nqn nqn.2016-06.io.spdk:cnode1 --host-name host01 --traddr 10.0.0.11 --trsvcid 4420 Tentacle+Ch. 31
ceph nvmeof namespace add --nqn nqn.2016-06.io.spdk:cnode1 --rbd-pool rbd --rbd-image-name vol1 Tentacle+Ch. 31
ceph device
ceph device ls-by-daemon osd.7Ch. 7
ceph device light on <devid> identCh. 7
ceph crash
ceph crash ls-newCh. 17
ceph crash ls | grep osd.12Ch. 17
ceph -v
ceph -vCh. 1
ceph status
ceph statusCh. 1
ceph -s
ceph -sCh. 1
ceph --id
ceph --id rbd-lab -sCh. 2
ceph versions
ceph versionsCh. 7
ceph -W
ceph -W cephadmCh. 7
ceph features
ceph featuresCh. 8
ceph pgwatch
ceph pgwatch statusCh. 9
ceph cephadm
ceph cephadm check-host ceph-node2Ch. 11
ceph nvme-gw
ceph nvme-gw show POOL GROUP Tentacle+Ch. 31

rados · direct work with RADOS objects#

rados -p
rados -p lab-pool put hello /tmp/hello.txtCh. 1
rados -p lab-pool lsCh. 1
rados -p lab-pool stat helloCh. 1
rados -p rbd listomapvals rbd_directory | headCh. 2
rados -p rbd listomapkeys rbd_header.$(rados -p rbd get rbd_id.vm1 - | strings)Ch. 2
rados -p rbd ls | grep -c "^rbd_data.<id>"Ch. 2
rados -p benchpool cleanupCh. 10
rados -p hot-storage cache-flush-evict-allCh. 16
rados -p hot-storage ls | headCh. 16
rados -p vmpool ls | grep '^journal_data\.' | sort -t. -k4 -n | tail -4Ch. 18
rados -p test put obj1 /etc/hostsCh. 22
rados -p rbd getxattr rbd_header.5f3a2b8c1d4e _ > /tmp/oi.binCh. 34
rados -p rbd stat rbd_header.5f3a2b8c1d4eCh. 34
rados -p rbd listwatchers rbd_header.5f3a2b8c1d4eCh. 36
rados -p rbd notify rbd_header.5f3a2b8c1d4e helloCh. 36
rados -p rbd listsnaps rbd_data.5f3a.0000000000000000Ch. 36
rados -p rbd listomapkeys rbd_header.5f3a2b8c1d4eCh. 37
rados -p rbd getomapval rbd_header.5f3a2b8c1d4e object_prefixCh. 37
rados -p default.rgw.meta -N users.keys ls | head -3Ch. 40
rados bench
rados bench -p benchpool 60 write -b 4M -t 16 --no-cleanupCh. 10
rados bench -p benchpool 60 seq -t 16Ch. 10
rados bench -p benchpool 60 rand -t 16Ch. 10
rados bench -p benchpool 60 write -b 4K -t 64 --no-cleanupCh. 10
rados bench -p bench 60 write -t 32 -b 4M --no-cleanupCh. 10
rados bench -p bench 60 rand -t 32 ; rados -p bench cleanupCh. 10
rados bench -t T: always exactly T operations in flight ← each completion sends a new opCh. 10
rados list-inconsistent-pg
rados list-inconsistent-pg rbdCh. 17
rados list-inconsistent-obj
rados list-inconsistent-obj 2.1f --format=json-pretty Squid+Ch. 32

rbd · RBD image management#

rbd mirror
rbd mirror pool enable --site-name site-a vms imageCh. 2
rbd mirror pool enable --site-name site-b vms imageCh. 2
rbd mirror pool peer bootstrap create --site-name site-a vms > /root/vms-tokenCh. 2
rbd mirror pool peer bootstrap import --site-name site-b --direction rx-only vms /root/vms-tokenCh. 2
rbd mirror pool info vmsCh. 2
rbd mirror image enable vms/db01 snapshotCh. 2
rbd mirror snapshot schedule add --pool vms 15mCh. 2
rbd mirror snapshot schedule ls --pool vms --recursiveCh. 2
rbd mirror image enable vms/app01 journalCh. 2
rbd mirror pool status vms --verboseCh. 2
rbd mirror image status vms/db01Ch. 2
rbd mirror pool peer bootstrap import --site-name site-b --direction rx-tx vms /root/vms-tokenCh. 2
rbd mirror pool enable --site-name site-a vmpool imageCh. 18
rbd mirror pool peer bootstrap create --site-name site-a vmpool > /tmp/tokenCh. 18
rbd mirror pool enable --site-name site-b vmpool imageCh. 18
rbd mirror pool peer bootstrap import --site-name site-b --direction rx-tx vmpool /tmp/tokenCh. 18
rbd mirror image enable vmpool/db01 snapshotCh. 18
rbd mirror snapshot schedule add --pool vmpool 15mCh. 18
rbd mirror snapshot schedule status --pool vmpoolCh. 18
rbd mirror pool status vmpool --verboseCh. 18
rbd --cluster
rbd --cluster site-a mirror image demote vms/db01Ch. 2
rbd --cluster site-b mirror image status vms/db01Ch. 2
rbd --cluster site-b mirror image promote vms/db01Ch. 2
rbd --cluster site-b mirror image promote --force vms/db01Ch. 2
rbd --cluster site-a mirror image resync vms/db01Ch. 2
rbd --cluster site-a mirror image status vms/db01Ch. 2
rbd --cluster site-b mirror image demote vms/db01Ch. 2
rbd --cluster site-a mirror image promote vms/db01Ch. 2
rbd --cluster site-a mirror image demote vmpool/db01Ch. 18
rbd --cluster site-b mirror image status vmpool/db01Ch. 18
rbd --cluster site-b mirror image promote vmpool/db01Ch. 18
rbd --cluster site-b mirror image promote --force vmpool/db01Ch. 18
rbd --cluster site-a mirror image resync vmpool/db01Ch. 18
rbd create
rbd create rbd/disk01 --size 10GCh. 1
rbd create rbd/golden-os --size 20GCh. 2
rbd create vms/db01 --size 50GCh. 2
rbd create vms/app01 --size 20G --image-feature exclusive-lock,journalingCh. 2
rbd create analytics-rbd/warehouse --size 500GCh. 9
rbd create rbd/benchimg --size 100GCh. 10
rbd create rbd/vm01 --size 200G --data-pool ecpoolCh. 13
rbd create --size 1T --data-pool archive vm-fast/backup01Ch. 16
rbd create rbd/vm01 --size 10G --stripe-unit 64K --stripe-count 4 --data-pool rbd-ecCh. 37
rbd info
rbd info rbd/disk01Ch. 1
rbd info rbd/vm01 | grep parentCh. 2
rbd info rbd/vm02 | grep parentCh. 2
rbd info rbd/vm1 | grep -E 'block_name_prefix|order|features'Ch. 2
rbd info volumes/volume-aaa | grep -A3 parentCh. 3
rbd info volumes/volume-<uuid> --id cinder | grep parentCh. 3
rbd info rbd/vm01 | grep data_poolCh. 13
rbd info rbd/vm01Ch. 37
rbd snap
rbd snap create rbd/disk01@before-upgradeCh. 2
rbd snap ls rbd/disk01Ch. 2
rbd snap rollback rbd/disk01@before-upgradeCh. 2
rbd snap rm rbd/disk01@before-upgradeCh. 2
rbd snap purge rbd/disk01Ch. 2
rbd snap create rbd/golden-os@v1Ch. 2
rbd snap protect rbd/golden-os@v1Ch. 2
rbd snap unprotect rbd/golden-os@v1Ch. 2
rbd --id
rbd --id rbd-lab ls rbdCh. 2
rbd --id rbd-lab create rbd/disk01 --size 10GCh. 2
rbd --id rbd-lab ls -l rbdCh. 2
rbd --id rbd-lab info rbd/disk01Ch. 2
rbd --id rbd-lab resize rbd/disk01 --size 20GCh. 2
rbd journal
rbd journal info --pool vmpool --image db01Ch. 18
rbd journal status --pool vmpool --image db01Ch. 18
rbd journal inspect --pool vmpool --image db01 --verbose | headCh. 18
rbd journal info --pool rbd --image vm01Ch. 39
rbd journal status --pool rbd --image vm01Ch. 39
rbd trash
rbd trash mv rbd/vm01 --expires-at "2026-12-01"Ch. 2
rbd trash ls rbdCh. 2
rbd trash restore rbd/<image-id>Ch. 2
rbd trash purge rbdCh. 2
rbd pool
rbd pool init rbdCh. 1
rbd pool init $pCh. 3
rbd pool init analytics-rbdCh. 9
rbd du
rbd du rbd/disk01Ch. 2
rbd du rbd/vm1Ch. 2
rbd du volumes/volume-aaaCh. 3
rbd migration
rbd migration prepare rbd/disk01 fast-nvme/disk01Ch. 2
rbd migration execute fast-nvme/disk01Ch. 2
rbd migration commit fast-nvme/disk01Ch. 2
rbd config
rbd config image set rbd/vm01 rbd_qos_iops_limit 2000Ch. 2
rbd config pool set rbd rbd_qos_bps_limit 209715200Ch. 2
rbd config image ls rbd/vm01 | grep qosCh. 2
rbd bench
rbd bench --io-type write --io-size 4K --io-threads 32 --io-total 10G --io-pattern rand rbd/benchimgCh. 10
rbd bench --io-type read --io-size 4K --io-threads 32 --io-total 10G --io-pattern rand rbd/benchimgCh. 10
rbd bench --io-type readwrite --rw-mix-read 70 --io-size 16K --io-pattern rand rbd/benchimgCh. 10
rbd clone
rbd clone rbd/golden-os@v1 rbd/vm01Ch. 2
rbd clone rbd/golden-os@v1 rbd/vm02Ch. 2
rbd children
rbd children rbd/golden-os@v1Ch. 2
rbd children images/ubuntu@snapCh. 3
rbd flatten
rbd flatten rbd/vm02Ch. 2
rbd flatten volumes/volume-aaaCh. 3
rbd status
rbd status rbd/vm1Ch. 2
rbd status rbd/vm01Ch. 38
rbd lock
rbd lock ls rbd/vm1Ch. 2
rbd lock ls rbd/vm01Ch. 38
rbd -p
rbd -p images ls -l --id glanceCh. 3
rbd -p volumes ls -l --id cinderCh. 3
rbd cache
rbd cache = trueCh. 3
rbd cache writethrough until flush = trueCh. 3
rbd device
rbd device listCh. 2
rbd resize
rbd resize rbd/disk01 --size 5G --allow-shrinkCh. 2
rbd feature
rbd feature disable rbd/vm1 fast-diff object-mapCh. 2
rbd encryption
rbd encryption format rbd/secure01 luks2 /root/passphrase.binCh. 2
rbd concurrent
rbd concurrent management ops = 20Ch. 3
rbd map
rbd map rbd/img1 -o ms_mode=prefer-crc,queue_depth=256,alloc_size=65536Ch. 29
rbd showmapped
rbd showmappedCh. 29
rbd showmapped;
rbd showmapped; cat /sys/bus/rbd/devices/0/featuresCh. 29

radosgw-admin · RGW administration#

radosgw-admin user
radosgw-admin user create --uid=alice --display-name="Alice" --email=alice@example.comCh. 4
radosgw-admin user info --uid=aliceCh. 4
radosgw-admin user listCh. 4
radosgw-admin user suspend --uid=aliceCh. 4
radosgw-admin user enable --uid=aliceCh. 4
radosgw-admin user create --tenant=acme --uid=bob --display-name="Bob at ACME"Ch. 4
radosgw-admin user create --uid=acme-root --display-name="ACME root" \ Squid+Ch. 4
radosgw-admin user create --uid=sync-user --display-name="Multisite sync" --systemCh. 5
radosgw-admin user create --uid=tester --display-name="Multisite tester"Ch. 5
radosgw-admin user info --uid=testerCh. 5
radosgw-admin user create --uid=analytics --display-name="Analytics team"Ch. 9
radosgw-admin user create --uid=bench --display-name="Benchmark user"Ch. 10
radosgw-admin sync
radosgw-admin sync statusCh. 5
radosgw-admin sync status --rgw-zone=eu-2Ch. 5
radosgw-admin sync error list | head -50Ch. 5
radosgw-admin sync error trimCh. 5
radosgw-admin sync error list | jq '.[0].entries[:5]'Ch. 5
radosgw-admin sync group create --group-id=global --status=allowedCh. 5
radosgw-admin sync group flow create --group-id=global --flow-id=eu-mesh \Ch. 5
radosgw-admin sync group pipe create --group-id=global --pipe-id=all \Ch. 5
radosgw-admin sync group create --bucket=critical-data --group-id=critical --status=enabledCh. 5
radosgw-admin sync group pipe create --bucket=critical-data --group-id=critical \Ch. 5
radosgw-admin sync info --bucket=critical-dataCh. 5
radosgw-admin sync status | grep featuresCh. 5
radosgw-admin bucket
radosgw-admin bucket stats --bucket=photos | jq '.num_shards, .usage'Ch. 4
radosgw-admin bucket limit check | jq '.[].buckets[] | select(.fill_status!="OK")'Ch. 4
radosgw-admin bucket check --bucket=photos --check-objectsCh. 4
radosgw-admin bucket listCh. 4
radosgw-admin bucket stats --bucket=photosCh. 4
radosgw-admin bucket limit checkCh. 4
radosgw-admin bucket check --bucket=photos --check-objects --fixCh. 4
radosgw-admin bucket sync status --bucket=photosCh. 5
radosgw-admin bucket sync status --bucket=ms-testCh. 5
radosgw-admin bucket sync status --bucket logs --source-zone zone-aCh. 42
radosgw-admin quota
radosgw-admin quota set --quota-scope=user --uid=alice --max-size=500G --max-objects=10000000Ch. 4
radosgw-admin quota enable --quota-scope=user --uid=aliceCh. 4
radosgw-admin quota set --quota-scope=bucket --uid=alice --max-objects=5000000Ch. 4
radosgw-admin quota enable --quota-scope=bucket --uid=aliceCh. 4
radosgw-admin quota set --quota-scope=account --account-id=<account-id> --max-size=10T Squid+Ch. 4
radosgw-admin quota enable --quota-scope=account --account-id=<account-id> Squid+Ch. 4
radosgw-admin quota set --quota-scope=user --uid=analytics --max-size=10TCh. 9
radosgw-admin quota enable --quota-scope=user --uid=analyticsCh. 9
radosgw-admin zone
radosgw-admin zone placement add --rgw-zone default \Ch. 4
radosgw-admin zone create --rgw-zonegroup=europe --rgw-zone=eu-1 \Ch. 5
radosgw-admin zone modify --rgw-zone=eu-1 --access-key=<AK> --secret=<SK>Ch. 5
radosgw-admin zone create --rgw-zonegroup=europe --rgw-zone=eu-2 \Ch. 5
radosgw-admin zone modify --rgw-zone=eu-2 --master --defaultCh. 5
radosgw-admin zone modify --rgw-zone=eu-1 --master --defaultCh. 5
radosgw-admin zone create --rgw-zonegroup=europe --rgw-zone=eu-archive \Ch. 5
radosgw-admin period
radosgw-admin period update --commitCh. 4
radosgw-admin period pull --url=http://rgw-eu1.example.com:80 --access-key=<AK> --secret=<SK>Ch. 5
radosgw-admin period get | jq '.period_map.zonegroups[].zones[].name'Ch. 5
radosgw-admin period pull --url=http://rgw-eu2.example.com:80 --access-key=<AK> --secret=<SK>Ch. 5
radosgw-admin period get-currentCh. 42
radosgw-admin period get | jq '{id, epoch, realm_epoch, predecessor_uuid, master_zone}'Ch. 42
radosgw-admin ratelimit
radosgw-admin ratelimit set --ratelimit-scope=user --uid=alice --max-read-ops=1000 --max-write-ops=200Ch. 4
radosgw-admin ratelimit enable --ratelimit-scope=user --uid=aliceCh. 4
radosgw-admin ratelimit set --ratelimit-scope=user --uid=alice --max-read-ops=600 --max-write-bytes=104857600Ch. 41
radosgw-admin ratelimit get --ratelimit-scope=user --uid=aliceCh. 41
radosgw-admin lc
radosgw-admin lc listCh. 4
radosgw-admin lc process --bucket logs-bucketCh. 4
radosgw-admin lc get --bucket photosCh. 16
radosgw-admin lc process --bucket photosCh. 16
radosgw-admin realm
radosgw-admin realm create --rgw-realm=gold --defaultCh. 5
radosgw-admin realm pull --url=http://rgw-eu1.example.com:80 \Ch. 5
radosgw-admin realm default --rgw-realm=goldCh. 5
radosgw-admin realm pull --url=http://rgw-eu2.example.com:80 --access-key=<AK> --secret=<SK>Ch. 5
radosgw-admin reshard
radosgw-admin reshard list ; radosgw-admin reshard status --bucket=photosCh. 4
radosgw-admin reshard listCh. 4
radosgw-admin reshard add --bucket=photos --num-shards=101Ch. 4
radosgw-admin gc
radosgw-admin gc list --include-all | jq lengthCh. 4
radosgw-admin gc list --include-all | headCh. 4
radosgw-admin gc processCh. 4
radosgw-admin zonegroup
radosgw-admin zonegroup placement add --rgw-zonegroup default \Ch. 4
radosgw-admin zonegroup create --rgw-zonegroup=europe \Ch. 5
radosgw-admin zonegroup modify --rgw-zonegroup=europe --enable-feature=reshardingCh. 5
radosgw-admin metadata
radosgw-admin metadata sync statusCh. 5
radosgw-admin metadata get bucket:photosCh. 40
radosgw-admin metadata get bucket.instance:photos:a1b2c3d4-0000-4000-8000-1234567890ab.4123.7Ch. 40
radosgw-admin key
radosgw-admin key create --uid=alice --key-type=s3 --gen-access-key --gen-secretCh. 4
radosgw-admin key create --subuser=alice:swift --key-type=swift --gen-secretCh. 4
radosgw-admin data
radosgw-admin data sync status --source-zone=eu-1Ch. 5
radosgw-admin data sync status --source-zone=us-east --shard-id=7Ch. 5
radosgw-admin subuser
radosgw-admin subuser create --uid=alice --subuser=alice:swift --access=fullCh. 4
radosgw-admin account
radosgw-admin account create --account-name=acme --email=ops@acme.example Squid+Ch. 4
radosgw-admin object
radosgw-admin object stat --bucket=photos --object=a.jpg | jq '.manifest'Ch. 4
radosgw-admin usage
radosgw-admin usage show --uid=alice --start-date=2026-11-01Ch. 4
radosgw-admin datalog
radosgw-admin datalog status ; radosgw-admin mdlog statusCh. 5
radosgw-admin bilog
radosgw-admin bilog list --bucket=photos --max-entries=5Ch. 5

cephadm · deployment and management with cephadm#

cephadm shell
cephadm shellCh. 1
cephadm shell -- ceph -sCh. 1
cephadm shell --name osd.3 -- ceph daemon osd.3 helpCh. 10
cephadm shell --name osd.3 -- ceph daemon osd.3 dump_ops_in_flightCh. 10
cephadm shell --name osd.3 -- ceph daemon osd.3 dump_historic_opsCh. 10
cephadm shell --name osd.3 -- ceph daemon osd.3 perf dump bluestoreCh. 10
cephadm shell --name osd.3 -- ceph daemon osd.3 config diffCh. 10
cephadm shell --name osd.12Ch. 10
cephadm shell --name osd.7Ch. 12
cephadm bootstrap
cephadm bootstrap \Ch. 1
cephadm bootstrap --mon-ip 192.168.10.11 --single-host-defaultsCh. 11
cephadm bootstrap --mon-ip 192.168.10.11 --cluster-network 192.168.20.0/24 --apply-spec cluster.yamlCh. 11
cephadm logs
cephadm logs --name osd.3Ch. 7
cephadm logs --name osd.12 -- -n 200Ch. 17
cephadm install
cephadm install ceph-commonCh. 1
cephadm check-host
cephadm check-hostCh. 10
cephadm ls
cephadm lsCh. 11
cephadm adopt
cephadm adopt --style legacy --name mon.ceph-node1Ch. 11
cephadm --image
cephadm --image registry.internal:5000/ceph/ceph:v20.2.5 bootstrap --mon-ip 192.168.10.11 \Ch. 11

ceph-volume · disk and OSD preparation#

ceph-volume lvm
ceph-volume lvm new-db --osd-id 7 --osd-fsid <fsid> --target vg_nvme/db_osd7Ch. 12
ceph-volume lvm migrate --osd-id 7 --osd-fsid <fsid> --from data --target vg_nvme/db_osd7Ch. 12

ceph-bluestore-tool · BlueStore inspection and repair#

ceph-bluestore-tool show-label
ceph-bluestore-tool show-label --dev /dev/sdbCh. 1
ceph-bluestore-tool show-label --dev /dev/ceph-vg/osd-block-xxxxCh. 12
ceph-bluestore-tool show-label --dev /dev/ceph-xxx/osd-block-yyyCh. 24
ceph-bluestore-tool bluefs-bdev-sizes
ceph-bluestore-tool bluefs-bdev-sizes --path /var/lib/ceph/osd/ceph-7Ch. 12
ceph-bluestore-tool bluefs-bdev-sizes --path /var/lib/ceph/osd/ceph-4Ch. 24
ceph-bluestore-tool reshard
ceph-bluestore-tool reshard --path /var/lib/ceph/osd/ceph-7 --sharding "<spec>"Ch. 12
ceph-bluestore-tool reshard --path /var/lib/ceph/osd/ceph-4 \Ch. 25
ceph-bluestore-tool fsck
ceph-bluestore-tool fsck --path /var/lib/ceph/osd/ceph-7 --deepCh. 12
ceph-bluestore-tool bluefs-bdev-expand
ceph-bluestore-tool bluefs-bdev-expand --path /var/lib/ceph/osd/ceph-7Ch. 12
ceph-bluestore-tool bluefs-log-dump
ceph-bluestore-tool bluefs-log-dump --path /var/lib/ceph/osd/ceph-4Ch. 24
ceph-bluestore-tool bluefs-export
ceph-bluestore-tool bluefs-export --path ... --out-dir /tmp/bluefsCh. 24
ceph-bluestore-tool free-score
ceph-bluestore-tool free-score --path /var/lib/ceph/osd/ceph-4Ch. 24
ceph-bluestore-tool show-sharding
ceph-bluestore-tool show-sharding --path /var/lib/ceph/osd/ceph-4Ch. 25

ceph-objectstore-tool · offline PG and object inspection#

ceph-objectstore-tool --data-path
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-4 --op list --pgid 3.1a | headCh. 1
ceph-objectstore-tool --data-path ... --pgid 3.1a '<obj-json>' dump | jq '.onode'Ch. 1
ceph-objectstore-tool --data-path ... --op log --pgid 3.1a | jq '.pg_log_t.log[-1]'Ch. 1
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --op list-pgsCh. 10
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --pgid 5.3a --op infoCh. 10
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --pgid 2.5 --op infoCh. 18
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --pgid 2.5 --op export --file /backup/2.5.exportCh. 18
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-30 --op import --file /backup/2.5.exportCh. 18

ceph-kvstore-tool · RocksDB inspection#

ceph-kvstore-tool bluestore-kv
ceph-kvstore-tool bluestore-kv /var/lib/ceph/osd/ceph-4 statsCh. 25

crushtool · compile and test CRUSH maps#

crushtool -i
crushtool -i crush.new --test --rule 1 --num-rep 3 --show-statistics --show-bad-mappingsCh. 8
crushtool -i cm.bin --test --rule 0 --num-rep 3 --min-x 0 --max-x 1023 --show-utilizationCh. 28
crushtool -i cm.bin --test --rule 0 --num-rep 3 --x 0x36d15c32 --show-mappingsCh. 28
crushtool -i cm.bin --test --show-bad-mappings --rule 0 --num-rep 3Ch. 28
crushtool -d
crushtool -d crush.bin -o crush.txtCh. 8
crushtool -c
crushtool -c crush.txt -o crush.newCh. 8

ceph-dencoder · decode binary structures#

ceph-dencoder list_types
ceph-dencoder list_types | grep -i -E 'osdmap|pg_log'Ch. 22
ceph-dencoder type
ceph-dencoder type object_info_t import /tmp/oi.bin decode dump_jsonCh. 34

kubectl · Kubernetes (Rook)#

kubectl -n
kubectl -n rook-ceph get podsCh. 11
kubectl -n rook-ceph get cephclusterCh. 11
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph -sCh. 11
kubectl apply
kubectl apply -f cluster.yamlCh. 11

The Comprehensive Ceph Guide · 1.6 · November 2026
© 2026 Ramin Najarbashi · CC BY-NC-SA 4.0

Privacy: this site sets no cookies. Visits are counted with Cloudflare Web Analytics, which is cookie-less and does not track individuals.