Migrate a cloud server disk
Only the network drive can be migrated:
- to another segment of the pool any availability zone and any region — you can choose another project or account when migrating;
- to another project or account — only within one segment of the pool.
Move the disk to another segment of the pool
To move a disk to another pool segment, you must create an image of the disk, move the image, and create a new disk from the image. You cannot directly move a disk to another pool segment.
When transferring a disk image, you can select a different project or account.
- Create a disk image.
- Transfer the image to another segment of the pool.
- Create a disk from the image.
Move the disk to another project or account
You can move a network disk to another project or account only within the same pool segment. You can migrate a single disk or several disks at once.
Control panel
OpenStack CLI
Move one disk
- Disconnect the disk from the cloud server.
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Disks section.
- From the menu of the disk, select Transfer to another project.
- Click Start Transfer. The disk will enter the
AWAITING-TRANSFER
status and will be unavailable for operation. The window that opens will display the data to complete the transfer — Transfer ID and Key. - Optionally, to cancel the migration at any time (putting the disk back into
ACTIVE
status), from the menu of the disk, select Manage migration and click Cancel migration. - In the adjacent browser tab, open the project to which you want to move the disk.
- Go to Cloud Platform → Disks. Make sure that you open the list of disks in the same pool segment from which the disk is being migrated.
- In the menu of the section header, select Accept disks from another project.
- In the window that opens, enter the Transfer ID and Key that you received in step 5. Click Accept.
Transfer multiple disks
- Disconnect the disk from the cloud servers.
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Disks section.
- In the menu of the section header, select Transfer disks to another project.
- Check the desired disks and click Download List. A JSON file with the data to be transferred will be downloaded to your computer. The disks will go to the
AWAITING-TRANSFER
status and will be unavailable for work. - Optionally, to cancel the migration at any time (putting the disk back into
ACTIVE
status), from the menu of the disk, select Manage migration and click Cancel migration. - In the adjacent browser tab, open the project to which you want to migrate disks.
- Go to Cloud Platform → Disks. Make sure that you open the list of disks in the same pool segment from which you are migrating disks.
- In the menu of the section header, select Accept disks from another project.
- In the window that opens, open the Multiple Disks tab.
- Click Upload List and attach the JSON file you received in step 4. A list of disks to migrate will appear.
- Check the list of disks. Click Accept.
-
Disconnect the disk from the cloud server:
openstack server remove volume <server> <volume>
Specify:
<server>
— Server ID or name. The list can be viewed withopenstack server list
<volume>
— ID or disk name. The list can be viewed withopenstack volume list
-
Create a request to move the disk to another project:
openstack volume transfer request create <volume>
-
If you want to transfer multiple disks at once, enter:
openstack volume transfer request create <volume_1> <volume_2> <volume_3>
-
Save from the output of the command:
auth_key
— key value;id
— Transfer ID.
-
Optional: to cancel the transfer, delete the request:
openstack volume transfer request delete <id>
-
Configure authorization in the OpenStack CLI for another project.
-
Confirm the transfer:
openstack volume transfer request accept --auth-key <auth_key> <id>