How to use more than 1/4 of disk for root?

May 22, 2020
16
2
8
53
I installed PVE ona 32GB USB stick, that leaves me with a 7GB pve-root partition, 3.5G for swap, and 12.1G for data.
After using PVE for a week, I started running out of root space.

I thought about re-installing and correcting the space allocation, but the install wiki says that the max root partition size is 1/4 of total, so I'm already at max size.
https://pve.proxmox.com/wiki/Installation#advanced_lvm_options

I really don't need the data partition, I have plenty of other disks to use for data.

How do I allocate more than 1/4 of total available install disk space to root at install time?
 
I installed PVE ona 32GB USB stick
Is that a USB stick that can handle a lot of writes? Most will fail quite quickly because PVE logs quite a bit to the root disk, thus causing a lot of writes.

You could delete the local-lvm storage and the `data` logical volume, then extend the `root` volume and the FS inside it.

Another option would be to install a Debian first with the disk layout you prefer and then install PVE on top. See https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_install_proxmox_ve_on_debian
 
I tried to install again, on a 64GB USB3 mSATA, this time I modified the install options, swapsize=8, minfree=0, maxvz=0, and
maxroot=48, the result is a 14.8GB root volume.

Code:
root@server-1:~# lsblk
...
sdr           65:16   0  59.6G  0 disk
├─sdr1        65:17   0  1007K  0 part
├─sdr2        65:18   0   512M  0 part /boot/efi
└─sdr3        65:19   0  59.1G  0 part
  ├─pve-swap 253:0    0     8G  0 lvm  [SWAP]
  └─pve-root 253:1    0  14.8G  0 lvm  /

root@server-1:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                   16G     0   16G   0% /dev
tmpfs                 3.2G  9.1M  3.2G   1% /run
/dev/mapper/pve-root   15G  1.9G   13G  13% /
tmpfs                  16G   43M   16G   1% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
tmpfs                  16G     0   16G   0% /sys/fs/cgroup
/dev/sdr2             511M  320K  511M   1% /boot/efi
/dev/fuse              30M   16K   30M   1% /etc/pve
tmpfs                 3.2G     0  3.2G   0% /run/user/0

So the installer is enforcing the root may not be larger than 1/4 of disk rule, why?
 
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!