ReplaceDiskPlan
mountpointstringrequired
previousDevicestringrequired
The device on record for this slot before the replacement.
replacementDevicestringrequired
modelstring
The replacement disk's own model, for the operator to recognise it by.
wwnstring
serialstring
sizeBytesinteger<int64>
currentFilesystemstring
The replacement's filesystem before this operation, if any, cached from udev.
filesystemArrayDiskFilesystemrequired
Filesystem to format with, or to verify when adopt is true. Parity is always xfs.
Possible values: [xfs, ext4, btrfs]
adoptbooleanrequired
rebuildstringrequired
The SnapRAID command this plan's own apply call runs to reconstruct the slot's contents from parity, e.g. snapraid fix -d d2.
confirmationstringrequired
Exact typed confirmation replaceDisk requires for this plan: ERASE <replacementDevice>, or ADOPT ONLY — NOTHING ERASED when adopt is true.
ReplaceDiskPlan
{
"mountpoint": "string",
"previousDevice": "string",
"replacementDevice": "string",
"model": "string",
"wwn": "string",
"serial": "string",
"sizeBytes": 0,
"currentFilesystem": "string",
"filesystem": "xfs",
"adopt": true,
"rebuild": "string",
"confirmation": "string"
}