Skip to content

Incorrect reporting of LVM pool space usage #1414

Closed
@Ordspilleren

Description

@Ordspilleren

Required information

  • Distribution: Arch Linux
  • Distribution version: latest
  • The output of "incus info" or if that fails:
    • Kernel version: 6.11.8-arch1-2
    • LXC version: 6.0.2
    • Incus version: 6.6
    • Storage backend in use: lvm

Issue description

I have the following Logical Volumes on my LVM setup:

  LV                    VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  IncusThinPool         vg0 twi-aotz-- 100.00g             0.00   10.43
  [IncusThinPool_tdata] vg0 Twi-ao---- 100.00g
  [IncusThinPool_tmeta] vg0 ewi-ao---- 100.00m
  [lvol0_pmspare]       vg0 ewi------- 100.00m
  root                  vg0 -wi-ao----  50.00g

Running incus storage info on the LVM pool seems to indicate that 10.43 GiB is in use:

info:
  description: ""
  driver: lvm
  name: lvm
  space used: 10.43GiB
  total space: 100.00GiB
used by:
  profiles:
  - default

With my understanding of LVM, this seems like an error. The Meta% usage does not, at least if I understand correctly, refer to the total usage of the pool, only the usage of the metadata LV which in this case is 100 MiB. Refering to the lvmthin man page:

For active thin pool LVs, the 'lvs' command displays "Data%" (-o data_percent) and "Meta%" (-o metadata_percent). Data percent is the percent of space in the data LV that is currently used by thin LVs. Metadata percent is the percent of space in the metadata LV that is currently used by the dm-thin module.

Am I misunderstanding something, or is Incuss incorrectly including the metadata usage in the total usage of the pool?

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions