Create a disk
Create a disk
network volume can be created with the cloud server or created separately and then connected to the server.
Local disk is only created with the cloud server.
You can create a network volume from a variety of sources:
- empty — this disk initially contains no data. You can use it to scale the disk space on your 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 the disk type and the pool segment in which it is created. You can calculate the cost in the resource calculator.
- Control panel
- OpenStack CLI
- In Control Panel, go to Cloud Platform → Disks.
- Click Create Disk.
- Enter a new disk name or leave the name that is automatically created.
- Select the disk location — 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 disk source (ready-image, own-image, disk, snapshot or backup) and click 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 disk size 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 limits for the maximum size. Once created, the disk cannot be directly shrunk.
- Configure scheduled backups for the disk. Select a previously created plan or create a new one.
- Click Create Disk.
-
Create a network volume:
openstack volume create
[--image <image> | --snapshot <snapshot> | --source <volume>] \
--size <size> \
--type <volume_type> \
[--availability-zone <new_zone>] \
<volume_name>Specify:
- source type:
- to create a blank disk, do not specify a source type;
--image <image>
— to create a disk from image. The<image>
parameter is the name or ID of the image, the list can be viewed withopenstack image list
.--snapshot <snapshot>
— to create a disk from snapshot. The<snapshot>
parameter is the name or ID of the snapshot, the list can be viewed withopenstack volume snapshot list
--source <volume>
— to create a disk from another disk. The<volume>
parameter is the name or ID of the disk, the list can be viewed withopenstack volume list
--size <size>
— disk size in GB. For disks from the source, the minimum size must be equal to the size of the source. Observe disk limits for the maximum size;--type <volume_type>
— disk type. Disk types differ in bandwidth and read/write speed. The list of available types can be viewed withopenstack volume type list
--availability-zone <new_zone>
— new pool segment disk parameter. Specify only if you are creating a disk from another disk located in a different segment;<volume_name>
is the name of the disk.
- source type: