# Resizing a block volume

{% hint style="warning" %}
Following the block volume resize operation through the dashboard, **it is necessary to power down and restart the instance via the dashboard** (if the instance wasn't previously shut down).
{% endhint %}

#### Resizing the OS volume

The OS volume is resized automatically after the next system start. Please make sure you perform shutdown from the cloud dashboard in order for the change in volume size to be detected during start-up.

#### Resizing other block volumes

Run these commands on your instance to resize the non-OS volume.

Replace `<TARGET>` with the volume target e.g. `vdb`.

**Instructions for EXT4 filesystem (default)**

**If partitioned** (e.g. with OS volumes), that are also ext4 by default. The default partition number is 1):

```bash
growpart /dev/<TARGET> <PARTITION_NUMBER>
resize2fs /dev/<TARGET><PARTITION_NUMBER>
```

{% hint style="warning" %}
There's one space character between the parameters of the `growpart` command
{% endhint %}

**If not partitioned:**

```bash
resize2fs /dev/<TARGET>
```

**Instructions for XFS filesystem**

Same process as in #instructions-for-ext4-filesystem-default, but replace `resize2fs` with `xfs_growfs`:

```bash
xfs_growfs /dev/<TARGET>
```

#### Useful commands

To check if the volume is partitioned use:

```bash
lsblk
```

To check the filesystem type use:

```bash
df -hT
```


---

# 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://docs.arkanecloud.com/arkane-cloud/storage/block-volumes/resizing-a-block-volume.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.
