New to KubeDB? Please start here.
Weaviate StorageClass Migration
This guide will give you an overview of how KubeDB Ops Manager migrates a Weaviate cluster from one StorageClass to another.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Storage Migration Process Works
Storage migration moves the data of a Weaviate cluster from its current StorageClass onto a new one — for example, migrating from a cloud-provider block storage to Longhorn, or vice-versa.
The storage migration process consists of the following steps:
The user creates a
WeaviateOpsRequestCR of typeStorageMigrationreferencing theWeaviatedatabase. Thespec.migrationfield specifies the targetstorageClassNameand the reclaim policy (oldPVReclaimPolicy) to apply to the old PersistentVolumes.KubeDBOps Manager watches for theWeaviateOpsRequestCR and halts theWeaviateobject.For each node, the Ops Manager provisions a new PVC on the target
StorageClass, copies the data from the old volume to the new volume, and re-points the node at the new volume.The old PersistentVolumes are handled according to
spec.migration.oldPVReclaimPolicy(for exampleDelete).The Ops Manager updates the
Weaviateobject’sspec.storage.storageClassNameto the newStorageClassand resumes theWeaviateobject so that theKubeDBProvisioner operator resumes its usual operations.
Note: The target
StorageClassmust be different from the current one. If the database is already running on the targetStorageClass, there is nothing to migrate.
In the next doc, we are going to show a step-by-step guide on migrating the StorageClass of a Weaviate cluster.































