---
title: "Move a cloud server disk"
sidebar_label: "Move a disk"
sidebar_position: 6
description: "How to move a network volume to another pool segment, project or account"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Move a cloud server disk

You can only move a [network volume](/cloud-servers/volumes/about-network-volumes.mdx):

* [to another pool segment](#transfer-volume-to-another-pool-segment) of any availability zone and any region — during the move, you can select a different project or account;
* [to another project or account](#transfer-volume-to-another-project-or-account) — only within the same pool segment.

## Move a disk to another pool segment \{#transfer-volume-to-another-pool-segment}

To move a disk to another [pool segment](/infrastructure/locations.mdx#pool), you must create its image, move the image, and create a new disk from it. Moving a disk directly to another pool segment is impossible.

When moving a disk image, you can choose a different [project](/access-control/projects/about-projects.mdx) or account.

1. [Create a disk image](/cloud-servers/images/create-image.mdx#create-image-from-volume).
2. [Transfer the image to another pool segment](/cloud-servers/images/transfer-image.mdx).
3. [Create a disk from the image](/cloud-servers/volumes/create-volume.mdx).
4. Optional: [delete the disk image](/cloud-servers/images/delete-image.mdx#delete-image-from-storage).

## Move a disk to another project or account \{#transfer-volume-to-another-project-or-account}

You can  move a network volume to another [project](/access-control/projects/about-projects.mdx) or account only within the same [pool segment](/infrastructure/locations.mdx#pool). You can migrate a single disk or several disks at once.

<Tabs queryString="transfer-volume-to-another-project-or-account">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    <Tabs queryString="transfer-volume-or-volumes">
      <TabItem value="one-volume" default>
        <TabItemLabel>
          Move a single disk
        </TabItemLabel>

        1. [Detach the disk from the cloud server](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server).

        2. In the [Control panel](https://my.selectel.ru/vpc/default/images/), on the top menu, click **Products** and select **Cloud Servers**.

        3. Go to the **Disks** section.

        4. In the <MoreVerticalIcon /> menu for the disk, select **Move to another project**.

        5. Click **Start transfer**. The volume will enter the `AWAITING_TRANSFER` status and will be unavailable for use.

        6. Save the transfer ID and key.

        7. Optional: to cancel the transfer at any time (to return the volume to the `ACTIVE` status), in the volume's <MoreVerticalIcon /> menu, select **Manage transfer** and click **Cancel transfer**.

        8. In a separate browser tab, open the project to which you want to transfer the volume.

        9. In the [control panel](https://my.selectel.ru/vpc/default/images/), on the top menu, click **Products** and select **Cloud Servers**.

        10. Go to the **Volumes** section.

        11. Click **Transfer volumes**.

        12. Select **Accept volumes**.

        13. Select the location from which the volumes are being transferred from the source project or account.

        14. Select **Accept one volume**.

        15. Enter the transfer ID and key that you saved in step 6.

        16. Click **Accept volume**.
      </TabItem>

      <TabItem value="multiple-volumes" default>
        <TabItemLabel>
          Transfer multiple volumes
        </TabItemLabel>

        1. [Detach the volume from the cloud server](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server).

        2. In the [control panel](https://my.selectel.ru/vpc/default/images/), on the top menu, click **Products** and select **Cloud Servers**.

        3. Go to the **Volumes** section.

        4. Click **Transfer volumes**.

        5. Select **Select volumes to transfer**.

        6. Select the location from which you need to transfer the volumes.

        7. Select the required volumes.

        8. Click **Download JSON file**. A JSON file with the transfer data will be downloaded to your computer. The volumes will enter the `AWAITING_TRANSFER` status and will be unavailable for use.

        9. Optional: to cancel the transfer at any time (to return the volume to the `ACTIVE` status), in the volume's <MoreVerticalIcon /> menu, select **Manage transfer** and click **Cancel transfer**.

        10. In a separate browser tab, open the project to which you want to transfer the volume.

        11. In the [control panel](https://my.selectel.ru/vpc/default/images/), on the top menu, click **Products** and select **Cloud Servers**.

        12. Go to the **Volumes** section.

        13. Click **Transfer volumes**.

        14. Select **Accept volumes**.

        15. Select the location from which the volumes are being transferred from the source project or account.

        16. Select **Accept volumes from JSON** and attach the JSON file that you received in step 8. A list of volumes to transfer will appear.

        17. Click **Accept volumes**.
      </TabItem>
    </Tabs>
  </TabItem>

  <TabItem value="openstack">
    <TabItemLabel>
      OpenStack CLI
    </TabItemLabel>

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).

    2. Detach the volume from the cloud server:

       ```bash
       openstack server remove volume <server> <volume>
       ```

       Specify:

       * `<server>` — the server ID or name. You can view the list using `openstack server list`
       * `<volume>` — the volume ID or name. You can view the list using `openstack volume list`

    3. Create a request to transfer the volume to another project:

       ```bash
       openstack volume transfer request create <volume>
       ```

    4. If you want to transfer multiple volumes at once, enter:

       ```bash
       openstack volume transfer request create <volume_1> <volume_2> <volume_3>
       ```

    5. Save the following from the command output:

       * `auth_key` — the key value;
       * `id` — the transfer ID.

    6. Optional: to cancel the transfer, delete the request:

       ```bash
       openstack volume transfer request delete <id>
       ```

    7. [Configure authorization in OpenStack CLI](/cloud-servers/tools/openstack-cli/change-authorization-data.mdx) for the other project.

    8. Confirm the transfer:

       ```bash
       openstack volume transfer request accept --auth-key <auth_key> <id>
       ```
  </TabItem>
</Tabs>

<Formbricks />
