sr_rescan
Refresh a storage repository's metadata to resolve stale or inconsistent SR state. Preview changes with dry-run before applying; no data change or undo is recorded.
Instructions
[WRITE][risk=medium] Rescan an SR (metadata refresh — no data change, no undo).
Lowest-impact write in this tool, but a write nonetheless: it refreshes SR
metadata and records no undo (there is no prior state to restore).
Args:
sr_id: SR uuid (see sr_list).
dry_run: If True, preview without rescanning.
target: Xen Orchestra 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": {
"sr_id": "<sr_id>"
},
"name": "sr_rescan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sr_id | Yes | ||
| target | No | ||
| dry_run | No |