惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs
博客园 - 叶小钗
P
Privacy International News Feed
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
T
Threatpost
IT之家
IT之家
博客园 - 聂微东
Know Your Adversary
Know Your Adversary
Help Net Security
Help Net Security
罗磊的独立博客
I
Intezer
S
Schneier on Security
博客园_首页
C
CERT Recently Published Vulnerability Notes
雷峰网
雷峰网
Cisco Talos Blog
Cisco Talos Blog
宝玉的分享
宝玉的分享
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Webroot Blog
Webroot Blog
TaoSecurity Blog
TaoSecurity Blog
MyScale Blog
MyScale Blog
P
Privacy & Cybersecurity Law Blog
T
The Exploit Database - CXSecurity.com
PCI Perspectives
PCI Perspectives
Security Latest
Security Latest
H
Heimdal Security Blog
S
Secure Thoughts
Hacker News: Ask HN
Hacker News: Ask HN
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
SecWiki News
SecWiki News
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
T
Threat Research - Cisco Blogs
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots How to Use Rook-Ceph with Velero for Kubernetes Backup How to Integrate HashiCorp Vault with Rook-Ceph (Token Auth) How to Configure TLS for Vault Integration in Rook How to Integrate HashiCorp Vault with Rook-Ceph (Kubernetes Auth) How to Validate Ceph Cluster Configuration After Deployment How to Understand User Type and ID Notation (TYPE.ID) in Ceph How to Configure User Management in the Ceph Dashboard How to Use Rook-Ceph with Kubernetes Operators How to Use Rook-Ceph with Helm Chart Deployments How to Use the Swift API with Ceph RGW How to Use SQLite Databases Stored on Ceph How to Use s3cmd with Ceph RGW How to Use the S3 API with Ceph RGW How to Use Red Hat Ceph with RHEL Virtualization How to Use RBD with QEMU How to Use RBD with Nomad How to Use RBD with CloudStack How to Use RBD Snapshot Rollback How to Use rados bench for Object Storage Benchmarking How to Secure Rook-Ceph with Pod Security Admission How to Use pg-upmap for PG Mapping in Ceph How to Use Multipath Devices with Ceph OSDs How to Use MinIO Client (mc) with Ceph RGW How to Use fs swap for CephFS How to Use fio for Ceph Block Storage Benchmarking How to Use the CephFS Shell How to Use Ceph RGW for Media Asset Management How to Use Ceph RGW for Log Storage and Archival How to Use Ceph RGW for Data Lake Storage How to Use Ceph RGW for Backup Repository Storage How to Use the ceph-authtool Utility How to Use boto3 (Python) with Ceph RGW S3 How to Use AWS CLI with Ceph RGW S3 How to Use the Admin Ops API with Ceph RGW How to Configure Usage Log Key Transition in Ceph RGW How to Handle Rook-Ceph Upgrades in GitOps Pipelines How to Upgrade Rook-Ceph with Zero Downtime How to Create a Ceph Upgrade Runbook How to Upgrade the Rook Operator from v1.18 to v1.19 How to Upgrade the Rook Operator on Kubernetes How to Upgrade External Cluster Connections in Rook How to Upgrade the Ceph Version in Rook How to Upgrade from Ceph Reef to Squid How to Upgrade from Ceph Quincy to Reef How to Upgrade Ceph Clusters in Stretch Mode How to Update Kernel for CephFS Feature Compatibility How to Update Ceph Configuration on a Running Rook Cluster How to Create Unique Kubernetes Services per NFS Server in Rook How to Understand When Compression Helps vs Hurts in Ceph How to Understand User Types (Individual vs System) in Ceph How to Understand the undersized PG State in Ceph How to Understand the stale PG State in Ceph How to Understand the repair PG State in Ceph How to Understand the remapped PG State in Ceph How to Understand Red Hat Ceph Storage vs Upstream Ceph How to Understand Placement Groups in Ceph How to Understand PG Splitting in Ceph How to Understand the peering PG State in Ceph How to Understand OSD Recovery Process in Ceph How to Understand the OSD Map in Ceph How to Understand New Features in Each Ceph Release How to Understand Monitor Leadership in Ceph How to Understand MDS States in CephFS How to Understand Deprecated Features in Ceph Reef How to Understand the degraded PG State in Ceph How to Understand D3N in Ceph How to Understand the creating PG State in Ceph How to Understand the clean PG State in Ceph How to Understand CephX Authentication Protocol How to Understand CephX Authentication Flow How to Understand What Data Ceph Telemetry Collects
How to Write a ceph.conf Configuration File
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

The Role of ceph.conf

ceph.conf is the main configuration file for Ceph daemons and clients. It defines cluster-wide settings, per-daemon overrides, and client-specific parameters. The file follows an INI-like format with sections for [global], [mon], [osd], [mds], [client], and specific daemon instances like [osd.0].

In modern Ceph (Nautilus+), most settings can be managed at runtime via ceph config set, but ceph.conf remains important for bootstrapping and for settings that must be present before a daemon starts.

Basic ceph.conf Structure

[global]
; Cluster identity
fsid = a1b2c3d4-e5f6-7890-abcd-ef1234567890
mon_initial_members = mon1, mon2, mon3
mon_host = 192.168.1.10, 192.168.1.11, 192.168.1.12

; Authentication
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx

; Networks
public_network = 192.168.1.0/24
cluster_network = 192.168.2.0/24

; Logging
log_to_file = true
log_file = /var/log/ceph/ceph.log

[mon]
mon_allow_pool_delete = true
mon_clock_drift_allowed = 0.1

[osd]
osd_journal_size = 1024
osd_pool_default_size = 3
osd_pool_default_min_size = 2
osd_pool_default_pg_num = 128
osd_recovery_max_active = 3
osd_max_backfills = 2

[client]
rbd_cache = true
rbd_cache_size = 268435456

Global Section

The [global] section applies to all Ceph components:

[global]
; Required: unique cluster ID
fsid = a1b2c3d4-e5f6-7890-abcd-ef1234567890

; Monitor bootstrap addresses
mon_initial_members = mon-a, mon-b, mon-c
mon_host = [v2:192.168.1.10:3300,v1:192.168.1.10:6789] \
           [v2:192.168.1.11:3300,v1:192.168.1.11:6789] \
           [v2:192.168.1.12:3300,v1:192.168.1.12:6789]

; Network
public_network = 192.168.1.0/24
cluster_network = 192.168.2.0/24

; Enable msgr2 protocol
ms_bind_msgr2 = true

Per-Daemon Configuration

Override settings for specific daemon types:

[osd]
; Applicable to all OSD daemons
osd_scrub_begin_hour = 23
osd_scrub_end_hour = 6
osd_deep_scrub_interval = 604800

[osd.5]
; Only applies to OSD 5 (e.g., slower disk)
osd_max_write_size = 90

[mon.mon-a]
; Only applies to monitor mon-a
mon_data = /var/lib/ceph/mon/ceph-mon-a

Client Configuration

The [client] section affects all Ceph clients:

[client]
; Enable RBD client-side caching
rbd_cache = true
rbd_cache_size = 67108864
rbd_cache_max_dirty = 50331648
rbd_cache_target_dirty = 33554432
rbd_cache_writethrough_until_flush = true

; Admin socket path for rados and rbd clients
admin_socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok

File Location and Permissions

# Standard location on Linux
ls -la /etc/ceph/ceph.conf

# File should be readable by ceph user
sudo chown root:ceph /etc/ceph/ceph.conf
sudo chmod 640 /etc/ceph/ceph.conf

Validating ceph.conf

# Parse and validate the config file
ceph-conf --conf /etc/ceph/ceph.conf --show-config-value fsid

# List all effective settings for a daemon type
ceph-conf --conf /etc/ceph/ceph.conf --name osd.0 --show-config

Pushing Config Updates with cephadm

In cephadm-managed clusters, avoid editing ceph.conf manually on nodes. Instead:

# Set config via ceph config
ceph config set osd osd_scrub_begin_hour 23

# Generate a minimal ceph.conf for reference
ceph config generate-minimal-conf

# Enable cephadm to manage /etc/ceph/ceph.conf on all hosts
ceph config set mgr mgr/cephadm/manage_etc_ceph_ceph_conf true

Summary

A well-structured ceph.conf file defines the cluster FSID, monitor bootstrap addresses, network separation, authentication requirements, and per-daemon tuning. The INI-format hierarchy allows global defaults to be overridden at the daemon type or instance level. While runtime configuration via ceph config set is preferred for operational changes in modern clusters, ceph.conf remains the authoritative source for bootstrap-critical settings and defaults that new daemons need before connecting to monitors.