pool.replace ============ Replace a disk on a pool. `label` is the ZFS guid or a device name `disk` is the identifier of a disk If `preserve_settings` is true, then settings (power management, S.M.A.R.T., etc.) of a disk being replaced will be applied to a new disk. .. examples(websocket):: Replace missing ZFS device with disk {serial}FOO. :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "pool.replace", "params": [1, { "label": "80802394992848654", "disk": "{serial}FOO" }] } This method is a job. .. raw:: html
Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: id

id

Type: integer

ID of the pool to replace a disk in.

Parameter 2: options

options

Type: object

Configuration for the disk replacement operation.

No Additional Properties

Label

Type: string

GUID or device name of the disk to replace.

Disk

Type: string

Name of the new disk to use as replacement.

Force

Type: boolean Default: false

Force the replacement even if the new disk appears to be in use.

Preserve Settings

Type: boolean Default: true

Whether to preserve disk settings from the replaced disk.

Preserve Description

Type: boolean Default: true

Whether to preserve the description from the replaced disk.

Result

Type: const

Indicates successful disk replacement initiation.

Specific value: true


*Required roles:* POOL_WRITE