---
title: "Change cloud server disk parameters"
sidebar_label: "Change disk parameters"
sidebar_position: 4
description: "How to change the disk type, reduce and increase the disk, and change the IOPS count"
---

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

# Change cloud server disk parameters

## Change disk type \{#change-volume-type}

You can only change the type of a [network volume](/cloud-servers/volumes/about-network-volumes.mdx) — to another network or a local one.

<Tabs queryString="change-volume-type">
  <TabItem value="network" default>
    <TabItemLabel>
      To another network
    </TabItemLabel>

    It is not possible to change the network volume type to another one directly — you need to create a new disk with the required [type](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-types).

    1. In the current disk's pool segment:

       * [create a disk image](/cloud-servers/images/create-image.mdx#create-image-from-volume);
       * or [detach the current disk](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server) from the cloud server and [create a new disk from it](/cloud-servers/volumes/create-volume.mdx).
    2. Optional: [attach the created disk](/cloud-servers/volumes/attach-detach-volume.mdx#attach-network-volume-to-server) to the server and [detach the previous one](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server).
    3. Optional: if you attached the disk as a boot (system) disk, then [reboot the server](/cloud-servers/manage/reboot-server.mdx).
  </TabItem>

  <TabItem value="local">
    <TabItemLabel>
      To a local
    </TabItemLabel>

    It is not possible to change the network volume type to a local disk directly — create a new cloud server with a local disk.

    1. In the current disk's pool segment:

       * [create a disk image](/cloud-servers/images/create-image.mdx#create-image-from-volume);
       * or [detach the current disk](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server) from the cloud server and [create a new disk from it](/cloud-servers/volumes/create-volume.mdx).
    2. [Create a new cloud server](/cloud-servers/create/create-server.mdx) with a local disk and select the created image or disk as the source.
  </TabItem>
</Tabs>

## Reduce disk size \{#shrink-volume}

It is not possible to reduce a local disk.

You cannot reduce the size of a network volume directly, as it may compromise the integrity of the disk's file system and data — you can create a new, smaller disk.

1. In the current disk's pool segment, [create an empty disk](/cloud-servers/volumes/create-volume.mdx) of a smaller size.
2. [Attach the created disk](/cloud-servers/volumes/attach-detach-volume.mdx#attach-network-volume-to-server) to the cloud server.
3. [Boot the server in Rescue mode](/cloud-servers/troubleshooting/boot-to-rescue.mdx).
4. Transfer data from the old disk to the new one—copy files manually or use the `dd` utility.
5. Optional: [detach the old disk](/cloud-servers/volumes/attach-detach-volume.mdx#detach-network-volume-from-server) from the server and [delete the disk](/cloud-servers/volumes/delete-volume.mdx).

## Increase disk size \{#enlarge-volume}

It is not possible to increase a local disk directly — you can [change the configuration](/cloud-servers/manage/change-server-configuration.mdx) of the cloud server it is connected to. The local disk will expand automatically.

You can increase a network volume by following the instructions below. After increasing, you must prepare the disk for use.

Another way to increase disk space on a cloud server is to [attach an additional disk](/cloud-servers/volumes/attach-detach-volume.mdx#attach-network-volume-to-server).

:::warning

Before working with partitions and the file system, we recommend creating a disk image, snapshot, or another disk from this disk to avoid data loss in case of an error.

:::

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

    1. In the [control panel](https://my.selectel.ru/vpc/default/images/), click **Products** in the top menu and select **Cloud Servers**.
    2. Go to the **Disks** section.
    3. Open the disk page → **Settings** tab.
    4. In the **Size** field, click <EditIcon />.
    5. Enter the new disk size in GB; keep in mind the [disk maximum size limits](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-limits).
    6. Click **Save**.
    7. Prepare the disk for use:

       * if you have increased the boot disk, [reboot the cloud server](/cloud-servers/manage/reboot-server.mdx) or expand the disk according to the instructions below; ;
       * if you have increased an additional disk, expand the disk according to the instructions below.
  </TabItem>

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

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).
    2. Change the disk size:

       ```bash
       openstack volume set --size <size> <volume>
       ```

       Specify:

       * `<size>` — disk size in GB; keep in mind the [disk maximum size limits](/cloud-servers/volumes/about-network-volumes.mdx#network-volume-limits);
       * `<volume>` — disk ID or name. You can view the list using `openstack volume list`
    3. Prepare the disk for use:

       * if you have increased the boot disk, [reboot the cloud server](/cloud-servers/manage/reboot-server.mdx) or expand the disk according to the instructions below; ;
       * if you have increased an additional disk, expand the disk according to the instructions below.
  </TabItem>
</Tabs>

## Preparing the disk for use after increasing \{#prepare-volume}

If you have increased a disk, you must expand it — the configuration steps depend on the operating system.

<Tabs queryString="prepare-vlolume">
  <TabItem value="linux" default>
    <TabItemLabel>
      Linux
    </TabItemLabel>

    1. [Connect to the server](/cloud-servers/manage/connect-to-server.mdx).

    2. Open the list of all disks connected to the server:

       ```bash
       lsblk
       ```

       Example output:

       ```bash
       NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
       sda       8:0    0    8G  0 disk
       ├─sda1    8:1    0    8G  0 part /
       └─sda14   8:14   0    8M  0 part
       sdb       8:16   0    7G  0 disk
       ```

    3. Expand the disk (using `growpart`) and initiate the file system change (using `resize2fs`):

       ```bash
       growpart /dev/<sdb> 1
       resize2fs /dev/<sdb1>
       ```

       Specify `<sdb>` — the disk to be expanded.
  </TabItem>

  <TabItem value="windows">
    <TabItemLabel>
      Windows
    </TabItemLabel>

    1. [Connect to the server](/cloud-servers/manage/connect-to-server.mdx).
    2. Open the built-in **Disk Management** utility.
    3. Right-click the disk and select **Extend Volume**.
  </TabItem>
</Tabs>

## Change IOPS count \{#update-iops}

You can only change the IOPS count for a network volume of the SSD Universal v2 or SSD Fast v2 type that is in the `AVAILABLE` or `IN-USE` status. There is no limit on the number of IOPS changes.

1. In the [control panel](https://my.selectel.ru/vpc/default/images/), click **Products** in the top menu and select **Cloud Servers**.
2. Go to the **Disks** section.
3. Open the disk page → **Settings** tab.
4. In the **IOPS** field, click **Change**.
5. Specify the new IOPS count.
6. Click **Confirm changes**.

<Formbricks />
