Migration to ceph storage on FES
This guide is intended to help you migrate to ceph storage.
Warning
This guide only applies to clusters in the FES region. Clusters in DBL or CBK do not offer Ceph storage.
Kubernetes Nodes
Most flavors (m1.* variants) of MetaKube Nodes use network storage for the VM's root disk.
MetaKube does not allow migrating the volume used for a VM in-place.
Instead, you must replace the MetaKube Nodes by changing the flavor to an equivalent m2.* variant in each of your MachineDeployments.
New PersistentVolumes
First, ensure that any new PVs that get dynamically provisioned, use Ceph storage.
-
Check if the default StorageClass uses Ceph
The following command should only show
sys11-cephas the default storage class: -
(Optional) Change default StorageClass to
sys11-cephMetaKube will automatically make
sys11-cephthe default StorageClass if no other StorageClasses have the respective annotation. To remove it from another StorageClass, for example here the previous default, run:
Migrate existing PersistentVolumes
To find out if you have any PersistentVolumes that still use Quobyte, run:
Info
While unlikely, this list may not be 100% correct. The StorageClass of a PVC is only regarded when provisioning a new volume. After that, the StorageClass may change.
The only way to make sure is to check the volume type of the OpenStack volume directly:
For existing PVs, consider the following options:
-
Delete PVC of individual cluster members and replay data from active peers
Most clustered databases store data redundantly, can tolerate the failure of individual members & automatically perform recovery. By safely deleting the PVC for each replica before having a new one be created and synced from other peers, the entire storage may be migrated to new volumes without downtime.
-
Delete PVC and restore from backup
Some applications make it easy to restore from a (logical) backup. This can be faster and simpler than cloning the volume "as is".
-
Clone volume and create PVC replacement
For other applications, you can also clone a volume while it's not in use and create a PV and PVC replacements respectively. This is a more manual process and requires downtime of the application using the PVC.
A guide on how to perform this, can be found in this How-To
Object Storage
MetaKube doesn't directly integrate with Object Storage. You'll have to migrate data and switch endpoints yourself.