This article is part of DRP sectionin gfxtm.com

Target ideas

Ceph architecture: RADOS, MON, OSD, MGR, MDS, CRUSH, Pools, Placement Groups

Ceph operations: Cluster Health, OSD Management, Rebalancing, Replication, Erasure Coding, Scrubbing, Monitoring

Ceph recovery: OSD Failure Recovery, Degraded PG Recovery, Backfill, Cluster Rebalancing

Ceph and DRP

Again even Ceph recovery cannot replace backup strategy. Please keep your 3-2-1 backup strategy for DRP.

0. Introduction

Ceph is an open-source, distributed storage platform designed to provide scalable, reliable, and highly available storage across multiple servers. It combines object storage, block storage, and file storage within a unified distributed architecture.

Unlike traditional storage systems that depend on a centralized storage server, Ceph distributes data across multiple storage nodes. It uses the Reliable Autonomic Distributed Object Store (RADOS) as its underlying storage layer, with the CRUSH algorithm determining how data is distributed across the cluster. This architecture helps eliminate single points of failure and allows storage capacity to grow by adding more nodes.

Ceph provides several storage interfaces, including RADOS Block Device (RBD), Ceph Object Gateway (RGW), and Ceph Filesystem (CephFS). These interfaces support different workloads, such as virtual machine disks, object storage, and shared filesystems.

In Disaster Recovery Planning (DRP), Ceph can provide resilient storage infrastructure through data replication, recovery mechanisms, and distributed fault tolerance. However, cluster redundancy and replication alone do not replace independent backups. A reliable DRP architecture should also consider failure domains, remote replication, backup isolation, and tested recovery procedures.

1. Ceph Architecture

RADOS (Reliable Autonomic Distributed Object Store)

RADOS is the underlying distributed storage layer of Ceph. It manages data distribution, replication, and recovery across the storage cluster. Ceph’s storage interfaces, including RBD, RGW, and CephFS, rely on RADOS to store and retrieve data.

MON (Monitor)

Monitors maintain cluster maps and participate in consensus to maintain a consistent view of the cluster state. They provide information about the cluster topology, storage configuration, and current status. A Ceph cluster typically uses multiple MON nodes to maintain availability and avoid a single point of failure. Cluster Rebalancing

OSD (Object Storage Daemon)

OSDs manage data stored on individual storage devices within the Ceph cluster. They handle data replication, recovery, backfilling, and communication with other OSDs. OSDs are fundamental to Ceph because they provide the actual storage capacity and data management functions.

MGR (Manager)

The Manager provides cluster monitoring, management modules, performance statistics, and administrative interfaces. It collects operational information from the cluster and supports tools such as the Ceph Dashboard. MGR services help administrators monitor and manage storage infrastructure.

MDS (Metadata Server)

MDS manages filesystem metadata for CephFS, including directory structures, permissions, and file metadata operations. It coordinates metadata access between clients and the distributed storage system. MDS is required for CephFS but is not necessary for RBD or RGWErasure Coding operations.

CRUSH (Controlled Replication Under Scalable Hashing)

CRUSH is the algorithm Ceph uses to determine where data should be stored across the cluster. It distributes data across storage devices and failure domains according to configured placement rules. This approach allows Ceph to scale storage without relying on a centralized lookup table for every object.

Pools

Pools are logical storage containers used to organize data within a Ceph cluster. They define storage policies such as replication, erasure coding, and placement group configuration. Administrators can create separate pools to support different workloads and storage requirements.

Placement Groups (PGs)

Placement Groups are logical groupings of objects distributed across OSDs. They help Ceph manage data placement, replication, and recovery efficiently. When OSD availability or cluster membership changes, PGs provide the basis for determining which data needs to be recovered or redistributed.

2. Ceph Operations

Cluster Health

OSD Failure Recovery Ceph provides cluster health information to identify warnings, errors, and degraded storage conditions. Administrators use cluster status and health reports to monitor availability and identify potential problems. Regular health checks help detect issues before they affect storage services.

OSD Management

OSD management involves adding, removing, replacing, and monitoring storage devices within the cluster. Each OSD contributes storage capacity and participates in data distribution and redundancy. Proper OSD management helps maintain cluster capacity, performance, and availability.

Rebalancing

When OSDs are added, removed, or fail, Ceph redistributes data to maintain the configured placement and redundancy policies. This process helps restore the intended balance across the cluster. Rebalancing may consume network bandwidth and disk I/O, so administrators should monitor its impact on production workloads.

Replication

Ceph maintains multiple copies of data across different OSDs according to the pool’s replication policy. This helps maintain data availability when storage devices or nodes fail. Replication policies should consider failure domains to reduce the risk of losing multiple copies from a single incident.

Erasure Coding

Erasure coding divides data into data and coding chunks distributed across storage devices. It provides redundancy with less storage overhead than full replication in many configurations. However, erasure coding introduces additional computational and recovery considerations, so it should be selected according to workload and performance requirements.

Scrubbing

Ceph periodically checks stored objects and metadata for inconsistencies. Regular scrubbing identifies discrepancies between stored copies, while deep scrubbing additionally verifies object data against stored checksums to detect corruption. These operations help maintain data integrity across the cluster.

Monitoring

Ceph provides cluster metrics, performance information, and health status through Manager modules and monitoring integrations. Administrators can use these metrics to identify performance bottlenecks, capacity issues, and abnormal storage activity. Monitoring tools such as Prometheus and Grafana can provide additional visualization and alerting capabilities.

3. Ceph Recovery

OSD Failure Recovery

When an OSD becomes unavailable, Ceph identifies affected placement groups and attempts to restore the required redundancy using available data copies. Administrators should investigate the failed device, review cluster health, and confirm data availability before replacing or reintroducing storage devices. Recovery operations depend on the remaining healthy OSDs and the configured redundancy policy.

Degraded PG Recovery

Placement Groups become degraded when the expected number of data copies or coding chunks is unavailable. Ceph identifies affected PGs and attempts to restore their desired state when sufficient healthy storage resources are available. Administrators should monitor PG states and investigate persistent degraded conditions to prevent further storage risks.

Backfill

Backfill is the process of copying existing data to OSDs that need to store it following changes in cluster membership or data placement. It helps restore the intended distribution of data across the cluster. Backfill is particularly important after replacing failed OSDs or adding new storage capacity.

Cluster Rebalancing

Following node or OSD changes, Ceph may redistribute data across the cluster to maintain configured placement rules. This process helps restore the intended storage distribution and redundancy. Administrators should monitor recovery progress, available capacity, and workload performance during rebalancing.

4. Disaster Recovery (DR)

Disaster recovery involves restoring storage services after major failures, including node loss, site outages, or cluster-wide incidents. Strategies may include separate Ceph clusters, remote replication, independent backups, and documented recovery procedures. A recovery plan should also consider network connectivity, cluster dependencies, data consistency, and the order in which services must be restored.

RPO / RTO

Recovery Point Objective (RPO) defines the acceptable amount of data loss measured in time, while Recovery Time Objective (RTO) defines the acceptable time required to restore services. These objectives help determine backup frequency, replication intervals, and recovery procedures. Both should be established according to business requirements and tested during disaster recovery exercises.

Backup and Restore

Ceph data should have independent backup copies outside the primary storage cluster. Depending on the storage interface, backup strategies may involve RBD snapshots and exports, CephFS backups, or RGW object backups. Backup and restore procedures should be documented and tested regularly to verify data integrity and recovery capability.