9.19.4. Migrate a VM disk to a different storage class
You can migrate one or more virtual disks to a different storage class to optimize storage performance or reduce costs without stopping your virtual machine (VM) or virtual machine instance (VMI).
9.19.4.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.