Resize LXC Disk to max

robetus

Well-Known Member
Jul 8, 2017
54
1
48
Las Vegas, NV
Is there an easy way to resize an LXC containers disk to the max size? I see outputs like:
Code:
Insufficient free space: 25600 extents needed, but only 1541 available
What are these numbers? I tried kilobytes and bytes but it didn't make sense. If I knew the available number I could probably get it close. It would be great if you could just resize the disk to max available size, I don't think there is a way to do it in the proxmox GUI. Using v7.3.3.
 
I kinda figured out a way to do this but it's not exact. The default extent size in a proxmox installation is 4mb so it's 4mb x the number extents available to give you an approximate total volume in gb or tb. This exact number will not work in the resize, you'll need to take off around 100gb for it work.

Example: 4MB x 923141 available extents = 3692.564gb but only 3606gb worked to resize the disk.
 

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!