# Increase Disk

For Example increase disk of VM 101 to 100G

<pre><code><strong>// run this on proxmox host
</strong><strong>qm resize 101 scsi0 100G
</strong></code></pre>

Resize the disk on VM

```
// Run this on VM
#!/bin/bash

set -e

echo "=== Install tools ==="
sudo apt update -y
sudo apt install -y cloud-guest-utils lvm2

echo "=== Resize partition sda3 ==="
sudo growpart /dev/sda 3

echo "=== Resize Physical Volume ==="
sudo pvresize /dev/sda3

echo "=== Extend Logical Volume ==="
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

echo "=== Resize Filesystem ==="
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

echo "=== DONE ==="
df -h
lsblk
```

Verify new disk

```
// run this on VM
df -h
```


---

# 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://documentation.codeblocklabs.com/other/proxmox/increase-disk.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.
