missing ~20 GB of the 32GB usb stick

FuriousRage

Renowned Member
Oct 17, 2014
119
4
83
I installed PVE on a 32GB stick.
but pve root is barely 10GB

Filesystem Size Used Avail Use% Mounted on
Code:
udev                          63G     0   63G   0% /dev
tmpfs                         13G  3.0M   13G   1% /run
/dev/mapper/pve-root          13G  9.6G  2.7G  79% /
tmpfs                         63G   49M   63G   1% /dev/shm
tmpfs                        5.0M  4.0K  5.0M   1% /run/lock
efivarfs                     128K   57K   67K  46% /sys/firmware/efi/efivars
nvmeDisks                    436G  256K  436G   1% /tmp
/dev/sdi2                    511M   12M  500M   3% /boot/efi
nvmeDisks/subvol-102-disk-0  8.0G  3.3G  4.8G  41% /nvmeDisks/subvol-102-disk-0
nvmeDisks/subvol-115-disk-0  8.0G  926M  7.1G  12% /nvmeDisks/subvol-115-disk-0
nvmeDisks/subvol-110-disk-0  5.0G  475M  4.6G  10% /nvmeDisks/subvol-110-disk-0
nvmeDisks/subvol-104-disk-0  8.0G  494M  7.6G   7% /nvmeDisks/subvol-104-disk-0
nvmeDisks/subvol-111-disk-0  2.0G  615M  1.5G  30% /nvmeDisks/subvol-111-disk-0
nvmeDisks/subvol-116-disk-0  8.0G  929M  7.1G  12% /nvmeDisks/subvol-116-disk-0
nvmeDisks/subvol-114-disk-0   10G  3.6G  6.5G  36% /nvmeDisks/subvol-114-disk-0
/dev/sda                     124T   29T   63T  32% /srv/.snapshots
/dev/sda                     124T   29T   63T  32% /srv/templates
/dev/sda                     124T   29T   63T  32% /srv/backups
/dev/sda                     124T   29T   63T  32% /srv/media
/dev/sda                     124T   29T   63T  32% /srv/machines
/dev/fuse                    128M   28K  128M   1% /etc/pve
nvmeDisks/subvol-109-disk-0   10G  1.8G  8.3G  18% /nvmeDisks/subvol-109-disk-0
nvmeDisks/subvol-100-disk-0  8.0G  1.3G  6.8G  16% /nvmeDisks/subvol-100-disk-0
nvmeDisks/subvol-112-disk-0   16G  1.3G   15G   8% /nvmeDisks/subvol-112-disk-0
tmpfs                         13G     0   13G   0% /run/user/0

I do have 2 storages i disabled:
local directory VZDump backup file
local-lvm LVM-thin disk image, container

Because i wanna use the raided nvme for CT containers and my /srv for mass storage as default options, and the local* was always the default.

fdisk /dev/sdi:
Command (m for help): p

Code:
Disk /dev/sdi: 28.64 GiB, 30752636928 bytes, 60063744 sectors
Disk model: Ultra Fit       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 869BE68A-BA75-4B27-92F4-C4D4FE2F9B0E

Device       Start      End  Sectors  Size Type
/dev/sdi1       34     2047     2014 1007K BIOS boot
/dev/sdi2     2048  1050623  1048576  512M EFI System
/dev/sdi3 1050624 60063710 59013087 28.1G Linux LVM


I have run that lvextend, but still missing like 20 GB, and my pve / is at around 10GB/12GB
Datacenter -> pve -> Summary:
/ HD space 78.20% (9.58 GiB of 12.25 GiB)


So how to get back the missing(?) 20 or so GB?
 
Hi,

Proxmox (logs and configs (/etc/pve) will kill any usb device within months …. Use at least a external spinning hdd or a servergrade ssd (consumer will also wearout fast but not that fast as a usb stick).

Otherwise proxmox installed a LVM and did not use the full available space but also created a LVM-thin volume. You could delete this lvm thin volume and resize the lvm pve root volume … but again I really recommend you not to use a usb stick!

So long
 
IDK what you're on about, df clearly shows root is 13GB not 10. You have ~9.6GB used with some free space left over still.

However, you really really don't want to try and run Proxmox 24/7 from a usb stick. It's fine for a recovery environment that doesn't see a lot of use, but there is a lot of writing involved. (There are things you can do to mitigate this, log2ram + zram -- but it's not esxi or *NAS)

Do yourself a huge favor - Reinstall to external SSD (preferably at least 256-512GB) and turn off cluster services and atime everywhere (including in-guest) to save on writes.

To fix your missing root free space easily with a GUI, install webmin (runs on port 10000), login with browser, and use the LVM module. It's literally a 1-button click to tell root to expand and use the remaining slack LVM space. No reboot or terminal command needed. There is also WeLees Visual LVM which comes in handy, but the webserver for it uses 100% CPU and I end up sending it a kill -SIGSTOP / SIGCONT when I need it.

You can still use the existing usb stick for an emergency / recovery environment, it will have proper ZFS and LVM support + whatever utilities as mentioned above

But when you reinstall, go thru the Advanced options when you see the ext4 and make sure you allocate things properly. You also have the option to install to ZFS and bypass LVM entirely, with the option to create a separate lvm-thin in the future.

https://github.com/kneutron/ansitest/tree/master/proxmox

Also - remember that it's important to have backups. Setup Proxmox Backup Server on separate hardware and take advantage of dedup.
 
  • Like
Reactions: Retro1982