Ozone Manager Disk Layout
Overview
Apache Ozone separates metadata management across different services to ensure scalability. The Ozone Manager (OM) is responsible for managing the namespace metadata, which includes volumes, buckets, and keys. This document outlines the on-disk configurations, directory structures, and layout for the Ozone Manager based on technical specifications.
Core Metadata Configurations
The following configuration keys define where the Ozone Manager stores its persistent data. For production environments, it is recommended to host these directories on NVMe/SSDs to ensure high performance.
ozone.om.db.dirs: Specifies the dedicated location for the Ozone Manager RocksDB.ozone.metadata.dirs: Serves as the default location for security-related metadata (keys and certificates) and is often used as a fallback if specific DB directories are not defined.ozone.om.ratis.storage.dir: Defines the storage location for Ratis (Raft) logs, which are essential for Ozone Manager High Availability (HA).
On-Disk Directory Structure
A typical Ozone Manager metadata directory (e.g., /var/lib/hadoop-ozone/om/) is organized as follows:
/var/lib/hadoop-ozone/om
├── data # The path configured for ozone.om.db.dirs
│ ├── db.checkpoints/ # Point-in-time snapshots of OM DB for external tools (e.g., Recon)
│ ├── om/
│ │ └── current/
│ │ └── VERSION # Metadata identifying clusterID, omUuid, and layout version