Error Storage VM's 100% utilization

pvpaulo

Member
Jun 15, 2022
33
1
13
With dear day.
Could you please help me
I'm experiencing some strange behavior on proxmox.
My client had deleted the storage from the VM's disks in Datacenter > Storage

However, after recreating the storage, it returned with 100% usage as per the attached image.
Another behavior that I also noticed was that when checking the disks allocated to the storage in Storage > VM disks
No VM appears

I will forward the prints below about my current environment
If anyone can help.
I already checked on the command line.
The LVM of these storages is 100% used.
I ran:
#pvs
# vgs
#lvs
 

Attachments

  • Captura de tela 2025-02-28 090013.png
    Captura de tela 2025-02-28 090013.png
    26.5 KB · Views: 3
  • Captura de tela 2025-02-28 090047.png
    Captura de tela 2025-02-28 090047.png
    10.8 KB · Views: 3
  • Captura de tela 2025-02-28 090111.png
    Captura de tela 2025-02-28 090111.png
    15.8 KB · Views: 3
Hi!

However, after recreating the storage, it returned with 100% usage as per the attached image.
How was the storage recreated? Could you post the /etc/pve/storage.cfg?

I ran:
#pvs
# vgs
#lvs
I assume that all of these commands did not produce any output. Have you tried to run pvscan --cache?
 
my /etc/pve/storage.cfg:
lvm: DATA-HDD
vgname vg_HDD
content rootdir,images
shared 0

lvm: DATA-SSD
vgname vg_SSD
content images,rootdir
shared 0


# pvs
PV VG Fmt Attr PSize PFree
/dev/sda1 vg_HDD lvm2 a-- <1.82t 0
/dev/sdb3 pve lvm2 a-- <39.00g 4.75g
/dev/sdb4 vg_SSD lvm2 a-- <406.62g 0


# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- <39.00g 4.75g
vg_HDD 1 7 0 wz--n- <1.82t 0
vg_SSD 1 8 0 wz--n- <406.62g 0
 
And what is the output of lvs?

vg_SSD 1 8 0 wz--n- <406.62g 0
At least the output of both (1) pvs and (2) vgs show that (1) the physical disk /dev/sdb4 is completely assigned to volume groups and (2) the volume group vg_SSD was assigned all its space.
 
Last edited:
lvs:

lv-vms-HDD vg_HDD twi-aotz-- <1.82t 64.31 23.31
vm-100-disk-0 vg_HDD Vwi-aotz-- 150.00g lv-vms-HDD 13.23
vm-101-disk-0 vg_HDD Vwi-aotz-- 800.00g lv-vms-HDD 81.57
vm-101-state-installAD vg_HDD Vwi---tz-- <10.49g lv-vms-HDD
vm-102-disk-0 vg_HDD Vwi-aotz-- 1.07t lv-vms-HDD 40.10
vm-103-disk-0 vg_HDD Vwi-aotz-- 131.00g lv-vms-HDD 40.87
vm-105-disk-0 vg_HDD Vwi-aotz-- 50.00g lv-vms-HDD 54.51
lv-vms-SSD vg_SSD twi-aotz-- 406.41g 58.00 27.57
snap_vm-101-disk-0_installAD vg_SSD Vri---tz-k 4.00m lv-vms-SSD vm-101-disk-0
 
lv-vms-SSD vg_SSD twi-aotz-- 406.41g 58.00 27.57
snap_vm-101-disk-0_installAD vg_SSD Vri---tz-k 4.00m lv-vms-SSD vm-101-disk-0
Since snapshots are not available for the LVM storage plugin... Could it be the deleted storage was a LVM thin pool before?

Just for clarification, the storages added in "Datacenter > Storage" are just to make Proxmox VE aware of these storages, so that PVE can use them for its various purposes. They do not do any other action than informing PVE about existing storage. The setup must be done in either the WebGUI, CLI or manually, depending on the storage type.
 
actually it has lvm-thin
Customer improperly removed storage in datacenter > storage

And when you added it, you added it with the same name but as normal LVM
without being LVM-Thin

if I remove this sotarge in datacenter > storage
And adding again how would lvm-thin work?
Could I lose data?

I would like to try adding it like in the image below:
 

Attachments

  • Captura de tela 2025-02-28 130416.png
    Captura de tela 2025-02-28 130416.png
    11.5 KB · Views: 1
I would like to try adding it like in the image below:
Yes, this should be correct AFAICS.

Could I lose data?
No, adding/removing a storage in "Datacenter > Storage" is only removing the entry in the /etc/pve/storage.cfg file, i.e. whether Proxmox VE does have awareness that the storage exists. Adding/Changing/Removing data is only done after checks and on user actions (e.g. allocating VM volumes or removing a VM volume explicitly).