set_pool_size
Adjust a Ceph pool's replica count to change redundancy; use dry_run to preview. Safely blocks reductions on mgr-owned pools and allows undo to prior size.
Instructions
[WRITE][risk=high] Set a pool's replica size — forces mass data movement on a live pool.
Pass dry_run=True to preview. Reversible → prior size.
Refuses a size REDUCTION on .mgr / .rgw.root and any mgr-owned pool: fewer replicas degrades ceph-mgr, which serves the Dashboard REST API this tool speaks — so the recorded undo would have no transport to travel over. RAISING the size on those pools is allowed. Enforced under dry_run too.
Args: pool_name: Pool name (from pool_ls). size: New replica count. dry_run: If True, preview without changing the size. target: Ceph target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| target | No | ||
| dry_run | No | ||
| pool_name | Yes |