---
title: "Create a cloud server disk"
sidebar_label: "Create a disk"
sidebar_position: 3
description: "How to create a blank network volume, a disk from an image, another disk, a snapshot or a backup"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Create a cloud server disk

[A network volume](/cloud-servers/volumes/about-network-volumes.mdx) can be created together with a cloud server or created separately and then connected to the server.

[A local disk](/cloud-servers/volumes/about-local-disks.mdx) is created only together with a cloud server.

You can create a network volume from various sources:

* blank — by default, such a disk does not contain data. You can use it to scale disk space on a cloud server;
* from an image — a pre-prepared Selectel image or your own uploaded image. Can be used to replace the boot disk when restoring a server or for cloning a server;
* from another disk, snapshot or backup — to create a copy of a disk.

The cost of a network volume depends on the [disk type](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-types) and the [pool segment](/infrastructure/locations.mdx#pool), in which it is created. You can calculate the cost in the [resource calculator](https://selectel.ru/prices/calculator/).

<Tabs queryString="create-volume">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. In the [control panel](https://my.selectel.ru/vpc/default/images/) in the top menu click **Products** and select **Cloud servers**.
    2. Go to the **Disks** section.
    3. Click **Create disk**.
    4. Enter a new disk name or leave the name that was created automatically.
    5. Select the [location](/infrastructure/locations.mdx) of the disk. This must be the location of the cloud server to which you will connect the disk later. The location affects the cost and [limits](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-limits) of the disk.
    6. Optional: if you want to create a disk from a [ready-made image](/cloud-servers/images/about-images.mdx#default-images), [your own image](/cloud-servers/images/about-images.mdx#own-images), [disk](/cloud-servers/volumes/about-network-volumes.mdx), [snapshot](/cloud-servers/volumes/snapshots.mdx) or [backup](/cloud-servers/backups/), in the **Source** block, select the **Disk from source** checkbox. If you want to create a blank disk, skip this step.
    7. Select the disk source.
    8. Select the [disk type](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-types). Disks differ in read/write speed and bandwidth values.
    9. Specify the disk size in GB. The size of a disk created from a source must be equal to or greater than the size of the source. We recommend not exceeding the [disk limits](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-limits) on maximum size. After creation, the disk cannot be resized downwards directly.
    10. If you have selected the Universal v2 or Fast v2 disk type, specify the total number of read and write operations in IOPS. After creating the disk, you can [change the number of IOPS](/cloud-servers/volumes/edit-volume.mdx#update-iops) — decrease or increase it. The number of IOPS changes is unlimited.
    11. Configure the creation of [scheduled backups](/cloud-servers/backups/about-backups.mdx) for the disk. Select a previously created plan or create a new one.
    12. Click **Create disk**.
  </TabItem>

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

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).
    2. Create a network volume:

       ```bash
       openstack volume create
           [--image <image> | --snapshot <snapshot> | --source <volume>] \
           --size <size> \
           --type <volume_type> \
           --property total_iops_sec='<iops_number>'
           --availability-zone <pool_segment> \
           <volume_name>
       ```

       Specify:

       * source type:
         * to create a blank disk, do not specify a source type;
         * `--image <image>` — to create a disk from a [ready-made](/cloud-servers/images/about-images.mdx#default-images) or [your own image](/cloud-servers/images/about-images.mdx#own-images). The `<image>` parameter is the image ID or name. You can view the list of images using `openstack image list`;
         * `--snapshot <snapshot>` — to create a disk from a [snapshot](/cloud-servers/volumes/snapshots.mdx). The `<snapshot>` parameter is the snapshot ID or name. You can view the list of snapshots using `openstack snapshot list`;
         * `--source <volume>` — to create a disk from another [network volume](/cloud-servers/volumes/about-network-volumes.mdx). The `<volume>` parameter is the volume ID or name. You can view the list of network volumes using `openstack volume list`;
       * `<size>` — disk size in GB. For disks created from a source, the minimum size must be equal to the source size. Take into account the [network volume limits](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-limits) on maximum size;
       * `<volume_type>` — ID or name of the [network volume type](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-types). For example, `universal2.ru-9a` — the name for creating a network volume of the SSD Universal v2 type in the [pool segment](/infrastructure/product-availability-by-location.mdx#network-volumes) ru-9a. The list of types can be viewed using `openstack volume type list` or in the table [List of network volume types in all pool segments](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-types-full-list);
       * optional: `--property total_iops_sec='<iops_number>'` — to specify the IOPS of a network volume of the Universal v2 or Fast v2 type. The `<iops_number>` parameter is the total number of read and write operations. Available values for Universal v2 are from 2 000 to 16 000 IOPS, for Fast v2 — from 25 000 to 75 000 IOPS. If you do not specify a value, the default value used will be 2 000 IOPS for Universal v2 or 25 000 IOPS for Fast v2.
       * `<pool_segment>` — pool segment where the network volume will be created, for example `ru-9a`. The list of available pool segments can be viewed in the [Availability Matrix](/infrastructure/product-availability-by-location.mdx) instructions;
       * `<volume_name>` — disk name.
  </TabItem>
</Tabs>

<Formbricks />
