Maxroot Command doesn't work?

ejc317

Member
Oct 18, 2012
263
0
16
We have a 250GB drive and we want a 200GB pve-root and a 24GB swap with rest going to storage.

WE did

linux maxroot=200 swapsize=24 and it just wont work (the swap part works ...) did something change?
 
with maxroot you cannot increase the root volume. this defines the maximum size of the root partition. as the calculate size is lower (as you only have a 250 GB) it does not increase to 200.

in order to get what you want, do the following:

Code:
linux maxvz=26 swapsize=24

you will still not get a root volume with 200 GB, but you can extend the root volume with LVM standard toolset as you have about 137 GB free space in your VG pve.
 
Got this to work - thank you.

LVresize -L +xxG /dev/mapper/pve-root
E2fsck -f /dev/mapper/pve-root
resize2fs /dev/mapper/pve-root

had to reboot a few times but worked - did have a few orphaned inodes
 
Last edited:

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!