راهنمای جامع Ceph
Englishشروع کنید
در این صفحه
پیوست ب

برگه‌ی تقلب دستورها

۴۵ دقیقه مطالعه

همه‌ی دستورهایی که در کادرهای کد فصل‌ها آمده‌اند، این‌جا بر اساس ابزار و زیر‌دستور گروه‌بندی شده‌اند تا هنگام کار روزانه سریع پیدا شوند. ستون سمت چپ فصل نخستین کاربرد دستور را نشان می‌دهد؛ برای توضیح کامل به همان فصل برگردید. پیش از اجرای دستورهای تغییردهنده روی کلاستر واقعی، مطمئن شوید به کلاستر درست متصل هستید (ceph fsid) و پیش از دستورهای تغییردهنده وضعیت را با ceph -s ثبت کنید. دستورهایی که به نسخه‌ای جدیدتر از Reef نیاز دارند، برچسب نسخه دارند (مثلاً Squid+)؛ بقیه از Reef (18.2) به بعد بی‌تغییر کار می‌کنند. همین برچسب‌ها کنار کادرهای کد فصل‌ها هم آمده‌اند.

ceph · خط فرمان اصلی کلاستر#

ceph osd
ceph osd treeفصل ۱
ceph osd pool create lab-poolفصل ۱
ceph osd pool application enable lab-pool rados-testفصل ۱
ceph osd map lab-pool helloفصل ۱
ceph osd pool ls detailفصل ۱
ceph osd df treeفصل ۱
ceph osd pool autoscale-statusفصل ۱
ceph osd pool create rbdفصل ۱
ceph osd pool rm lab-pool lab-pool --yes-i-really-really-mean-itفصل ۱
ceph osd map rbd rbd_data.5e2a.0000000000000001فصل ۱
ceph osd pool create vms && rbd pool init vmsفصل ۲
ceph osd blocklist lsفصل ۲
ceph osd pool create nvmeof-pool && rbd pool init nvmeof-pool Squid+فصل ۲
ceph osd pool create $pفصل ۳
ceph osd pool ls detail | grep -E "images|volumes|backups|vms"فصل ۳
ceph osd pool set volumes target_size_ratio 0.6فصل ۳
ceph osd pool set vms target_size_ratio 0.2فصل ۳
ceph osd pool set images target_size_ratio 0.1فصل ۳
ceph osd pool set backups target_size_ratio 0.1فصل ۳
ceph osd get-require-min-compat-clientفصل ۳
ceph osd pool create cephfs.fs02.metaفصل ۶
ceph osd pool create cephfs.fs02.dataفصل ۶
ceph osd pool set cephfs.fs02.meta crush_rule ssd-ruleفصل ۶
ceph osd pool create cephfs.fs01.ec erasureفصل ۶
ceph osd pool set cephfs.fs01.ec allow_ec_overwrites trueفصل ۶
ceph osd set norebalance && ceph osd set nobackfillفصل ۷
ceph osd unset nobackfill && ceph osd unset norebalanceفصل ۷
ceph osd safe-to-destroy osd.9فصل ۷
ceph osd ok-to-stop osd.9فصل ۷
ceph osd tree downفصل ۷
ceph osd safe-to-destroy osd.7فصل ۷
ceph osd tree | grep osd.7فصل ۷
ceph osd dump | grep -E 'full_ratio|nearfull'فصل ۷
ceph osd df | sort -nk17 | tailفصل ۷
ceph osd pool set rbd target_size_ratio 0.4فصل ۷
ceph osd pool set cephfs.fs01.meta pg_autoscale_mode onفصل ۷
ceph osd pool set images bulk trueفصل ۷
ceph osd ok-to-stop $(ceph osd ls-tree ceph-node2 | tr '\n' ' ')فصل ۷
ceph osd set nooutفصل ۷
ceph osd unset nooutفصل ۷
ceph osd set-group noout osd.4فصل ۷
ceph osd set-group noout ceph-node3فصل ۷
ceph osd unset-group noout ceph-node3فصل ۷
ceph osd map rbd rbd_data.12ab.0000000000000004فصل ۸
ceph osd crush tree --show-shadowفصل ۸
ceph osd crush add-bucket rack1 rackفصل ۸
ceph osd crush move rack1 root=defaultفصل ۸
ceph osd crush move ceph-node1 rack=rack1فصل ۸
ceph osd crush set-device-class nvme osd.20فصل ۸
ceph osd crush class lsفصل ۸
ceph osd crush reweight osd.20 3.49309فصل ۸
ceph osd reweight 20 0.9فصل ۸
ceph osd crush rule create-replicated rep-ssd-host default host ssdفصل ۸
ceph osd crush rule create-replicated rep-rack default rackفصل ۸
ceph osd erasure-code-profile set ec42-rack k=4 m=2 crush-failure-domain=rack crush-device-class=hddفصل ۸
ceph osd crush rule create-erasure ec42-rack ec42-rackفصل ۸
ceph osd crush rule lsفصل ۸
ceph osd crush rule dump rep-ssd-hostفصل ۸
ceph osd getcrushmap -o crush.binفصل ۸
ceph osd setcrushmap -i crush.newفصل ۸
ceph osd crush show-tunablesفصل ۸
ceph osd crush tunables optimalفصل ۸
ceph osd crush set-all-straw-buckets-to-straw2فصل ۸
ceph osd crush rm-device-class osd.$idفصل ۸
ceph osd crush set-device-class fastnvme osd.$idفصل ۸
ceph osd crush rule create-replicated fast-host default host fastnvmeفصل ۸
ceph osd pool create tenant-a-db 64 64 replicated fast-hostفصل ۸
ceph osd pool application enable tenant-a-db rbdفصل ۸
ceph osd pool create analytics-rbd --autoscale-mode=onفصل ۹
ceph osd pool set analytics-rbd crush_rule rep-ssd-hostفصل ۹
ceph osd pool application enable analytics-rbd rbdفصل ۹
ceph osd pool create benchpool 128 128فصل ۱۰
ceph osd pool application enable benchpool rados-bench --yes-i-really-mean-itفصل ۱۰
ceph osd perfفصل ۱۰
ceph osd metadata 3 | jq '{bluefs_dedicated_db, bluefs_db_size, devices}'فصل ۱۲
ceph osd pool set rgw-data compression_algorithm zstdفصل ۱۲
ceph osd pool set rgw-data compression_mode aggressiveفصل ۱۲
ceph osd pool set rgw-data compression_required_ratio 0.875فصل ۱۲
ceph osd erasure-code-profile lsفصل ۱۳
ceph osd erasure-code-profile get defaultفصل ۱۳
ceph osd erasure-code-profile set ec42 plugin=isa technique=reed_sol_van k=4 m=2 \فصل ۱۳
ceph osd pool create ecpool erasure ec42فصل ۱۳
ceph osd pool set ecpool allow_ec_overwrites trueفصل ۱۳
ceph osd pool application enable ecpool rgwفصل ۱۳
ceph osd erasure-code-profile set lrc42 plugin=lrc k=4 m=2 l=3 crush-failure-domain=hostفصل ۱۳
ceph osd erasure-code-profile set clay42 plugin=clay k=4 m=2 d=5 crush-failure-domain=hostفصل ۱۳
ceph osd pool set ecpool allow_ec_optimizations true Tentacle+فصل ۱۳
ceph osd pool get ecpool allow_ec_optimizations Tentacle+فصل ۱۳
ceph osd erasure-code-profile set ec42fast plugin=isa technique=reed_sol_van k=4 m=2 \ Tentacle+فصل ۱۳
ceph osd pool create rbd-ec erasure ec42fast Tentacle+فصل ۱۳
ceph osd pool set rbd-ec allow_ec_overwrites true Tentacle+فصل ۱۳
ceph osd pool set rbd-ec allow_ec_optimizations true Tentacle+فصل ۱۳
ceph osd crush rule dump ecpoolفصل ۱۳
ceph osd getcrushmap -o cm && crushtool -i cm --test --rule <id> --num-rep 6 --show-bad-mappingsفصل ۱۳
ceph osd pool set ecpool fast_read 1فصل ۱۳
ceph osd pool create devpool 32فصل ۱۴
ceph osd pool application enable devpool myappفصل ۱۴
ceph osd tier add cold-storage hot-storageفصل ۱۶
ceph osd tier cache-mode hot-storage writebackفصل ۱۶
ceph osd tier set-overlay cold-storage hot-storageفصل ۱۶
ceph osd pool set hot-storage hit_set_type bloomفصل ۱۶
ceph osd pool set hot-storage hit_set_count 12فصل ۱۶
ceph osd pool set hot-storage hit_set_period 14400فصل ۱۶
ceph osd pool set hot-storage target_max_bytes 1099511627776فصل ۱۶
ceph osd pool ls detail | grep -E "tier|cache_mode|read_tier|write_tier"فصل ۱۶
ceph osd tier cache-mode hot-storage proxyفصل ۱۶
ceph osd tier remove-overlay cold-storageفصل ۱۶
ceph osd tier remove cold-storage hot-storageفصل ۱۶
ceph osd crush rule create-replicated fast-rule default host nvmeفصل ۱۶
ceph osd erasure-code-profile set cold-ec k=4 m=2 crush-failure-domain=host crush-device-class=hddفصل ۱۶
ceph osd pool create vm-fast 128 128 replicated fast-ruleفصل ۱۶
ceph osd pool create archive 256 256 erasure cold-ecفصل ۱۶
ceph osd pool set archive allow_ec_overwrites trueفصل ۱۶
ceph osd find 12فصل ۱۷
ceph osd dump | grep -E "^osd.12 "فصل ۱۷
ceph osd dump | grep -E 'stretch_mode|degraded_stretch|recovering_stretch'فصل ۱۸
ceph osd pool ls detail | grep -E 'peering_crush|min_size'فصل ۱۸
ceph osd crush add-bucket site1 datacenterفصل ۱۸
ceph osd crush add-bucket site2 datacenterفصل ۱۸
ceph osd crush move site1 root=defaultفصل ۱۸
ceph osd crush move site2 root=defaultفصل ۱۸
ceph osd crush move stor-a1 datacenter=site1فصل ۱۸
ceph osd tree | grep -E "down|destroyed"فصل ۱۹
ceph osd pool set vm-fast target_size_ratio 0.4فصل ۱۹
ceph osd pool set archive bulk trueفصل ۱۹
ceph osd pool set archive pg_num_min 256فصل ۱۹
ceph osd pool get thresholdفصل ۱۹
ceph osd pool set noautoscaleفصل ۱۹
ceph osd pool unset noautoscaleفصل ۱۹
ceph osd df tree | sort -nk17 | tailفصل ۱۹
ceph osd set-group noout stor-b3فصل ۱۹
ceph osd unset-group noout stor-b3فصل ۱۹
ceph osd set norebalance && ceph osd unset norebalanceفصل ۱۹
ceph osd metadata 4 | jq '{bluestore_bdev_type, bluestore_bdev_rotational, bluestore_bdev_dev_node}'فصل ۲۳
ceph osd erasure-code-profile set ec42 plugin=isa technique=reed_sol_van k=4 m=2 crush-failure-domain=host Tentacle+فصل ۲۷
ceph osd pool create ecdata erasure ec42 Tentacle+فصل ۲۷
ceph osd pool set ecdata allow_ec_overwrites true Tentacle+فصل ۲۷
ceph osd pool set ecdata allow_ec_optimizations true Tentacle+فصل ۲۷
ceph osd pool get ecdata all | grep -E 'ec_optim|stripe' Tentacle+فصل ۲۷
ceph osd pool ls detail | grep -E 'erasure|stripe_width'فصل ۲۷
ceph osd getcrushmap -o cm.bin && crushtool -d cm.bin -o cm.txtفصل ۲۸
ceph osd map rbd rbd_data.10ab2c3d4e5f.0000000000000000فصل ۲۸
ceph osd pg-upmap-items 3.15 4 11فصل ۲۸
ceph osd rm-pg-upmap-items 3.15فصل ۲۸
ceph osd crush weight-set lsفصل ۲۸
ceph osd dump | grep -E '^pg_upmap(_items|_primary)?' | headفصل ۲۸
ceph osd crush rule create-replicated fast default host ssdفصل ۲۸
ceph osd crush class ls-osd ssdفصل ۲۸
ceph osd dump | grep -E 'allow_crimson|crimson' فقط mainفصل ۳۰
ceph osd numa-statusفصل ۳۳
ceph osd map rbd rbd_header.5f3a2b8c1d4eفصل ۳۴
ceph orch
ceph orch host add ceph-node2 192.168.56.12 --labels _adminفصل ۱
ceph orch host add ceph-node3 192.168.56.13فصل ۱
ceph orch host lsفصل ۱
ceph orch apply mon --placement="ceph-node1,ceph-node2,ceph-node3"فصل ۱
ceph orch apply mgr --placement="ceph-node1,ceph-node2"فصل ۱
ceph orch lsفصل ۱
ceph orch psفصل ۱
ceph orch device lsفصل ۱
ceph orch apply osd --all-available-devicesفصل ۱
ceph orch daemon add osd ceph-node1:/dev/sdbفصل ۱
ceph orch host add ceph-node4 192.168.56.14فصل ۱
ceph orch host label add ceph-node4 rgwفصل ۱
ceph orch device ls ceph-node4فصل ۱
ceph orch host label add ceph-node4 monفصل ۱
ceph orch apply -i mon.yamlفصل ۱
ceph orch apply rgw demo --placement="label:rgw" --port=8080فصل ۱
ceph orch apply rbd-mirror --placement="2 ceph-node2 ceph-node3"فصل ۲
ceph orch ps --daemon-type rbd-mirrorفصل ۲
ceph orch apply nvmeof nvmeof-pool group1 --placement="ceph-node2,ceph-node3" Squid+فصل ۲
ceph orch host label add ceph-node3 rgwفصل ۴
ceph orch apply rgw objstore --placement="label:rgw count-per-host:1" --port=8080فصل ۴
ceph orch ls rgwفصل ۴
ceph orch ps --daemon-type rgwفصل ۴
ceph orch apply -i ingress.yamlفصل ۴
ceph orch ls ingressفصل ۴
ceph orch restart rgw.objstoreفصل ۴
ceph orch apply rgw gold-eu1 --realm=gold --zone=eu-1 \فصل ۵
ceph orch apply rgw gold-eu2 --realm=gold --zone=eu-2 \فصل ۵
ceph orch restart rgw.gold-eu2فصل ۵
ceph orch restart rgw.gold-eu1فصل ۵
ceph orch ps --daemon-type mdsفصل ۶
ceph orch apply mds fs02 --placement="2 ceph-node3 ceph-node4"فصل ۶
ceph orch apply cephfs-mirror --placement="1 ceph-node2"فصل ۶
ceph orch ps --daemon-type osd --hostname ceph-node2فصل ۷
ceph orch ls --export > cluster-specs.yamlفصل ۷
ceph orch daemon restart osd.3فصل ۷
ceph orch daemon stop mds.fs01.ceph-node3.xyzabcفصل ۷
ceph orch daemon start mds.fs01.ceph-node3.xyzabcفصل ۷
ceph orch daemon redeploy mgr.ceph-node1.abcdefفصل ۷
ceph orch host add ceph-node5 192.168.10.15 --labels osdفصل ۷
ceph orch device ls ceph-node5 --refreshفصل ۷
ceph orch ls osdفصل ۷
ceph orch apply -i osd-spec.yamlفصل ۷
ceph orch host label add ceph-node5 monفصل ۷
ceph orch apply -i mon-spec.yamlفصل ۷
ceph orch osd rm 9فصل ۷
ceph orch osd rm statusفصل ۷
ceph orch host drain ceph-node5فصل ۷
ceph orch ps ceph-node5فصل ۷
ceph orch host rm ceph-node5فصل ۷
ceph orch osd rm 7 --replace --zapفصل ۷
ceph orch device ls ceph-node2 --refreshفصل ۷
ceph orch upgrade start --image quay.io/ceph/ceph:v20.2.5فصل ۷
ceph orch upgrade statusفصل ۷
ceph orch upgrade pauseفصل ۷
ceph orch upgrade resumeفصل ۷
ceph orch upgrade stopفصل ۷
ceph orch upgrade start --image quay.io/ceph/ceph:v21.2.0 --daemon-types mgr,mon Umbrella+فصل ۷
ceph orch host maintenance enter ceph-node2فصل ۷
ceph orch host maintenance exit ceph-node2فصل ۷
ceph orch apply mgmt-gateway --placement="label:mgmt" Tentacle+فصل ۹
ceph orch apply mgmt-gateway --virtual_ip 192.168.10.60 --enable-auth=true --placement="label:mgmt" Tentacle+فصل ۹
ceph orch ls mgmt-gateway Tentacle+فصل ۹
ceph orch daemon stop osd.12فصل ۱۰
ceph orch daemon stop osd.20فصل ۱۰
ceph orch daemon start osd.20فصل ۱۰
ceph orch apply -i cluster.yaml --dry-runفصل ۱۱
ceph orch apply -i cluster.yamlفصل ۱۱
ceph orch ls --export > cluster-current.yamlفصل ۱۱
ceph orch ls osd --exportفصل ۱۱
ceph orch rm rgw.objstoreفصل ۱۱
ceph orch device ls --wideفصل ۱۱
ceph orch ls --export > /srv/ceph-gitops/specs/cluster.yamlفصل ۱۱
ceph orch apply -i osd-hybrid.yaml --dry-runفصل ۱۱
ceph orch device ls --refresh --wideفصل ۱۱
ceph orch ls --export > /tmp/live-specs.yamlفصل ۱۱
ceph orch daemon stop osd.7فصل ۱۲
ceph orch daemon start osd.7فصل ۱۲
ceph orch restart osd.<service>فصل ۱۵
ceph orch apply rbd-mirror --placement=1فصل ۱۸
ceph orch upgrade start --ceph-version 20.2.5فصل ۱۹
ceph orch upgrade pause | resume | stopفصل ۱۹
ceph orch upgrade start --image quay.io/ceph/ceph:v20.2.5 --daemon-types mgr,mon --hosts mon1,mon2فصل ۱۹
ceph orch upgrade start --image quay.io/ceph/ceph:v20.2.5 --services rgw.s3main --limit 2فصل ۱۹
ceph orch osd rm 17 --replaceفصل ۱۹
ceph orch device ls stor-b3 --refreshفصل ۱۹
ceph orch device zap stor-b3 /dev/sdk --forceفصل ۱۹
ceph orch ps --daemon-type osd | grep osd.17فصل ۱۹
ceph orch host maintenance enter stor-b3فصل ۱۹
ceph orch host maintenance exit stor-b3فصل ۱۹
ceph orch host drain stor-b3فصل ۱۹
ceph orch host rm stor-b3فصل ۱۹
ceph orch apply node-exporterفصل ۲۰
ceph orch apply ceph-exporterفصل ۲۰
ceph orch apply alertmanagerفصل ۲۰
ceph orch apply prometheusفصل ۲۰
ceph orch apply grafanaفصل ۲۰
ceph orch ls --service-type prometheusفصل ۲۰
ceph orch apply mgmt-gateway --virtual_ip 192.0.2.50 --enable-auth=true --placement="label:mgmt" Tentacle+فصل ۲۰
ceph orch apply oauth2-proxy -i oauth2-proxy.yaml Tentacle+فصل ۲۰
ceph orch ls | grep -E "mgmt-gateway|oauth2" Tentacle+فصل ۲۰
ceph orch host ls --detailفصل ۲۱
ceph orch apply nvmeof POOL GROUP --placement="host01, host02" Tentacle+فصل ۳۱
ceph config
ceph config dumpفصل ۱
ceph config get osd osd_memory_targetفصل ۱
ceph config set osd osd_max_backfills 2فصل ۱
ceph config show osd.0 | headفصل ۱
ceph config help osd_memory_targetفصل ۱
ceph config set mon mon_allow_pool_delete trueفصل ۱
ceph config set mon mon_allow_pool_delete falseفصل ۱
ceph config generate-minimal-conf > /tmp/ceph.confفصل ۲
ceph config set client.rgw rgw_dns_name s3.example.comفصل ۴
ceph config set client.rgw rgw_keystone_url https://keystone.example.com:5000فصل ۴
ceph config set client.rgw rgw_keystone_api_version 3فصل ۴
ceph config set client.rgw rgw_keystone_admin_user rgwفصل ۴
ceph config set client.rgw rgw_keystone_admin_password_path /etc/ceph/keystone.passفصل ۴
ceph config set client.rgw rgw_keystone_admin_domain Defaultفصل ۴
ceph config set client.rgw rgw_keystone_admin_project serviceفصل ۴
ceph config set client.rgw rgw_keystone_accepted_roles "member,admin"فصل ۴
ceph config set client.rgw rgw_keystone_implicit_tenants trueفصل ۴
ceph config set client.rgw rgw_swift_account_in_url trueفصل ۴
ceph config set client.rgw rgw_s3_auth_use_keystone trueفصل ۴
ceph config set osd osd_memory_target 6442450944فصل ۷
ceph config set osd.12 osd_memory_target 8589934592فصل ۷
ceph config set osd/class:ssd osd_memory_target 8589934592فصل ۷
ceph config set client.rgw.objstore rgw_max_concurrent_requests 2048فصل ۷
ceph config show osd.3 | grep memory_targetفصل ۷
ceph config log 10فصل ۷
ceph config set mgr target_max_misplaced_ratio .03فصل ۷
ceph config get osd osd_mclock_profileفصل ۷
ceph config set osd osd_mclock_profile high_recovery_opsفصل ۷
ceph config set osd osd_mclock_profile balancedفصل ۷
ceph config set osd osd_scrub_begin_hour 1فصل ۷
ceph config set osd osd_scrub_end_hour 6فصل ۷
ceph config get mon ms_cluster_modeفصل ۸
ceph config get mon ms_service_modeفصل ۸
ceph config get mon ms_client_modeفصل ۸
ceph config set global ms_cluster_mode "secure"فصل ۸
ceph config set global ms_client_mode secureفصل ۸
ceph config set global ms_service_mode secureفصل ۸
ceph config set mgr mgr/prometheus/rbd_stats_pools "analytics-rbd"فصل ۹
ceph config set mgr mgr/pgwatch/interval 10فصل ۹
ceph config set global mgr_stats_period p ؛ صبر 2p+2 ثانیهفصل ۹
ceph config dump | grep osd_mclock_max_capacity_iopsفصل ۱۰
ceph config set mgr mgr/cephadm/container_image_prometheus registry.internal:5000/prometheus/prometheus:<tag>فصل ۱۱
ceph config set mgr mgr/cephadm/container_image_grafana registry.internal:5000/ceph/grafana:<tag>فصل ۱۱
ceph config set mgr mgr/cephadm/log_to_cluster_level debugفصل ۱۱
ceph config dump --format json | jq -S 'sort_by(.section, .name)' > /tmp/live-config.jsonفصل ۱۱
ceph config set global osd_pool_default_flag_ec_optimizations true Tentacle+فصل ۱۳
ceph config get client objecter_inflight_opsفصل ۱۴
ceph config get client objecter_inflight_op_bytesفصل ۱۴
ceph config set client.devapp rados_osd_op_timeout 30فصل ۱۴
ceph config get osd osd_class_dirفصل ۱۵
ceph config set client.rgw rgw_lifecycle_work_time "00:00-23:59"فصل ۱۶
ceph config get mon mon_stretch_cluster_recovery_ratioفصل ۱۸
ceph config set mgr mgr/balancer/upmap_max_deviation 1فصل ۱۹
ceph config dump | headفصل ۱۹
ceph config get osd.12 osd_memory_targetفصل ۱۹
ceph config show osd.12 | grep -E "osd_memory_target|osd_max_backfills"فصل ۱۹
ceph config set osd/class:hdd osd_memory_target 6Gفصل ۱۹
ceph config set osd.12 debug_osd 10/10فصل ۱۹
ceph config rm osd.12 debug_osdفصل ۱۹
ceph config log 20فصل ۱۹
ceph config reset 1234فصل ۱۹
ceph config help osd_op_queueفصل ۱۹
ceph config get client.ceph-exporter exporter_prio_limitفصل ۲۰
ceph config get mgr mgr_stats_periodفصل ۲۰
ceph config set osd osd_mclock_profile high_client_opsفصل ۲۱
ceph config show osd.0 | grep -E "osd_mclock_max_capacity_iops|osd_mclock_scheduler"فصل ۲۱
ceph config set osd/host:stor-a1 osd_memory_target 8Gفصل ۲۱
ceph config show osd.3 bluestore_throttle_cost_per_ioفصل ۲۱
ceph config set osd.3 debug_osd 20 ; ceph config set osd.3 debug_bluestore 20فصل ۲۲
ceph config rm osd.3 debug_osd ; ceph config rm osd.3 debug_bluestoreفصل ۲۲
ceph config get osd.4 bdev_ioringفصل ۲۳
ceph config get osd.4 osd_memory_targetفصل ۲۳
ceph config set osd bluestore_rocksdb_options_annex "max_background_jobs=6"فصل ۲۵
ceph config set osd crimson_prometheus_port_base 29180 فقط mainفصل ۳۰
ceph config set osd debug_osd 20/20 Squid+فصل ۳۲
ceph tell
ceph tell mds.cephfs:0 session ls | jq '.[] | {id, num_caps, "client": .client_metadata.hostname}'فصل ۶
ceph tell mds.cephfs:0 dump_ops_in_flight | jq '.ops[0]'فصل ۶
ceph tell mds.cephfs:0 perf dump mds_log | jq '.mds_log | {ev, seg, evtrm}'فصل ۶
ceph tell mds.cephfs:0 cache statusفصل ۶
ceph tell mds.fs01:0 session lsفصل ۶
ceph tell mds.fs01:0 perf dump mds_serverفصل ۶
ceph tell mds.fs01:0 dump_ops_in_flightفصل ۶
ceph tell mds.fs01:0 cache statusفصل ۶
ceph tell mds.fs01:0 client ls | grep -E '"id"|hostname'فصل ۶
ceph tell mds.fs01:0 client evict id=4305فصل ۶
ceph tell osd.* config set debug_osd 10/10فصل ۷
ceph tell osd.* config set debug_osd 1/5فصل ۷
ceph tell mon.ceph-node1 mon_statusفصل ۸
ceph tell mgr.$(ceph mgr stat | jq -r .active_name) config set debug_mgr 20فصل ۹
ceph tell osd.0 benchفصل ۱۰
ceph tell osd.0 bench 12288000 4096 4194304 100فصل ۱۰
ceph tell osd.3 dump_ops_in_flightفصل ۱۰
ceph tell osd.3 dump_historic_slow_opsفصل ۱۰
ceph tell osd.* versionفصل ۱۰
ceph tell mon.* sessions | jq lengthفصل ۱۰
ceph tell mds.fs01:0 perf dumpفصل ۱۰
ceph tell mds.fs01:0 perf dump mds_server | jq '.mds_server | {req: .handle_client_request}'فصل ۱۰
ceph tell osd.4 benchفصل ۱۰
ceph tell osd.4 bench 12288000 4096 4194304 100فصل ۱۰
ceph tell osd.3 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[0:5]'فصل ۱۰
ceph tell osd.3 heap statsفصل ۱۰
ceph tell osd.3 heap releaseفصل ۱۰
ceph tell osd.3 heap start_profilerفصل ۱۰
ceph tell osd.3 heap dumpفصل ۱۰
ceph tell osd.3 heap stop_profilerفصل ۱۰
ceph tell osd.3 bluefs statsفصل ۱۲
ceph tell osd.3 bluestore allocator score blockفصل ۱۲
ceph tell osd.3 bluestore allocator fragmentation histogram blockفصل ۱۲
ceph tell osd.4 config get osd_backoff_on_peeringفصل ۱۴
ceph tell osd.4 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[:6]'فصل ۲۳
ceph tell osd.4 dump_mempools | jq '.mempool.total'فصل ۲۳
ceph tell osd.4 compactفصل ۲۵
ceph tell osd.4 config get osd_recovery_max_active_hddفصل ۲۷
ceph tell osd.0 dump_metrics reactor_utilization فقط mainفصل ۳۰
ceph tell osd.0 dump_store_shards فقط mainفصل ۳۰
ceph tell osd.4 dump_scrubs Squid+فصل ۳۲
ceph tell osd.4 dump_scrub_reservations Squid+فصل ۳۲
ceph tell osd.4 dump_recovery_reservations Squid+فصل ۳۲
ceph tell osd.3 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[:5]'فصل ۳۳
ceph tell osd.3 perf dump | jq '."bluestore-pricache:meta"'فصل ۳۳
ceph fs
ceph fs volume create cephfs01فصل ۱
ceph fs volume create manila-fsفصل ۳
ceph fs volume create fs01 --placement="2 ceph-node3 ceph-node4"فصل ۶
ceph fs lsفصل ۶
ceph fs status fs01فصل ۶
ceph fs new fs02 cephfs.fs02.meta cephfs.fs02.dataفصل ۶
ceph fs set fs01 allow_standby_replay trueفصل ۶
ceph fs set fs01 standby_count_wanted 1فصل ۶
ceph fs set fs01 max_mds 2فصل ۶
ceph fs authorize fs01 client.webapp /web rwفصل ۶
ceph fs authorize fs01 client.analyst / r /reports rwفصل ۶
ceph fs subvolumegroup create fs01 smb Tentacle+فصل ۶
ceph fs subvolume create fs01 docs --group_name smb --size 107374182400 Tentacle+فصل ۶
ceph fs status ; ceph health detail | grep -E 'MDS_|CLIENT'فصل ۶
ceph fs subvolumegroup create fs01 teamsفصل ۶
ceph fs subvolume create fs01 data-eng --group_name teams --size 53687091200 --mode 770فصل ۶
ceph fs subvolume getpath fs01 data-eng --group_name teamsفصل ۶
ceph fs subvolume info fs01 data-eng --group_name teamsفصل ۶
ceph fs subvolume resize fs01 data-eng 107374182400 --group_name teams --no_shrinkفصل ۶
ceph fs subvolume ls fs01 --group_name teamsفصل ۶
ceph fs subvolume snapshot create fs01 data-eng snap-2026-11-15 --group_name teamsفصل ۶
ceph fs subvolume snapshot clone fs01 data-eng snap-2026-11-15 data-eng-test --group_name teamsفصل ۶
ceph fs clone status fs01 data-eng-testفصل ۶
ceph fs snap-schedule add /projects 1h --fs fs01فصل ۶
ceph fs snap-schedule retention add /projects h 24 --fs fs01فصل ۶
ceph fs snap-schedule retention add /projects d 7 --fs fs01فصل ۶
ceph fs snap-schedule status /projects --fs fs01فصل ۶
ceph fs add_data_pool fs01 cephfs.fs01.ecفصل ۶
ceph fs authorize fs01 client.mirror_remote / rwpsفصل ۶
ceph fs snapshot mirror peer_bootstrap create fs01 client.mirror_remote site-bفصل ۶
ceph fs snapshot mirror enable fs01فصل ۶
ceph fs snapshot mirror peer_bootstrap import fs01 <token>فصل ۶
ceph fs snapshot mirror add fs01 /projectsفصل ۶
ceph fs snapshot mirror peer_list fs01فصل ۶
ceph fs statusفصل ۶
ceph fs subvolumegroup create fs01 analyticsفصل ۹
ceph fs subvolume create fs01 shared --group_name analytics --size 2199023255552فصل ۹
ceph fs subvolume getpath fs01 shared --group_name analyticsفصل ۹
ceph pg
ceph pg ls-by-pool lab-pool | headفصل ۱
ceph pg force-recovery 2.1fفصل ۷
ceph pg force-backfill 2.1f 2.20فصل ۷
ceph pg cancel-force-recovery 2.1fفصل ۷
ceph pg deep-scrub 2.1fفصل ۷
ceph pg map 3.1fفصل ۸
ceph pg statفصل ۸
ceph pg dump_stuck inactiveفصل ۸
ceph pg dump_stuck uncleanفصل ۸
ceph pg ls degradedفصل ۸
ceph pg 3.1f query | jq '.recovery_state'فصل ۸
ceph pg ls-by-pool tenant-a-db | headفصل ۸
ceph pg 5.3a query | jq .stateفصل ۱۰
ceph pg ls-by-pool ecpool | grep -c 2147483647فصل ۱۳
ceph pg 5.1as2 query | jq '.info | {last_update, last_complete, log_tail}'فصل ۱۳
ceph pg 5.1a list_unfoundفصل ۱۳
ceph pg dump_stuck staleفصل ۱۷
ceph pg ls downفصل ۱۷
ceph pg 2.1f query | jq '.state, .recovery_state[0]'فصل ۱۷
ceph pg repair 2.1fفصل ۱۷
ceph pg 2.5 list_unfoundفصل ۱۷
ceph pg 2.5 query | jq '.recovery_state[] | select(.name|test("Active")) | .might_have_unfound'فصل ۱۷
ceph pg 2.5 mark_unfound_lost revertفصل ۱۷
ceph pg <pgid> query | jq '.info.stats.stat_sum.num_objects_degraded'فصل ۲۷
ceph pg 2.1f query | jq '.recovery_state' Squid+فصل ۳۲
ceph daemon
ceph daemon osd.4 bluestore allocator score blockفصل ۱
ceph daemon osd.3 config showفصل ۷
ceph daemon mon.a sessions | jq lengthفصل ۷
ceph daemon osd.4 dump_ops_in_flight | jq '.ops[] | select(.description|test("ECSub"))'فصل ۱۳
ceph daemon osd.4 dump_blocked_opsفصل ۱۴
ceph daemon client.admin.<pid>.<cookie> objecter_requestsفصل ۱۴
ceph daemon osd.12 statusفصل ۱۷
ceph daemon osd.7 dump_ops_in_flight | jq '.ops[] | {age, description, last: .type_data.events[-1].event}'فصل ۱۷
ceph daemon osd.7 dump_blocked_opsفصل ۱۷
ceph daemon osd.7 dump_historic_slow_ops | jq '.ops[0].type_data.events'فصل ۱۷
ceph daemon osd.7 dump_historic_ops_by_duration | jq '.ops[0:3][] | {duration, description}'فصل ۱۷
ceph daemon osd.3 counter schema | jq 'keys' | headفصل ۲۰
ceph daemon osd.3 counter dump | jq '.osd[0].counters | {op_w, op_r}'فصل ۲۰
ceph daemon osd.3 perf dump osd | jq '.osd.op_w_latency'فصل ۲۰
ceph daemon osd.3 perf schema | jq '.osd.op_r_latency'فصل ۲۰
ceph daemon osd.3 perf dump | jq '.osd.op_r_latency'فصل ۲۰
ceph daemon osd.3 counter dump | jq 'keys' | headفصل ۲۰
ceph daemon osd.3 dump_mempools | jq '.mempool.by_pool | to_entries | sort_by(-.value.bytes) | .[0:5]'فصل ۲۱
ceph daemon osd.3 perf dump | jq '.prioritycache'فصل ۲۱
ceph daemon osd.3 dump_mempools | jq '.mempool.total'فصل ۲۱
ceph daemon osd.4 bluefs statsفصل ۲۴
ceph daemon osd.4 bluestore allocator fragmentation histogram blockفصل ۲۴
ceph daemon osd.4 perf dump bluestore | jq '.bluestore | {onodes, onode_hits, onode_misses}'فصل ۲۴
ceph daemon osd.4 messenger dumpفصل ۲۶
ceph daemon osd.12 dump_ops_in_flight | jq '.ops[] | {description, age, flag_point}'فصل ۳۴
ceph dashboard
ceph dashboard create-self-signed-certفصل ۹
ceph dashboard set-ssl-certificate -i dashboard.crtفصل ۹
ceph dashboard set-ssl-certificate-key -i dashboard.keyفصل ۹
ceph dashboard ac-user-create admin2 -i /root/dash-admin.pw administratorفصل ۹
ceph dashboard ac-user-show admin2فصل ۹
ceph dashboard ac-role-showفصل ۹
ceph dashboard ac-role-create storage-ops "Ops team: OSD and pool only"فصل ۹
ceph dashboard ac-role-add-scope-perms storage-ops osd read updateفصل ۹
ceph dashboard ac-role-add-scope-perms storage-ops pool read create updateفصل ۹
ceph dashboard ac-user-create --pwd_update_required alice -i /root/alice.pw storage-opsفصل ۹
ceph dashboard ac-user-set-roles alice storage-ops read-onlyفصل ۹
ceph dashboard ac-user-disable aliceفصل ۹
ceph dashboard set-pwd-policy-enabled trueفصل ۹
ceph dashboard set-pwd-policy-min-length 12فصل ۹
ceph dashboard set-pwd-policy-check-complexity-enabled trueفصل ۹
ceph dashboard motd set warning 2h "Maintenance on ceph-node3 in progress"فصل ۹
ceph dashboard motd clearفصل ۹
ceph dashboard sso setup saml2 https://ceph-dash.example.internal \فصل ۹
ceph dashboard sso statusفصل ۹
ceph dashboard sso enable saml2فصل ۹
ceph dashboard feature statusفصل ۹
ceph dashboard feature disable iscsi mirroringفصل ۹
ceph dashboard feature enable mirroringفصل ۹
ceph dashboard get-prometheus-api-hostفصل ۲۰
ceph auth
ceph auth get-or-create client.rbd-lab \فصل ۲
ceph auth get client.rbd-labفصل ۲
ceph auth get-or-create client.glance \فصل ۳
ceph auth get-or-create client.cinder \فصل ۳
ceph auth get-or-create client.cinder-backup \فصل ۳
ceph auth get client.glance | ssh glance-host sudo tee /etc/ceph/ceph.client.glance.keyringفصل ۳
ceph auth get client.cinder | ssh cinder-host sudo tee /etc/ceph/ceph.client.cinder.keyringفصل ۳
ceph auth get client.cinder | ssh compute1 sudo tee /etc/ceph/ceph.client.cinder.keyringفصل ۳
ceph auth get client.cinder-backup | ssh backup-host sudo tee /etc/ceph/ceph.client.cinder-backup.keyringفصل ۳
ceph auth get-or-create client.manila mon 'allow r' mgr 'allow rw'فصل ۳
ceph auth get client.webappفصل ۶
ceph auth get client.webapp -o /etc/ceph/ceph.client.webapp.keyringفصل ۶
ceph auth lsفصل ۸
ceph auth get client.adminفصل ۸
ceph auth get-or-create client.vmhost mon 'profile rbd' osd 'profile rbd pool=vms' mgr 'profile rbd pool=vms'فصل ۸
ceph auth get-or-create client.monitor mon 'allow r' mgr 'allow r'فصل ۸
ceph auth get-or-create client.tenant1 mon 'allow r' osd 'allow rw pool=shared namespace=tenant1'فصل ۸
ceph auth caps client.vmhost mon 'profile rbd' osd 'profile rbd pool=vms, profile rbd-read-only pool=images'فصل ۸
ceph auth rm client.old-appفصل ۸
ceph auth get-or-create client.devapp mon 'allow r' osd 'allow rwx pool=devpool' \فصل ۱۴
ceph auth caps client.devapp mon 'allow r' \فصل ۱۵
ceph auth caps client.counter mon 'allow r' \فصل ۱۵
ceph mgr
ceph mgr module enable rgwفصل ۵
ceph mgr module enable nfsفصل ۶
ceph mgr module enable smb Tentacle+فصل ۶
ceph mgr module enable snap_scheduleفصل ۶
ceph mgr module enable mirroringفصل ۶
ceph mgr module ls | grep -i dashboardفصل ۹
ceph mgr module enable dashboardفصل ۹
ceph mgr servicesفصل ۹
ceph mgr module disable dashboard && ceph mgr module enable dashboardفصل ۹
ceph mgr module disable prometheus && ceph mgr module enable prometheusفصل ۹
ceph mgr module ls | jq '.enabled_modules'فصل ۹
ceph mgr module enable pgwatch --forceفصل ۹
ceph mgr failفصل ۹
ceph mgr statفصل ۹
ceph mgr module enable prometheusفصل ۲۰
ceph mon
ceph mon statفصل ۷
ceph mon dump | grep election_strategyفصل ۷
ceph mon set election_strategy connectivityفصل ۷
ceph mon add disallowed_leader eفصل ۷
ceph mon dumpفصل ۸
ceph mon dump | grep -E "v2:|v1:"فصل ۸
ceph mon dump | grep -E 'tiebreaker|stretch|location'فصل ۱۸
ceph mon set_location a datacenter=site1فصل ۱۸
ceph mon set_location b datacenter=site1فصل ۱۸
ceph mon set_location c datacenter=site2فصل ۱۸
ceph mon set_location d datacenter=site2فصل ۱۸
ceph mon set_location e datacenter=site3فصل ۱۸
ceph mon enable_stretch_mode e stretch_rule datacenterفصل ۱۸
ceph health
ceph health detail | grep -A3 LARGE_OMAPفصل ۴
ceph health detail | grep -i mdsفصل ۶
ceph health detailفصل ۷
ceph health detail | grep -i scrubفصل ۷
ceph health detail | grep -i cephadmفصل ۱۰
ceph health mute CEPHADM_STRAY_DAEMON 1hفصل ۱۱
ceph health detail | grep -i spilloverفصل ۱۲
ceph health detail --format json-pretty | jq '.checks | keys'فصل ۱۷
ceph health detail | grep -A3 SLOW_OPSفصل ۱۷
ceph health detail | grep -E "inconsistent|scrub errors"فصل ۱۷
ceph balancer
ceph balancer statusفصل ۷
ceph balancer mode upmapفصل ۷
ceph balancer onفصل ۷
ceph balancer evalفصل ۱۹
ceph balancer status && ceph balancer evalفصل ۲۸
ceph nfs
ceph nfs cluster create nfs01 "2 ceph-node2 ceph-node3" --ingress --virtual_ip 192.168.10.50/24فصل ۶
ceph nfs cluster info nfs01فصل ۶
ceph nfs export create cephfs --cluster-id nfs01 --pseudo-path /shared --fsname fs01 --path /webفصل ۶
ceph nfs export ls nfs01 --detailedفصل ۶
ceph telemetry
ceph telemetry previewفصل ۹
ceph telemetry showفصل ۹
ceph telemetry on --license sharing-1-0فصل ۹
ceph telemetry offفصل ۹
ceph df
ceph dfفصل ۱
ceph df detailفصل ۱
ceph df detail | grep -E 'POOL|rgw-data'فصل ۱۲
ceph rgw
ceph rgw realm bootstrap -i primary.yamlفصل ۵
ceph rgw realm tokensفصل ۵
ceph rgw zone create -i secondary.yamlفصل ۵
ceph smb
ceph smb cluster create smb01 user --define-user-pass=alice%S3cret-Ch@ngeMe --placement="1 ceph-node2" Tentacle+فصل ۶
ceph smb share create smb01 docs fs01 / --subvolume=smb/docs Tentacle+فصل ۶
ceph smb show Tentacle+فصل ۶
ceph quorum_status
ceph quorum_status -f json-pretty | jq '.quorum_names'فصل ۷
ceph quorum_status | jq '.quorum_leader_name, .quorum_names'فصل ۷
ceph quorum_status -f json-prettyفصل ۸
ceph log
ceph log last 20 info clusterفصل ۹
ceph log last cephadm 50فصل ۱۱
ceph log last 100فصل ۱۷
ceph nvmeof
ceph nvmeof subsystem add --nqn nqn.2016-06.io.spdk:cnode1 Tentacle+فصل ۳۱
ceph nvmeof listener add --nqn nqn.2016-06.io.spdk:cnode1 --host-name host01 --traddr 10.0.0.11 --trsvcid 4420 Tentacle+فصل ۳۱
ceph nvmeof namespace add --nqn nqn.2016-06.io.spdk:cnode1 --rbd-pool rbd --rbd-image-name vol1 Tentacle+فصل ۳۱
ceph device
ceph device ls-by-daemon osd.7فصل ۷
ceph device light on <devid> identفصل ۷
ceph crash
ceph crash ls-newفصل ۱۷
ceph crash ls | grep osd.12فصل ۱۷
ceph -v
ceph -vفصل ۱
ceph status
ceph statusفصل ۱
ceph -s
ceph -sفصل ۱
ceph --id
ceph --id rbd-lab -sفصل ۲
ceph versions
ceph versionsفصل ۷
ceph -W
ceph -W cephadmفصل ۷
ceph features
ceph featuresفصل ۸
ceph pgwatch
ceph pgwatch statusفصل ۹
ceph cephadm
ceph cephadm check-host ceph-node2فصل ۱۱
ceph nvme-gw
ceph nvme-gw show POOL GROUP Tentacle+فصل ۳۱

rados · کار مستقیم با اشیای RADOS#

rados -p
rados -p lab-pool put hello /tmp/hello.txtفصل ۱
rados -p lab-pool lsفصل ۱
rados -p lab-pool stat helloفصل ۱
rados -p rbd listomapvals rbd_directory | headفصل ۲
rados -p rbd listomapkeys rbd_header.$(rados -p rbd get rbd_id.vm1 - | strings)فصل ۲
rados -p rbd ls | grep -c "^rbd_data.<id>"فصل ۲
rados -p benchpool cleanupفصل ۱۰
rados -p hot-storage cache-flush-evict-allفصل ۱۶
rados -p hot-storage ls | headفصل ۱۶
rados -p vmpool ls | grep '^journal_data\.' | sort -t. -k4 -n | tail -4فصل ۱۸
rados -p test put obj1 /etc/hostsفصل ۲۲
rados -p rbd getxattr rbd_header.5f3a2b8c1d4e _ > /tmp/oi.binفصل ۳۴
rados -p rbd stat rbd_header.5f3a2b8c1d4eفصل ۳۴
rados -p rbd listwatchers rbd_header.5f3a2b8c1d4eفصل ۳۶
rados -p rbd notify rbd_header.5f3a2b8c1d4e helloفصل ۳۶
rados -p rbd listsnaps rbd_data.5f3a.0000000000000000فصل ۳۶
rados -p rbd listomapkeys rbd_header.5f3a2b8c1d4eفصل ۳۷
rados -p rbd getomapval rbd_header.5f3a2b8c1d4e object_prefixفصل ۳۷
rados -p default.rgw.meta -N users.keys ls | head -3فصل ۴۰
rados bench
rados bench -p benchpool 60 write -b 4M -t 16 --no-cleanupفصل ۱۰
rados bench -p benchpool 60 seq -t 16فصل ۱۰
rados bench -p benchpool 60 rand -t 16فصل ۱۰
rados bench -p benchpool 60 write -b 4K -t 64 --no-cleanupفصل ۱۰
rados bench -p bench 60 write -t 32 -b 4M --no-cleanupفصل ۱۰
rados bench -p bench 60 rand -t 32 ; rados -p bench cleanupفصل ۱۰
rados bench -t T: همیشه دقیقاً T عملیات در پرواز ← هر completion یک op تازه می‌فرستدفصل ۱۰
rados list-inconsistent-pg
rados list-inconsistent-pg rbdفصل ۱۷
rados list-inconsistent-obj
rados list-inconsistent-obj 2.1f --format=json-pretty Squid+فصل ۳۲

rbd · مدیریت تصاویر RBD#

rbd mirror
rbd mirror pool enable --site-name site-a vms imageفصل ۲
rbd mirror pool enable --site-name site-b vms imageفصل ۲
rbd mirror pool peer bootstrap create --site-name site-a vms > /root/vms-tokenفصل ۲
rbd mirror pool peer bootstrap import --site-name site-b --direction rx-only vms /root/vms-tokenفصل ۲
rbd mirror pool info vmsفصل ۲
rbd mirror image enable vms/db01 snapshotفصل ۲
rbd mirror snapshot schedule add --pool vms 15mفصل ۲
rbd mirror snapshot schedule ls --pool vms --recursiveفصل ۲
rbd mirror image enable vms/app01 journalفصل ۲
rbd mirror pool status vms --verboseفصل ۲
rbd mirror image status vms/db01فصل ۲
rbd mirror pool peer bootstrap import --site-name site-b --direction rx-tx vms /root/vms-tokenفصل ۲
rbd mirror pool enable --site-name site-a vmpool imageفصل ۱۸
rbd mirror pool peer bootstrap create --site-name site-a vmpool > /tmp/tokenفصل ۱۸
rbd mirror pool enable --site-name site-b vmpool imageفصل ۱۸
rbd mirror pool peer bootstrap import --site-name site-b --direction rx-tx vmpool /tmp/tokenفصل ۱۸
rbd mirror image enable vmpool/db01 snapshotفصل ۱۸
rbd mirror snapshot schedule add --pool vmpool 15mفصل ۱۸
rbd mirror snapshot schedule status --pool vmpoolفصل ۱۸
rbd mirror pool status vmpool --verboseفصل ۱۸
rbd --cluster
rbd --cluster site-a mirror image demote vms/db01فصل ۲
rbd --cluster site-b mirror image status vms/db01فصل ۲
rbd --cluster site-b mirror image promote vms/db01فصل ۲
rbd --cluster site-b mirror image promote --force vms/db01فصل ۲
rbd --cluster site-a mirror image resync vms/db01فصل ۲
rbd --cluster site-a mirror image status vms/db01فصل ۲
rbd --cluster site-b mirror image demote vms/db01فصل ۲
rbd --cluster site-a mirror image promote vms/db01فصل ۲
rbd --cluster site-a mirror image demote vmpool/db01فصل ۱۸
rbd --cluster site-b mirror image status vmpool/db01فصل ۱۸
rbd --cluster site-b mirror image promote vmpool/db01فصل ۱۸
rbd --cluster site-b mirror image promote --force vmpool/db01فصل ۱۸
rbd --cluster site-a mirror image resync vmpool/db01فصل ۱۸
rbd create
rbd create rbd/disk01 --size 10Gفصل ۱
rbd create rbd/golden-os --size 20Gفصل ۲
rbd create vms/db01 --size 50Gفصل ۲
rbd create vms/app01 --size 20G --image-feature exclusive-lock,journalingفصل ۲
rbd create analytics-rbd/warehouse --size 500Gفصل ۹
rbd create rbd/benchimg --size 100Gفصل ۱۰
rbd create rbd/vm01 --size 200G --data-pool ecpoolفصل ۱۳
rbd create --size 1T --data-pool archive vm-fast/backup01فصل ۱۶
rbd create rbd/vm01 --size 10G --stripe-unit 64K --stripe-count 4 --data-pool rbd-ecفصل ۳۷
rbd info
rbd info rbd/disk01فصل ۱
rbd info rbd/vm01 | grep parentفصل ۲
rbd info rbd/vm02 | grep parentفصل ۲
rbd info rbd/vm1 | grep -E 'block_name_prefix|order|features'فصل ۲
rbd info volumes/volume-aaa | grep -A3 parentفصل ۳
rbd info volumes/volume-<uuid> --id cinder | grep parentفصل ۳
rbd info rbd/vm01 | grep data_poolفصل ۱۳
rbd info rbd/vm01فصل ۳۷
rbd snap
rbd snap create rbd/disk01@before-upgradeفصل ۲
rbd snap ls rbd/disk01فصل ۲
rbd snap rollback rbd/disk01@before-upgradeفصل ۲
rbd snap rm rbd/disk01@before-upgradeفصل ۲
rbd snap purge rbd/disk01فصل ۲
rbd snap create rbd/golden-os@v1فصل ۲
rbd snap protect rbd/golden-os@v1فصل ۲
rbd snap unprotect rbd/golden-os@v1فصل ۲
rbd --id
rbd --id rbd-lab ls rbdفصل ۲
rbd --id rbd-lab create rbd/disk01 --size 10Gفصل ۲
rbd --id rbd-lab ls -l rbdفصل ۲
rbd --id rbd-lab info rbd/disk01فصل ۲
rbd --id rbd-lab resize rbd/disk01 --size 20Gفصل ۲
rbd journal
rbd journal info --pool vmpool --image db01فصل ۱۸
rbd journal status --pool vmpool --image db01فصل ۱۸
rbd journal inspect --pool vmpool --image db01 --verbose | headفصل ۱۸
rbd journal info --pool rbd --image vm01فصل ۳۹
rbd journal status --pool rbd --image vm01فصل ۳۹
rbd trash
rbd trash mv rbd/vm01 --expires-at "2026-12-01"فصل ۲
rbd trash ls rbdفصل ۲
rbd trash restore rbd/<image-id>فصل ۲
rbd trash purge rbdفصل ۲
rbd pool
rbd pool init rbdفصل ۱
rbd pool init $pفصل ۳
rbd pool init analytics-rbdفصل ۹
rbd du
rbd du rbd/disk01فصل ۲
rbd du rbd/vm1فصل ۲
rbd du volumes/volume-aaaفصل ۳
rbd migration
rbd migration prepare rbd/disk01 fast-nvme/disk01فصل ۲
rbd migration execute fast-nvme/disk01فصل ۲
rbd migration commit fast-nvme/disk01فصل ۲
rbd config
rbd config image set rbd/vm01 rbd_qos_iops_limit 2000فصل ۲
rbd config pool set rbd rbd_qos_bps_limit 209715200فصل ۲
rbd config image ls rbd/vm01 | grep qosفصل ۲
rbd bench
rbd bench --io-type write --io-size 4K --io-threads 32 --io-total 10G --io-pattern rand rbd/benchimgفصل ۱۰
rbd bench --io-type read --io-size 4K --io-threads 32 --io-total 10G --io-pattern rand rbd/benchimgفصل ۱۰
rbd bench --io-type readwrite --rw-mix-read 70 --io-size 16K --io-pattern rand rbd/benchimgفصل ۱۰
rbd clone
rbd clone rbd/golden-os@v1 rbd/vm01فصل ۲
rbd clone rbd/golden-os@v1 rbd/vm02فصل ۲
rbd children
rbd children rbd/golden-os@v1فصل ۲
rbd children images/ubuntu@snapفصل ۳
rbd flatten
rbd flatten rbd/vm02فصل ۲
rbd flatten volumes/volume-aaaفصل ۳
rbd status
rbd status rbd/vm1فصل ۲
rbd status rbd/vm01فصل ۳۸
rbd lock
rbd lock ls rbd/vm1فصل ۲
rbd lock ls rbd/vm01فصل ۳۸
rbd -p
rbd -p images ls -l --id glanceفصل ۳
rbd -p volumes ls -l --id cinderفصل ۳
rbd cache
rbd cache = trueفصل ۳
rbd cache writethrough until flush = trueفصل ۳
rbd device
rbd device listفصل ۲
rbd resize
rbd resize rbd/disk01 --size 5G --allow-shrinkفصل ۲
rbd feature
rbd feature disable rbd/vm1 fast-diff object-mapفصل ۲
rbd encryption
rbd encryption format rbd/secure01 luks2 /root/passphrase.binفصل ۲
rbd concurrent
rbd concurrent management ops = 20فصل ۳
rbd map
rbd map rbd/img1 -o ms_mode=prefer-crc,queue_depth=256,alloc_size=65536فصل ۲۹
rbd showmapped
rbd showmappedفصل ۲۹
rbd showmapped;
rbd showmapped; cat /sys/bus/rbd/devices/0/featuresفصل ۲۹

radosgw-admin · مدیریت RGW#

radosgw-admin user
radosgw-admin user create --uid=alice --display-name="Alice" --email=alice@example.comفصل ۴
radosgw-admin user info --uid=aliceفصل ۴
radosgw-admin user listفصل ۴
radosgw-admin user suspend --uid=aliceفصل ۴
radosgw-admin user enable --uid=aliceفصل ۴
radosgw-admin user create --tenant=acme --uid=bob --display-name="Bob at ACME"فصل ۴
radosgw-admin user create --uid=acme-root --display-name="ACME root" \ Squid+فصل ۴
radosgw-admin user create --uid=sync-user --display-name="Multisite sync" --systemفصل ۵
radosgw-admin user create --uid=tester --display-name="Multisite tester"فصل ۵
radosgw-admin user info --uid=testerفصل ۵
radosgw-admin user create --uid=analytics --display-name="Analytics team"فصل ۹
radosgw-admin user create --uid=bench --display-name="Benchmark user"فصل ۱۰
radosgw-admin sync
radosgw-admin sync statusفصل ۵
radosgw-admin sync status --rgw-zone=eu-2فصل ۵
radosgw-admin sync error list | head -50فصل ۵
radosgw-admin sync error trimفصل ۵
radosgw-admin sync error list | jq '.[0].entries[:5]'فصل ۵
radosgw-admin sync group create --group-id=global --status=allowedفصل ۵
radosgw-admin sync group flow create --group-id=global --flow-id=eu-mesh \فصل ۵
radosgw-admin sync group pipe create --group-id=global --pipe-id=all \فصل ۵
radosgw-admin sync group create --bucket=critical-data --group-id=critical --status=enabledفصل ۵
radosgw-admin sync group pipe create --bucket=critical-data --group-id=critical \فصل ۵
radosgw-admin sync info --bucket=critical-dataفصل ۵
radosgw-admin sync status | grep featuresفصل ۵
radosgw-admin bucket
radosgw-admin bucket stats --bucket=photos | jq '.num_shards, .usage'فصل ۴
radosgw-admin bucket limit check | jq '.[].buckets[] | select(.fill_status!="OK")'فصل ۴
radosgw-admin bucket check --bucket=photos --check-objectsفصل ۴
radosgw-admin bucket listفصل ۴
radosgw-admin bucket stats --bucket=photosفصل ۴
radosgw-admin bucket limit checkفصل ۴
radosgw-admin bucket check --bucket=photos --check-objects --fixفصل ۴
radosgw-admin bucket sync status --bucket=photosفصل ۵
radosgw-admin bucket sync status --bucket=ms-testفصل ۵
radosgw-admin bucket sync status --bucket logs --source-zone zone-aفصل ۴۲
radosgw-admin quota
radosgw-admin quota set --quota-scope=user --uid=alice --max-size=500G --max-objects=10000000فصل ۴
radosgw-admin quota enable --quota-scope=user --uid=aliceفصل ۴
radosgw-admin quota set --quota-scope=bucket --uid=alice --max-objects=5000000فصل ۴
radosgw-admin quota enable --quota-scope=bucket --uid=aliceفصل ۴
radosgw-admin quota set --quota-scope=account --account-id=<account-id> --max-size=10T Squid+فصل ۴
radosgw-admin quota enable --quota-scope=account --account-id=<account-id> Squid+فصل ۴
radosgw-admin quota set --quota-scope=user --uid=analytics --max-size=10Tفصل ۹
radosgw-admin quota enable --quota-scope=user --uid=analyticsفصل ۹
radosgw-admin zone
radosgw-admin zone placement add --rgw-zone default \فصل ۴
radosgw-admin zone create --rgw-zonegroup=europe --rgw-zone=eu-1 \فصل ۵
radosgw-admin zone modify --rgw-zone=eu-1 --access-key=<AK> --secret=<SK>فصل ۵
radosgw-admin zone create --rgw-zonegroup=europe --rgw-zone=eu-2 \فصل ۵
radosgw-admin zone modify --rgw-zone=eu-2 --master --defaultفصل ۵
radosgw-admin zone modify --rgw-zone=eu-1 --master --defaultفصل ۵
radosgw-admin zone create --rgw-zonegroup=europe --rgw-zone=eu-archive \فصل ۵
radosgw-admin period
radosgw-admin period update --commitفصل ۴
radosgw-admin period pull --url=http://rgw-eu1.example.com:80 --access-key=<AK> --secret=<SK>فصل ۵
radosgw-admin period get | jq '.period_map.zonegroups[].zones[].name'فصل ۵
radosgw-admin period pull --url=http://rgw-eu2.example.com:80 --access-key=<AK> --secret=<SK>فصل ۵
radosgw-admin period get-currentفصل ۴۲
radosgw-admin period get | jq '{id, epoch, realm_epoch, predecessor_uuid, master_zone}'فصل ۴۲
radosgw-admin ratelimit
radosgw-admin ratelimit set --ratelimit-scope=user --uid=alice --max-read-ops=1000 --max-write-ops=200فصل ۴
radosgw-admin ratelimit enable --ratelimit-scope=user --uid=aliceفصل ۴
radosgw-admin ratelimit set --ratelimit-scope=user --uid=alice --max-read-ops=600 --max-write-bytes=104857600فصل ۴۱
radosgw-admin ratelimit get --ratelimit-scope=user --uid=aliceفصل ۴۱
radosgw-admin lc
radosgw-admin lc listفصل ۴
radosgw-admin lc process --bucket logs-bucketفصل ۴
radosgw-admin lc get --bucket photosفصل ۱۶
radosgw-admin lc process --bucket photosفصل ۱۶
radosgw-admin realm
radosgw-admin realm create --rgw-realm=gold --defaultفصل ۵
radosgw-admin realm pull --url=http://rgw-eu1.example.com:80 \فصل ۵
radosgw-admin realm default --rgw-realm=goldفصل ۵
radosgw-admin realm pull --url=http://rgw-eu2.example.com:80 --access-key=<AK> --secret=<SK>فصل ۵
radosgw-admin reshard
radosgw-admin reshard list ; radosgw-admin reshard status --bucket=photosفصل ۴
radosgw-admin reshard listفصل ۴
radosgw-admin reshard add --bucket=photos --num-shards=101فصل ۴
radosgw-admin gc
radosgw-admin gc list --include-all | jq lengthفصل ۴
radosgw-admin gc list --include-all | headفصل ۴
radosgw-admin gc processفصل ۴
radosgw-admin zonegroup
radosgw-admin zonegroup placement add --rgw-zonegroup default \فصل ۴
radosgw-admin zonegroup create --rgw-zonegroup=europe \فصل ۵
radosgw-admin zonegroup modify --rgw-zonegroup=europe --enable-feature=reshardingفصل ۵
radosgw-admin metadata
radosgw-admin metadata sync statusفصل ۵
radosgw-admin metadata get bucket:photosفصل ۴۰
radosgw-admin metadata get bucket.instance:photos:a1b2c3d4-0000-4000-8000-1234567890ab.4123.7فصل ۴۰
radosgw-admin key
radosgw-admin key create --uid=alice --key-type=s3 --gen-access-key --gen-secretفصل ۴
radosgw-admin key create --subuser=alice:swift --key-type=swift --gen-secretفصل ۴
radosgw-admin data
radosgw-admin data sync status --source-zone=eu-1فصل ۵
radosgw-admin data sync status --source-zone=us-east --shard-id=7فصل ۵
radosgw-admin subuser
radosgw-admin subuser create --uid=alice --subuser=alice:swift --access=fullفصل ۴
radosgw-admin account
radosgw-admin account create --account-name=acme --email=ops@acme.example Squid+فصل ۴
radosgw-admin object
radosgw-admin object stat --bucket=photos --object=a.jpg | jq '.manifest'فصل ۴
radosgw-admin usage
radosgw-admin usage show --uid=alice --start-date=2026-11-01فصل ۴
radosgw-admin datalog
radosgw-admin datalog status ; radosgw-admin mdlog statusفصل ۵
radosgw-admin bilog
radosgw-admin bilog list --bucket=photos --max-entries=5فصل ۵

cephadm · استقرار و مدیریت با cephadm#

cephadm shell
cephadm shellفصل ۱
cephadm shell -- ceph -sفصل ۱
cephadm shell --name osd.3 -- ceph daemon osd.3 helpفصل ۱۰
cephadm shell --name osd.3 -- ceph daemon osd.3 dump_ops_in_flightفصل ۱۰
cephadm shell --name osd.3 -- ceph daemon osd.3 dump_historic_opsفصل ۱۰
cephadm shell --name osd.3 -- ceph daemon osd.3 perf dump bluestoreفصل ۱۰
cephadm shell --name osd.3 -- ceph daemon osd.3 config diffفصل ۱۰
cephadm shell --name osd.12فصل ۱۰
cephadm shell --name osd.7فصل ۱۲
cephadm bootstrap
cephadm bootstrap \فصل ۱
cephadm bootstrap --mon-ip 192.168.10.11 --single-host-defaultsفصل ۱۱
cephadm bootstrap --mon-ip 192.168.10.11 --cluster-network 192.168.20.0/24 --apply-spec cluster.yamlفصل ۱۱
cephadm logs
cephadm logs --name osd.3فصل ۷
cephadm logs --name osd.12 -- -n 200فصل ۱۷
cephadm install
cephadm install ceph-commonفصل ۱
cephadm check-host
cephadm check-hostفصل ۱۰
cephadm ls
cephadm lsفصل ۱۱
cephadm adopt
cephadm adopt --style legacy --name mon.ceph-node1فصل ۱۱
cephadm --image
cephadm --image registry.internal:5000/ceph/ceph:v20.2.5 bootstrap --mon-ip 192.168.10.11 \فصل ۱۱

ceph-volume · آماده‌سازی دیسک و OSD#

ceph-volume lvm
ceph-volume lvm new-db --osd-id 7 --osd-fsid <fsid> --target vg_nvme/db_osd7فصل ۱۲
ceph-volume lvm migrate --osd-id 7 --osd-fsid <fsid> --from data --target vg_nvme/db_osd7فصل ۱۲

ceph-bluestore-tool · بازرسی و تعمیر BlueStore#

ceph-bluestore-tool show-label
ceph-bluestore-tool show-label --dev /dev/sdbفصل ۱
ceph-bluestore-tool show-label --dev /dev/ceph-vg/osd-block-xxxxفصل ۱۲
ceph-bluestore-tool show-label --dev /dev/ceph-xxx/osd-block-yyyفصل ۲۴
ceph-bluestore-tool bluefs-bdev-sizes
ceph-bluestore-tool bluefs-bdev-sizes --path /var/lib/ceph/osd/ceph-7فصل ۱۲
ceph-bluestore-tool bluefs-bdev-sizes --path /var/lib/ceph/osd/ceph-4فصل ۲۴
ceph-bluestore-tool reshard
ceph-bluestore-tool reshard --path /var/lib/ceph/osd/ceph-7 --sharding "<spec>"فصل ۱۲
ceph-bluestore-tool reshard --path /var/lib/ceph/osd/ceph-4 \فصل ۲۵
ceph-bluestore-tool fsck
ceph-bluestore-tool fsck --path /var/lib/ceph/osd/ceph-7 --deepفصل ۱۲
ceph-bluestore-tool bluefs-bdev-expand
ceph-bluestore-tool bluefs-bdev-expand --path /var/lib/ceph/osd/ceph-7فصل ۱۲
ceph-bluestore-tool bluefs-log-dump
ceph-bluestore-tool bluefs-log-dump --path /var/lib/ceph/osd/ceph-4فصل ۲۴
ceph-bluestore-tool bluefs-export
ceph-bluestore-tool bluefs-export --path ... --out-dir /tmp/bluefsفصل ۲۴
ceph-bluestore-tool free-score
ceph-bluestore-tool free-score --path /var/lib/ceph/osd/ceph-4فصل ۲۴
ceph-bluestore-tool show-sharding
ceph-bluestore-tool show-sharding --path /var/lib/ceph/osd/ceph-4فصل ۲۵

ceph-objectstore-tool · بازرسی آفلاین PG و اشیا#

ceph-objectstore-tool --data-path
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-4 --op list --pgid 3.1a | headفصل ۱
ceph-objectstore-tool --data-path ... --pgid 3.1a '<obj-json>' dump | jq '.onode'فصل ۱
ceph-objectstore-tool --data-path ... --op log --pgid 3.1a | jq '.pg_log_t.log[-1]'فصل ۱
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --op list-pgsفصل ۱۰
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --pgid 5.3a --op infoفصل ۱۰
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --pgid 2.5 --op infoفصل ۱۸
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-12 --pgid 2.5 --op export --file /backup/2.5.exportفصل ۱۸
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-30 --op import --file /backup/2.5.exportفصل ۱۸

ceph-kvstore-tool · بازرسی RocksDB#

ceph-kvstore-tool bluestore-kv
ceph-kvstore-tool bluestore-kv /var/lib/ceph/osd/ceph-4 statsفصل ۲۵

crushtool · کامپایل و آزمون نقشه‌ی CRUSH#

crushtool -i
crushtool -i crush.new --test --rule 1 --num-rep 3 --show-statistics --show-bad-mappingsفصل ۸
crushtool -i cm.bin --test --rule 0 --num-rep 3 --min-x 0 --max-x 1023 --show-utilizationفصل ۲۸
crushtool -i cm.bin --test --rule 0 --num-rep 3 --x 0x36d15c32 --show-mappingsفصل ۲۸
crushtool -i cm.bin --test --show-bad-mappings --rule 0 --num-rep 3فصل ۲۸
crushtool -d
crushtool -d crush.bin -o crush.txtفصل ۸
crushtool -c
crushtool -c crush.txt -o crush.newفصل ۸

ceph-dencoder · decode ساختارهای باینری#

ceph-dencoder list_types
ceph-dencoder list_types | grep -i -E 'osdmap|pg_log'فصل ۲۲
ceph-dencoder type
ceph-dencoder type object_info_t import /tmp/oi.bin decode dump_jsonفصل ۳۴

kubectl · Kubernetes (Rook)#

kubectl -n
kubectl -n rook-ceph get podsفصل ۱۱
kubectl -n rook-ceph get cephclusterفصل ۱۱
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph -sفصل ۱۱
kubectl apply
kubectl apply -f cluster.yamlفصل ۱۱

راهنمای جامع Ceph · ۱٫۶ · آبان ۱۴۰۵
© 2026 Ramin Najarbashi · CC BY-NC-SA 4.0

حریم خصوصی: این سایت کوکی نمی‌گذارد. برای شمارش بازدیدها از Cloudflare Web Analytics استفاده می‌شود که کوکی ندارد و افراد را دنبال نمی‌کند.