Can not add LVM-Thin Storage

Gleb

New Member
Feb 22, 2018
3
0
1
38
Hello! I have an issue with adding the LVM Thin Storage to my Proxmox VE.
I have created an LVM disk from the free space on my HDD, and then converted it to LVM Thin. (Using this instruction).
VG name: pve, pool name is data
So, what I have now:
Code:
# lvs
  LV     VG                      Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data   pve twi-a-tz--   1,00t             0,00   0,42                           
  root   pve -wi-ao---- 331,28g                                                   
  swap_1 pve -wi-ao----   7,50g

Code:
# vgdisplay -v
  --- Volume group ---
  VG Name               pve
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  9
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1,82 TiB
  PE Size               4,00 MiB
  Total PE              476870
  Alloc PE / Size       348934 / 1,33 TiB
  Free  PE / Size       127936 / 499,75 GiB
  VG UUID               ELBwHf-G8ck-TBxo-fsM5-N3Tp-8wLB-64HxtI
  
  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                21kcdC-9sdj-eDvB-XshD-f6mK-hk73-dKzjvN
  LV Write Access        read/write
  LV Creation host, time pve, 2018-02-22 12:09:19 +0300
  LV Status              available
  # open                 1
  LV Size                331,28 GiB
  Current LE             84807
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
  
  --- Logical volume ---
  LV Path                /dev/pve/swap_1
  LV Name                swap_1
  VG Name                pve
  LV UUID                fyLIQJ-7B37-WFP0-tNyg-0Ter-gP1b-T9P4W5
  LV Write Access        read/write
  LV Creation host, time pve, 2018-02-22 12:09:19 +0300
  LV Status              available
  # open                 2
  LV Size                7,50 GiB
  Current LE             1919
  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                sQjxkL-CnUK-5xaY-fTrK-Svzc-ZaKl-POOWsS
  LV Write Access        read/write
  LV Creation host, time pve, 2018-03-14 19:07:03 +0300
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                1,00 TiB
  Allocated pool data    0,00%
  Allocated metadata     0,42%
  Current LE             262144
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4
  
  --- Physical volumes ---
  PV Name               /dev/sda5     
  PV UUID               R0fz6f-uNyO-Eah5-bi6j-2Rzz-kHVB-RGPneW
  PV Status             allocatable
  Total PE / Free PE    476870 / 127936

Code:
# cat /etc/pve/storage.cfg

dir: local
    disable
    path /var/lib/vz
    content rootdir,images,iso,vztmpl
    maxfiles 0
    shared 0

lvmthin: local-lvm
    thinpool data
    vgname pve
    content images,rootdir,iso,vztmpl
    nodes pve

So, my new added thin pool is available. I can add it through the Proxmox GUI, and it is available as storage on my node. I can even see the size of the storage through the GUI.
But the problem is I can not upload any file to this storage or make a snapshot. What I am doing wrong? All the buttons in GUI, like "Upload" are inactive.
 
May be the problem is because "data" logical volume has no "LV Path" when i check it with vgdisplay -v. "Root" and "swap" logical volumes has path like
Code:
LV Path                /dev/pve/root
How to fix it?
 
lvm thin is a block based storage (so you can create block devices) and not a file based one (where you could upload a file)
 

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!