Empty LVM storage shows as full in UI although it's empty

Sagi

New Member
Nov 6, 2023
15
0
1
I Installed PROXMOX on a new server, and after a few days, the storage on the UI started to show like it's full, although I haven't created any VMs or anything on it.
1699438444521.png
This PVE is part of a cluster, and I am afraid that other nodes have somehow written to this disk.
I have a few nodes, each one has its own disk, and that's it.

The storage (named eco624-data), isn't marked as "Shared" and is only configured for 1 node (eco624).
Here are some more details about my current configuration:
Code:
root@eco624:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                Qi3Ss0-DZWl-BED4-MSXk-33Ds-s7m2-jwksDM
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-05-12 16:38:48 +0200
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
  
  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                02GCv4-W8BV-wOp4-cKcV-LdiE-1d5d-MB2Zd3
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-05-12 16:38:48 +0200
  LV Status              available
  # open                 1
  LV Size                96.00 GiB
  Current LE             24576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
  
  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                QBiVkl-YS8K-CREo-O5nN-SkhG-QcSa-IobfhC
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-05-12 16:39:04 +0200
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                <611.73 GiB
  Allocated pool data    0.00%
  Allocated metadata     0.29%
  Current LE             156602
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

Code:
root@eco624:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,iso,backup,images
        shared 0

dir: data
        path /var/lib/vz_data
        content images,vztmpl,rootdir,backup,iso
        nodes eco551,eco623,eco620,eco554,eco621,eco622
        prune-backups keep-all=1
        shared 1

lvm: data-storage
        vgname Data-Storage
        content images,rootdir
        nodes eco554
        shared 1

lvm: local-lvm
        vgname pve
        content images,rootdir
        nodes eco612,eco613,eco623
        shared 0

lvm: eco624-data
        vgname pve
        content images,rootdir
        nodes eco624
        shared 0

Also, when running "dd if=/dev/pve/data bs=1M count=1 | less" on node eco624, I get an empty file, which makes me think that my storage (eco624-data) is empty.
So is my storage full or empty?
How can I be sure that if I remove this node (eco624) from the cluster, other nodes that are running VMs won't be affected (because they might kept data on eco624-data)?
 
Another question that might help me understand my case:
If I install a fresh PVE, I get 2 storages- local (dir) and local-lvm (lvm-thin).
If I now add another storage of type LVM it's going to show like it's full, although there is nothing on this storage.

Why is that?
How can I truly know what is the left space?