[SOLVED] resize debian VM volume

h.b.c

New Member
Apr 15, 2023
4
0
1
asdfasdfadsfqwe.png

Hello
Initially I created my devian VM with 30G disk, and resize to about 212G in GUI.
But the increased size has not been reflected actually.

I searched some articles and tried "lvextend" command, but failed.

How do I do?
Please help me.
Thanks.
 
Hello!

Hello. The lvextend command will not help in this case, since you do not have LVM.

In your case you need:

1. Turn off swap (swapoff /dev/sda3)
2. Remove swap partition
3. Expand the root partition (for example you may see this guide https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount or https://support.tools/post/online-resize-of-a-root-ext4-file-system/)
4. Create (if needed) a new swap partition (or swapfile)
5. Expand the root file system (resize2fs /dev/sda2)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!