1. Create and Configure the Pool in Ceph
These commands create the pool, set replication levels, quotas, and PG optimization (Autoscaler).
# 1. Create the pool with 128 PGs
ceph osd pool create local-ceph-esht 128 128
# 2. Set replication (3 copies, min 2 required to acknowledge writes)
ceph osd pool set local-ceph-esht size 3
ceph osd pool set local-ceph-esht min_size 2
# 3. Configure PG Autoscaler (Mode ON and target size ratio)
ceph osd pool set local-ceph-esht pg_autoscale_mode on
ceph osd pool set local-ceph-esht target_size_ratio 0.1
# 4. Set capacity limit (2TB Quota)
ceph osd pool set-quota local-ceph-esht max_bytes 2T
# 5. Initialize for RBD (Block Device usage)
rbd pool init local-ceph-esht
ceph osd pool application enable local-ceph-esht rbd
2. Register Storage in Proxmox (PVE)
This command integrates the new pool into the Proxmox GUI so it can be used for VM disks and Containers.
# Add the RBD storage to the PVE cluster configuration
pvesm add rbd local-ceph-esht --pool local-ceph-esht --content images,rootdir --krbd 0
3. Verification Commands
Use these to verify the status of the new pool:
ceph df – Check pool usage and available RAW storage.
ceph osd pool autoscale-status – View PG scaling status for all pools.
ceph osd pool get local-ceph-esht all – View all specific parameters of the new pool.
pvesm status – Confirm the storage is "Active" in Proxmox.