Did I extend LVM-Thin correctly?

Dondochaka

Member
Feb 22, 2021
8
0
6
38
Basically, I borrowed these instructions from serverfault.com.
LVM physical volume to extend the default pve-data LVM logical volume and /var/lib/vz filesystem:
  • partition your device and set the LVM (8e) flag
  • create a new physical volume with pvcreate /dev/<DEVNAME>
  • extend default VG with vgextend pve /dev/<DEVNAME>
  • extend data logical volume with lvextend /dev/mapper/pve-data /dev/<DEVNAME>
  • verify your FS is clean with fsck -nv /dev/mapper/pve-data
  • resize your FS with resize2fs -F /dev/mapper/pve-data
But once I got to the fsck step I started getting errors like `ext2fs_open2: Bad magic number in super-block`. Are these steps necessary for the thin pool? There's no filesystem for it to resize, is there? It shows the correct size in the GUI.
 
Correct, thin pools don't have a file system directly on them.
However, I believe resizing this way may have only resized the data portion of the thin volume, not the metadata.
This may become a problem in the future, so you need to monitor the `Meta%` value in the `lvs` output, or extend the metadata pool proportionally (if your VG still has some space you can use `lvextend --poolmetadatasize +amount pve/data`, note that reducing the data pool now to make space for the metadata pool will likely break existing volumes, so that's not really an option)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!