Repurpose a CubeCOS node
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β
Navigate to Admin > Compute > Hypervisors. Look for the hostname you wish to remove and click on button DISABLE.

Disable Serviceβ
Leave a reason and click DISABLE SERVICE.

Service Disabledβ
Make sure the service is disabled.

Migrate Instances from the Disabled Hostβ
- Navigate to
Admin > Compute > Instances > Instances Detail, hover overMore, and click theLIVE MIGRATEfrom the dropdown menu.

- You can either select a preferred host for migration or allow the cluster scheduler to automatically choose one, then click
OKto proceed.

Migrate all the instances on the repurposed nodeβ
Repeat the steps and migrate the rest of the instances.

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.
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: 1
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.