Extend pve volume group

TechLineX

Active Member
Mar 2, 2015
213
5
38
Code:
--- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.82 TiB
  PE Size               4.00 MiB
  Total PE              476900
  Alloc PE / Size       472805 / 1.80 TiB
  Free  PE / Size       4095 / 16.00 GiB

Alloc PE / Size 472805 / 1.80 TiB

Actual PVE has only 16GB free. How can I now extend PVE + 1,8TB?
 
Code:
lvdisplay -m
  Found duplicate PV hSVcFlh50r6lNjsauCmu4jYNMzxdbk2s: using /dev/sdb3 not /dev/sda3
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                ERJUPD-FEHI-Qhhs-yebk-Ayhs-2bFD-G9GRm2
  LV Write Access        read/write
  LV Creation host, time proxmox, 2016-02-09 10:31:45 +0100
  LV Status              available
  # open                 0
  LV Size                62.00 GiB
  Current LE             15872
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:0

  --- Segments ---
  Logical extents 0 to 15871:
    Type                linear
    Physical volume     /dev/sdb3
    Physical extents    0 to 15871


  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                b7zS3d-p2hK-Iivl-80HN-6FHX-ugSt-gTfgbQ
  LV Write Access        read/write
  LV Creation host, time proxmox, 2016-02-09 10:31:46 +0100
  LV Status              available
  # open                 0
  LV Size                96.00 GiB
  Current LE             24576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:1

  --- Segments ---
  Logical extents 0 to 24575:
    Type                linear
    Physical volume     /dev/sdb3
    Physical extents    15872 to 40447


  --- Logical volume ---
  LV Path                /dev/pve/data
  LV Name                data
  VG Name                pve
  LV UUID                lqWbJa-8OxW-66s9-YYT0-479B-Nzs9-AkMtBl
  LV Write Access        read/write
  LV Creation host, time proxmox, 2016-02-09 10:31:46 +0100
  LV Status              available
  # open                 0
  LV Size                1.65 TiB
  Current LE             432357
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:2

  --- Segments ---
  Logical extents 0 to 432356:
    Type                linear
    Physical volume     /dev/sdb3
    Physical extents    40448 to 472804
 
you are looking at the volume group "pve"
the thin pool is the lv pve/data
so please post the output of
Code:
lvs

there should be a line with "data", a field "LSize" and a field "Data%"
 
Code:
# lvs
  Found duplicate PV hSVcFlh50r6lNjsauCmu4jYNMzxdbk2s: using /dev/sdb3 not /dev/sda3
  LV   VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data pve  -wi-a-----  1.65t                                                   
  root pve  -wi-a----- 96.00g                                                   
  swap pve  -wi-a----- 62.00g
 
okay then your installation precedes 4.2, and you have a logical volume pve/data which has (nearly) the whole size of the vg.
this should be mounted under /var/lib/vz so you can use your space there
 
But a physical volume is already created?
A volume Group also:
data pve -wi-a----- 1.65t

But if I add pve, I have only 16GB
 
in this case you should not use lvm, but the local storage (the data lv should be mounted under /var/lib/vz )
 
Yes, i already read that, but I crashed the whole System in the past. Because of that I ask here for help.
What is to do now?

Thank you! :)
Regards
 
Yes, i already read that, but I crashed the whole System in the past. Because of that I ask here for help.
what do you mean by that? what do you need help with exactly?
 
I created the local storage under /var/lib/vz. Space is here 1,3TB. Is this now the space of pve data?
 
I tested it. Can still use only disc c and d.

But how to use sda and sdb? How can I mount the storage or use it from proxmox?

I created a lvm-storage in Proxmox with the group pve, but only can use 16gb of 1,8TB. How can I use the rest of /dev/pve/data?

coLMd.jpg
 
Last edited:
I created a lvm-storage in Proxmox with the group pve, but only can use 16gb of 1,8TB. How can I use the rest of /dev/pve/data?
When You create VM, chose local-lvm storage, that is pve/data LVM-Thin storage pool.

cat /etc/pve/storage.cfg
and look all storages in You pve instance.

And carefully read this link.

Maybe You need read some books...
 
Can still use only disc c and d.
what do you mean by that? what is disc c and d?

But how to use sda and sdb? How can I mount the storage or use it from proxmox?
as i said the "data" lv should already be mounted under /var/lib/vz
just use the "local" storage for your vm images/isos/templates/etc.