Managing LXD Hosts

This chapter explains how to manage LXD cluster hosts within a CloudCIX region.

Taking a Cluster Member Out of Service

To take an LXD cluster node out of service for maintenance (without removing it from the cluster):

1. Disable scheduling

Prevent new VMs and containers from being placed on the node:

lxc cluster set <node> scheduler.instance=manual

2. Evacuate existing workloads

Migrate all running instances off the node to other cluster members:

lxc cluster evacuate <node>

3. Power off the host

The node can now be safely powered down for maintenance.

Returning a Node to Service

Once maintenance is complete and the node is back online:

1. Restore evacuated instances

Migrate the node’s instances back from their temporary hosts:

lxc cluster restore <node>

2. Re-enable scheduling

Allow new instances to be placed on the node again:

lxc cluster set <node> scheduler.instance=all

New and restored instances will then be eligible for placement on the node.

See also