Trying to understand how my storage works

abasel

New Member
Dec 30, 2022
15
0
1
In my lab setup, Proxmox shows the following:
1672378365572.png
Running lsblk shows

Code:
root@proxmox-2:~# lsblk
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                            8:0    0 149.1G  0 disk
├─sda1                         8:1    0  1007K  0 part
├─sda2                         8:2    0   512M  0 part /boot/efi
└─sda3                         8:3    0 148.5G  0 part
  ├─pve-swap                 253:0    0     8G  0 lvm  [SWAP]
  ├─pve-root                 253:1    0  47.1G  0 lvm  /
  ├─pve-data_tmeta           253:2    0     1G  0 lvm
  │ └─pve-data-tpool         253:6    0  75.4G  0 lvm
  │   └─pve-data             253:7    0  75.4G  1 lvm
  └─pve-data_tdata           253:3    0  75.4G  0 lvm
    └─pve-data-tpool         253:6    0  75.4G  0 lvm
      └─pve-data             253:7    0  75.4G  1 lvm
sdb                            8:16   0 931.5G  0 disk
└─sdb1                         8:17   0 931.5G  0 part
  ├─storage-vm--100--disk--0 253:4    0     4M  0 lvm
  ├─storage-vm--100--disk--1 253:5    0    32G  0 lvm
  ├─storage-vm--101--disk--0 253:8    0    35G  0 lvm
  └─storage-vm--102--disk--0 253:9    0    40G  0 lvm

sda is 149GB in total, how is it that the dashboard shows sda3 as $159GB.

Last question for now, is the 89% of sda3 being used to run Proxmox itself?
 
Hi,

this is simply a matter of representation, the one being Gibibyte (base 1024, so 1GiB=1024MiB), other being Gigabyte (base 1000, so 1GB = 1000MB).

Last question for now, is the 89% of sda3 being used to run Proxmox itself?
Can't really tell from the output you provided. What is the output of df -h?
 
Hi Lukas, sorry for late reply (2023 has started with a bang ;) )

root@proxmox-2:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 1.4M 1.6G 1% /run
/dev/mapper/pve-root 47G 17G 27G 39% /
tmpfs 7.8G 49M 7.8G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 511M 336K 511M 1% /boot/efi
/dev/fuse 128M 16K 128M 1% /etc/pve
tmpfs 1.6G 0 1.6G 0% /run/user/0
 
It's not only used by Proxmox VE. You usually got 3 LVs on your system disk. A "local" storage (in your case 47GB) for your root filesystem, a LV for swap and the remaining space will be used as a LVM-Thin pool (storage named "local-lvm") where you could store virtual disks for your VMs/LXC only.
 
Ok, I must have missed something as I thought I was putting all my VMS on my 1 TB disk (sdb1), leaving sda3 for just proxmox. Not sure what I did to local-lvm or how to release it for "local" storage
 
Ok, I must have missed something as I thought I was putting all my VMS on my 1 TB disk (sdb1), leaving sda3 for just proxmox. Not sure what I did to local-lvm or how to release it for "local" storage
You would need to destroy the LVM-Thin pool LVs. And then use the CLI to extend your other LVs and then grow your root filesystem.
 
You would need to destroy the LVM-Thin pool LVs. And then use the CLI to extend your other LVs and then grow your root filesystem.
Looking at the dashboard, I can't see where I delete/destroy LVM-Thin, or is this also done via the CLI?

1672958679530.png

1672958764723.png