Monday to Saturday 9:00–19:00, Sunday closedFree pickup anywhere in Germany · drop-off in Berlin and Hamburg

Business

Proxmox LVM-thin pool full: when VMs stop and disks get damaged

On Proxmox VE, the local storage "local-lvm" is an LVM-thin pool. It lets you give virtual machines more space than physically exists. This works until the pool is full. Then writes fail, VMs stop, and in the worst case the metadata of the pool is damaged and no disk can be activated any more.

Published 2 min readBy Mirush Murataj

Cover of the RecDati guide: Proxmox LVM-thin pool full: when VMs stop and disks get damaged
A thin pool has a data area and a separate, small metadata area.

In short

  • A thin pool has a data area and a separate, small metadata area.
  • A full data area stops writes. A full metadata area can damage the pool.
  • Copy the disk before running lvconvert --repair.

Two ways a thin pool fills up

Data area full. The VMs together have written more than the pool can hold. New writes fail with I/O errors, and the guests see a damaged disk. Snapshots, which keep old blocks, often make this happen faster than expected.

Metadata area full. The metadata maps each virtual block to a physical one. It is small, and it can fill up before the data area. When it does, the pool can switch to read-only or fail to activate after a restart.

Read-only checks

The commands lvs -a and lvs -o +data_percent,metadata_percent show how full each part is. The system log shows when the errors started. Note the output and the list of VMs that were running.

When you can solve it yourself

If only the data area is full and the metadata is fine, you can free space by deleting old snapshots you do not need, or add a disk to the volume group and extend the pool. Then start the VMs one by one and check their file systems inside the guest.

When you should stop

  • The pool does not activate after a restart.
  • lvs reports errors on the metadata, or the transaction ID does not match.
  • A forum suggests lvconvert --repair and the pool contains your only copy of the data.

The repair builds new metadata from the old one. If the old metadata is damaged, the new one may leave out volumes. It also needs free space in the volume group, and it overwrites the spare metadata area that might hold a better copy.

In the lab

The physical disk is copied, or each member if there is a RAID below. The lab reads both metadata copies of the thin pool and checks which is consistent. Each thin volume is then rebuilt from the mappings and saved as an image. Inside the images, the guest file systems are checked and the files or databases are recovered.

More on virtual machines: virtual machines data recovery. If VMware is used instead: VMFS datastore missing after an ESXi update: causes and recovery.

Frequently asked questions

Do Proxmox backups help?

If a backup to a separate storage exists, it is the fastest way back. Check its date before deciding on anything else.

Is ZFS on Proxmox affected in the same way?

No. ZFS has its own way of handling a full pool. It also slows down and stops writes, but the recovery is different.

Can the lab recover one VM disk only?

Yes. Tell us the VM ID and the disk name, and it is handled first.

Official sources and useful links

Are these files business-critical?

Stop every repair attempt that writes to the disks. The lab diagnosis is free and you receive a fixed price before anything is done.

Request a free diagnosis Virtual machines data recovery

Switch the device off, leave it as it is and let the lab have a look first.

Get a price