title | weight | indent |
---|---|---|
Migration |
4100 |
true |
The tool persistent-volume-migrator aims to help migrate Flex rbd Volumes to Ceph-Csi.
This guide assumes you have created a Rook cluster with Flex
- Minimum ceph version should be Ceph-CSI supported.
- Volume should be in BOUND state and should not be in use.
NOTE: The Migration procedure will come with a downtime; As we need to scale down the applications using the Volumes before migration.
- Create rbac required to run migrator pod
kubectl create -f cluster/examples/kubernetes/ceph/flex-migration/rbac.yaml
- Create migrator pod
kubectl create -f cluster/examples/kubernetes/ceph/flex-migration/migrator.yaml
- Run command to start migration:
- To migrate single PVC:
<binary_name> --pvc=rbd-pvc --pvc-namespace=default --destinationstorageclass=csi-rook-ceph-block
--pvc
reads name of the pvc to migrate--pvc-namespace
reads the namespace of the PVC which is going to migrate--destinationstorageclass
read the name of the storageclass in which you want mirgrate.
- To mirage all the pvc in storageclass:
- WIP
- To migrate single PVC: