Create a disk
Create a disk
Network disk can be created together with the cloud server or can be created separately and then connected to the server.
Local disk is only created in conjunction with the cloud server.
You can create a network disk from a variety of sources:
- empty — this disk initially contains no data. You can use it to scale the disk space on the cloud server;
- from an image — prepared by Selectel or your own downloaded image. You can use it to replace the boot disk when restoring a server or to clone a server;
- from another disk, snapshot or backup — create a copy of the disk.
The cost of a network disk depends on disk type and pool segment in which it is created. You can calculate the cost in resource calculator.
Control panel
OpenStack CLI
- In control panel go to Cloud platform → Disks.
- Click Create a disk.
- Enter a new disk name or leave the name that is automatically created.
- Select the location of the disk — pool and pool segment. This should be the cloud server pool segment to which you will later connect the disk. The pool segment affects the cost and limits of the disk.
- Select the source of the disk (finished image, own image, disk, snapshot or backup) and press Select. If you want to create a blank disk, skip this step.
- Select disk type. The disks differ in read/write speeds and throughput values.
- Specify the size of the disk in GB. The size of the disk created from the source must be equal to or larger than the size of the source. We recommend that you do not exceed disk limitations to the maximum size. Once created, the disk cannot be shrunk directly.
- Customize the creation of scheduled backups for the disk. Select a previously created plan or create a new one.
- Click Create a disk.
-
Create a network drive:
openstack volume create
[--image <image> | --snapshot <snapshot> | --source <volume>] \
--size <size> \
--type <volume_type> \
--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 finished or own image. Parameter<image>
— ID or image name. You can view the list of images usingopenstack image list
;--snapshot <snapshot>
— to create a disk from snapshot. Parameter<snapshot>
— ID or name of the snapshot. You can view the list of snapshots withopenstack snapshot list
;--source <volume>
— to create a disk from another network drive. Parameter<volume>
— ID or disk name. You can view the list of network drives byopenstack volume list
;
<size>
— disk size in GB. For disks from the source, the minimum size must be equal to the size of the source. Take into account network disk limits to the maximum size;<volume_type>
— ID or name network drive type. For example,fast.ru-9a
— name to create a network drive with the SSD type Fast in the pool segment ru-9a. The list of types can be viewed withopenstack volume type list
or in a table List of network disk types in all pool segments;<pool_segment>
— the pool segment where the network disk will be created, e.g.ru-9a
. The list of available pool segments can be found in the instructions Availability matrix;<volume_name>
— disk name.
- source type: