# Increase diskstorage for Linux VMs

To increase the storage drive you first have to increase the storagecapacity in the proxmox admin gui. Then you can use the following commands in this order to increase the size of the volume.

```bash
fdisk -l
```

```
cfdisk
```

Next choose "Resize" and then "Write".

```bash
fdisk -l <pathtomaindevice> #example path: /dev/sda
```

```bash
parted
```

Next choose "print" -&gt; "Resizepart". Enter number of device. Then choose "quit".

```
pvresize <pathtonewdevice>
```

```
lvextend -l +100%FREE <pathtolocalpartition>
```

```
resize2fs <pathtolocalpartition>
```

```
df -h
```

Then reboot the machine.