Spin Disk Up/Down
disk_spinSpins an Unraid array disk, parity, cache pool, or unassigned /dev/sdX device up or down over SSH, keeping tracked spin state consistent.
Instructions
Spins a disk up or down over SSH. Pass exactly one target: array slots and cache* pools (disk: disk1, parity, cache, ...) go through emhttpd (emcmd) so Unraid's tracked spin state stays consistent; unassigned devices (device: /dev/sdX) use sdspin (an hdparm wrapper — ATA only, SAS needs the community plugin). Requires confirm: true and SSH (UNRAID_SSH_*). Spinning down interrupts nothing but adds spin-up latency on next access. Verify the result with disk_list (response_format: detailed shows the spin state).
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": {
"action": "<action>"
},
"name": "disk_spin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | No | Slot name: diskN, parity, parity2, or a pool named cache or cacheN (other pool names are rejected); use this instead of `device`. | |
| action | Yes | Whether to spin the target disk up or down. | |
| device | No | Path /dev/sdX of an unassigned device (see unassigned_list); use this instead of `disk`. NVMe paths are rejected. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |