Longhorn supports auto eviction for evicting the replicas on the selected disabled disks or nodes to other suitable disks and nodes. Meanwhile the same level of high availability is maintained during the eviction.
By default, Eviction Requested
for disks or nodes is false
. And to keep the same level of high availability during the eviction, Longhorn only evicts a replica per volume after the replica rebuild for this volume is a success.
To evict disks for a node,
- Make sure the disk is disabled for scheduling and set to
Disable
. - Set
Eviction Requested
totrue
and save.
- Make sure the node is disabled for scheduling and set to
Disable
. - Set
Eviction Requested
totrue
, and save.
To cancel the eviction for a disk or a node, set the corresponding Eviction Requested
setting to false
.
The number on the selected disks or nodes should be reduced to 0 once the eviction is a success.
If any error happened during the eviction, the eviction will be suspended until new space has been cleared or it will be cancelled. And if the eviction is cancelled, the remaining replicas on the selected disks or nodes will remain on the disks or nodes.