mirror of
https://github.com/tiyn/wiki.git
synced 2025-12-30 03:29:46 +01:00
960 B
960 B
Proxmox
Proxmox is an environment for virtual machines and containers.
Disk Management
Enlarging disk of a VM
ATTENTION: Please note that the partition to enlarge has to be the last one with the free space after it. This guide does not consider LVMs and is written for partitions with ext4 filesystems.
SSH into Proxmox.
Enlarge a disk by using:
qm resize <vmid> <vm-disk-to-enlarge> <size>
For example:
qm resize 100 ide0 +100G
SSH into the VM.
- run
lsblkcheck if the disk size has changed - if not
rebootthe virtual machine
In the following it is assumed that the partition to enlarge is /dev/sda2
- change the size of the partition with
parted /dev/sda - inside of parted run
print freeand check where the free space after your partition ends - run
resizepartand follow the instructions; End is the number you checked in the last step quitparted
Now you need to resize the filesystem with resize2fs /dev/sda2.