Move the disk
Only network volume can be migrated:
- to another pool segment of any availability zone and any region — you can choose another cloud platform project or account when migrating;
- to another project or account — only within the same pool segment.
Move the disk to another segment of the pool
To move a disk to another pool segment, you must create an image of it, move the image, and create a new disk from it. It is not possible to directly move a disk to another segment of the pool.
When migrating a disk image, you can select a different cloud platform project or account.
Transfer the disk to another project or account
You can move a network disk to another cloud platform project or account only within a single pool segment. You can migrate a single disk or several at once.
- Control panel
- OpenStack CLI
Move one disk
- Disconnect the disk from the cloud server.
- In Control Panel, go to Cloud Platform → Disks.
- From the menu ( ) of the disk, select Move to another project.
- Press Start Transfer. The drive will go into AWAITING-TRANSFER status and will not be available for operation. In the window that opens, you will see the data to complete the transfer — Transfer ID and Key.
- Optional: to cancel the migration (put the drive back to ACTIVE status) at any time, from the menu ( ) of the drive, select Move Control and press 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 you open a list of disks in the same pool segment from which the disk is being migrated.
- From the menu ( ) of the section header, select Receive disks from another project.
- In the window that opens, enter the Transfer ID and Key that you received in step 4. Press Accept.
Transfer multiple disks
- Disconnect disk from cloud servers.
- In Control Panel, go to Cloud Platform → Disks.
- From the menu ( ) of the section header, select Move 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 AWAITING-TRANSFER status and will not be available for operation.
- Optional: to cancel the migration (put the drive back to ACTIVE status) at any time, from the menu ( ) of the drive, select Move Control and press 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 a list of disks from the same pool segment from which the disks are being migrated.
- From the menu ( ) of the section header, select Receive 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. The list of disks to be migrated appears.
- Check the list of disks. Press Accept.
-
Disconnect the disk from the cloud server:
openstack server remove volume <server> <volume>
Specify:
<server>
— server name or ID, can be viewed withopenstack server list
<volume>
— disk name or ID, 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
— the value of the key;id
is the ID of the transfer.
-
Optional: to cancel the transfer, delete the request:
openstack volume transfer request delete <id>
-
Configure authorization in OpenStack CLI for another project.
-
Confirm the transfer:
openstack volume transfer request accept --auth-key <auth_key> <id>