Skip to main content
Version: 2.5

Node Recycling

Overview​

Some would like to retire some compute nodes with outdated specs and transform them into storage nodes. There are two recommended procedures for such use case.

Simple Recycling​

Stop a Compute Node​

Please head to Admin > Compute > All Hypervisors and click Compute host tab. Look for the hostname you wish to remove and click on button DISABLE SERVICE.

/assets/maintenances/01-disable-1.png

Disable Service​

Leave a reason and click DISABLE SERVICE.

/assets/maintenances/02-disable-1.png

Service Disabled​

Make sure the service is disabled.

/assets/maintenances/03-disable-1.png

Migrate Instances from the Disabled Host​

Please head to Admin > Compute > Instances, look for the instances which is hosted on DISABLED Host and start the LIVE MIGRATE INSTANCE from the action menu.

/assets/maintenances/04-live-migrate-1.png

Allocate the Instance to a New Host​

You can choose a preferred host to migrate or Automatically and SUBMIT.

/assets/maintenances/05-live-migrate-1.png

All Instances Has Been Migrated​

Repeat the steps and migrate the rest of the instances.

/assets/maintenances/06-live-migrate-1.png

Done​

The node is now serving as a storage node.

Complete Recycling​

Preparation​

Please follow the process to stop a compute node and migrate instances to another compute node.

Remove Disks​

The action is required if only the node is included in the storage.

CLI: storage > remove_exist

Remove the Compute Node from the Cluster​

Connect to a control node.

$ ssh [email protected]
Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
Password:

Remove the node from the cluster.

cc1> cluster
cc1:cluster> remove_node
1: compute01
2: compute02
3: compute03
Enter index: 3
this command is only applicable for compute or storage nodes
make sure its running instances have been properly terminated or migrated
shutdown the target host before proceeding
Enter 'YES' to confirm: YES

Set Up the Storage Node​

It is now safe to shutdown the retired compute node.

After shutting down the compute node, we could boot the node from an installer.

Please follow the process for the installer to set up the storage node.