8.18. Migrating VM storage
To optimize performance or reduce costs, you can migrate virtual machines (VMs) between storage classes within a single cluster. You can use the OpenShift Container Platform web console to migrate a single VM’s disks or perform these migrations in bulk. Storage migration can be performed on both online and offline VMs.
8.18.1. Assign storage migration permissions 링크 복사링크가 클립보드에 복사되었습니다!
Cluster administrators must grant users permission to perform storage migrations. Permissions to perform storage migrations are not part of the administrative or editing roles in the cluster by default.
Prerequisites
- You have cluster administrator privileges.
Procedure
(Optional) To assign the user single namespace storage migration permissions, run the following command:
$ kubectl create rolebinding <role_binding_name> \ --clusterrole=migrations.kubevirt.io:storagemigrate \ --user=<user_name> -n <namespace>where:
- <role_binding_name>
- The name to assign to this role binding instance.
- <user_name>
- The user to assign the storage migration permission.
- <namespace>
- The applicable namespace for this role binding instance.
(Optional) To assign the user multiple namespace storage migration permissions, run the following command:
$ kubectl create clusterrolebinding <role_binding_name> \ --clusterrole=migrations.kubevirt.io:storagemigrate-multins \ --user=<user_name>where:
- <role_binding_name>
- The name to assign to this role binding instance.
- <user_name>
- The user to assign the storage migration permission.