# Расширение дискового пространства

{% hint style="danger" %}
Обратите внимание, что расширение возможно в рамках одной архитектуры (переход **с NVMe на NVMe** или **с SSD на SSD**). Если Вы переходите, к примеру, с накопителя NVMe на SSD, то требуется полная замена диска с удалением данных.
{% endhint %}

<figure><img src="/files/y3wpVEtY0k73c2B1EFkk" alt=""><figcaption></figcaption></figure>

Подключитель к виртуальному серверу. Затем используем команду для установки необходимого ПО.

```
apt install cloud-utils -y
```

Получаем информацию об используемом разделе системы. На нашем примере (и как правило, на всех VPS-серверах от Contabo) это — sda3

```
mount | grep ' / '
```

<figure><img src="/files/mT9kqPbDfyV5dGacepw3" alt=""><figcaption></figcaption></figure>

Используем команды для расширения накопителя.

```
sudo growpart /dev/sda 3
```

```
sudo resize2fs /dev/sda3
```

{% hint style="info" %}
В обоих случаях цифра «‎3» обозначает используемый раздел накопителя. Замените на свое значение, если это необходимо.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://spacecore.gitbook.io/wiki/contabo/vps-resize.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
