set_pool_size
Set a Ceph pool's replica count with dry-run preview, blocking reductions on mgr-owned pools that can disrupt Dashboard operations.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pool_name": "<pool_name>",
"size": "<size>"
},
"name": "set_pool_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| target | No | ||
| dry_run | No | ||
| pool_name | Yes |