thin pool pve-data get lost during upgrade – need new one

ivenae

Member
Feb 11, 2022
62
15
13
40
I have a PVE installation without any machines since 2021. Its job was to serve a local samba service.

I brought this to PVE 8 and now wanted to install the first lxc.

This failed, because the pve-data pool was not found anymore. So i wanted to remove the rest of the old data pool (which worked) and create a new pool, but proxmox always told me, that there is no free space to create a new.

If i try to create a thin pool via GUI, it says: There is no free disk, or There is no free space to create a pool.


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

root@pve:~# lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda            8:0    0 931.5G  0 disk
├─sda1         8:1    0  1007K  0 part
├─sda2         8:2    0   512M  0 part /boot/efi
└─sda3         8:3    0   931G  0 part
  └─pve-root 253:0    0 847.5G  0 lvm  /
sdb            8:16   0 931.5G  0 disk
└─sdb1         8:17   0 931.5G  0 part

root@pve:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                  3.7G     0  3.7G   0% /dev
tmpfs                 752M  4.1M  748M   1% /run
/dev/mapper/pve-root  834G  154G  645G  20% /
tmpfs                 3.7G   34M  3.7G   1% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
/dev/sda2             511M  312K  511M   1% /boot/efi
/dev/fuse             128M   16K  128M   1% /etc/pve
tmpfs                 752M     0  752M   0% /run/user/0

Code:
root@pvs:~# pvs
  PV         VG  Fmt  Attr PSize    PFree
  /dev/sda3  pve lvm2 a--  <931.01g 83.50g

root@pvs:~# vgs
  VG  #PV #LV #SN Attr   VSize    VFree
  pve   1   1   0 wz--n- <931.01g 83.50g

root@pvs:~# lvs
  LV   VG  Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root pve -wi-ao---- <847.51g

root@pvs:~# lvcreate -n vz -V 80G pve/data
  Pool data not found in Volume group pve.

Any ideas to get that pool back?
 
Last edited:
I do not know why i was not able to solve that ealier, but the first two commands on this page solves my problem:

https://pve.proxmox.com/wiki/Storage:_LVM_Thin


Code:
lvcreate -L 100G -n data pve
lvconvert --type thin-pool pve/data

After that i had to add a new pool under
DATACENTER -> STORAGE -> ADD -> lvm thin


Code:
root@pve:~# lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda            8:0    0 931.5G  0 disk
├─sda1         8:1    0  1007K  0 part
├─sda2         8:2    0   512M  0 part /boot/efi
└─sda3         8:3    0   931G  0 part
  └─pve-root 253:0    0 847.5G  0 lvm  /
sdb            8:16   0 931.5G  0 disk
└─sdb1         8:17   0 931.5G  0 part
root@pve:~# lvcreate -L 80G -n data pve
  Logical volume "data" created.

root@pve:~# lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda            8:0    0 931.5G  0 disk
├─sda1         8:1    0  1007K  0 part
├─sda2         8:2    0   512M  0 part /boot/efi
└─sda3         8:3    0   931G  0 part
  ├─pve-root 253:0    0 847.5G  0 lvm  /
  └─pve-data 253:1    0    80G  0 lvm
sdb            8:16   0 931.5G  0 disk
└─sdb1         8:17   0 931.5G  0 part
root@pve:~# lvconvert --type thin-pool pve/data
  Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data.
  WARNING: Converting pve/data to thin pool's data volume with metadata wiping.
  THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
Do you really want to convert pve/data? [y/n]: y
  Converted pve/data to thin pool.

root@pve:~# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                  8:0    0 931.5G  0 disk
├─sda1               8:1    0  1007K  0 part
├─sda2               8:2    0   512M  0 part /boot/efi
└─sda3               8:3    0   931G  0 part
  ├─pve-root       253:0    0 847.5G  0 lvm  /
  ├─pve-data_tmeta 253:1    0    80M  0 lvm
  │ └─pve-data     253:3    0    80G  0 lvm
  └─pve-data_tdata 253:2    0    80G  0 lvm
    └─pve-data     253:3    0    80G  0 lvm
sdb                  8:16   0 931.5G  0 disk
└─sdb1               8:17   0 931.5G  0 part

( Do not forget: After that you have to add a new pool under
DATACENTER -> STORAGE -> ADD -> lvm thin)


Thanx for your question ivenae.
Thx for your great reply, ivenae, too.

;-)
 
Last edited:

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!