proxmox add local-lvm
Posted: Sun Jun 22, 2025 4:26 pm
extend qcow2 and use free space as local-lvm
- I want to add another VLM-Thin partition for VM disk storage on the free space on the existing disk
From reading your question, it sounds like you may prefer to just extend your current data volume. To do that:
1. Create a new partition on your disk, using the empty space. I'd recommend fdisk [1] for this.
2. Create a physical volume on the new partition, e.g. /dev/sda4: pvcreate /dev/sda4.
3. Extend the pve volume group (which contains root and data) with the new volume: vgextend pve /dev/sda4.
4. Extend the "data" logical volume: lvextend -L +xG /dev/pve/data (where x is size in Gb).
You can also repeat step 4 to expand your root partition. You'll just need to resize the filesystem after with resize2fs [2].
To get a clearer idea on LVM, I'd recommend reading this [3].
[1] https://man7.org/linux/man-pages/man8/fdisk.8.html
[2] https://linux.die.net/man/8/resize2fs
[3] https://opensource.com/business/16/9/li ... -guide-lvm
- I want to add another VLM-Thin partition for VM disk storage on the free space on the existing disk
From reading your question, it sounds like you may prefer to just extend your current data volume. To do that:
1. Create a new partition on your disk, using the empty space. I'd recommend fdisk [1] for this.
2. Create a physical volume on the new partition, e.g. /dev/sda4: pvcreate /dev/sda4.
3. Extend the pve volume group (which contains root and data) with the new volume: vgextend pve /dev/sda4.
4. Extend the "data" logical volume: lvextend -L +xG /dev/pve/data (where x is size in Gb).
You can also repeat step 4 to expand your root partition. You'll just need to resize the filesystem after with resize2fs [2].
To get a clearer idea on LVM, I'd recommend reading this [3].
[1] https://man7.org/linux/man-pages/man8/fdisk.8.html
[2] https://linux.die.net/man/8/resize2fs
[3] https://opensource.com/business/16/9/li ... -guide-lvm