Skip to main content
Version: 3.0

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.

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

Disable Service​

Leave a reason and click DISABLE SERVICE.

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

Service Disabled​

Make sure the service is disabled.

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

Migrate Instances from the Disabled Host​

Navigate to Admin > Compute > Instances > Instances Detail, hover over More, and click the LIVE MIGRATE from the dropdown menu.

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

Allocate the Instance to a New Host​

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

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

All Instances Has Been Migrated​

Repeat the steps and migrate the rest of the instances.

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

Done​

The node is now serving as a storage node.

/assets/maintenances/v3.0.0/07-live-migrate-1.png

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