LVM problem

Kurogane

New Member
May 4, 2014
3
0
1
Hello,

I've a problem to adding lvm storage i follow this guide http://pve.proxmox.com/wiki/Storage_Model and i did all command successfully.

Code:
# pvdisplay  --- Physical volume ---
  PV Name               /dev/sda4
  VG Name               imagen
  PV Size               905.32 GiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              231760
  Free PE               231760
  Allocated PE          0
  PV UUID               LeY2lS-B1Ey-LZSP-lCQj-wknb-3AEe-FCceFh

Code:
# vgdisplay  --- Volume group ---
  VG Name               imagen
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               905.31 GiB
  PE Size               4.00 MiB
  Total PE              231760
  Alloc PE / Size       0 / 0
  Free  PE / Size       231760 / 905.31 GiB
  VG UUID               37v8NN-6cL7-1tun-apm4-UNSx-wMZP-Pc7dRI



In proxmox gui web also show the information:

DHofkkb.jpg

oRuJLkV.jpg

The problem come where when i try to add vm no show the lvm storage

bMOcsDn.jpg

I not sure what is wrong, can anyone help me with this?
 
Code:
root@localhost:~# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda4  imagen lvm2 a--  905.31g 905.31g

Code:
root@localhost:~# vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  imagen   1   0   0 wz--n- 905.31g 905.31g

Code:
root@localhost:~# lvs
root@localhost:~#

Code:
root@localhost:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content images,iso,vztmpl,rootdir
        maxfiles 0


lvm: test
        vgname imagen
        content images
 
Code:
root@localhost:~# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda4  imagen lvm2 a--  905.31g 905.31g

Code:
root@localhost:~# vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  imagen   1   0   0 wz--n- 905.31g 905.31g

Code:
root@localhost:~# lvs
root@localhost:~#

Code:
root@localhost:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content images,iso,vztmpl,rootdir
        maxfiles 0


lvm: test
        vgname imagen
        content images
Hi,
looks ok! But shows also that you don't have an standard-installation. Perhaps there is an pve-packages missing?

Are all packages installed?
Code:
dpkg -l | grep pve
ii  clvm                             2.02.98-pve4                  amd64        Cluster LVM Daemon for lvm2            
ii  corosync-pve                     1.4.5-1                       amd64        Standards-based cluster framework (daemon and modules)           
ii  dmsetup                          2:1.02.77-pve4                amd64        Linux Kernel Device Mapper userspace library
ii  fence-agents-pve                 4.0.5-1                       amd64        fence agents for redhat cluster suite
ii  libcorosync4-pve                 1.4.5-1                       amd64        Standards-based cluster framework (libraries)
ii  libdevmapper-event1.02.1:amd64   2:1.02.77-pve4                amd64        Linux Kernel Device Mapper event support library
ii  libdevmapper1.02.1:amd64         2:1.02.77-pve4                amd64        Linux Kernel Device Mapper userspace library
ii  liblvm2app2.2:amd64              2.02.98-pve4                  amd64        LVM2 application library
ii  libopenais3-pve                  1.1.4-3                       amd64        Standards-based cluster framework (libraries)
ii  libpve-access-control            3.0-11                        amd64        Proxmox VE access control library
ii  libpve-common-perl               3.0-14                        all          Proxmox VE base library
ii  libpve-storage-perl              3.0-19                        all          Proxmox VE storage management library
ii  lvm2                             2.02.98-pve4                  amd64        Linux Logical Volume Manager
ii  openais-pve                      1.1.4-3                       amd64        Standards-based cluster framework (daemon and modules)
ii  pve-cluster                      3.0-12                        amd64        Cluster Infrastructure for Proxmox Virtual Environment
ii  pve-firmware                     1.1-2                         all          Binary firmware code for the pve-kernel
ii  pve-kernel-2.6.32-26-pve         2.6.32-114                    amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-2.6.32-27-pve         2.6.32-121                    amd64        The Proxmox PVE Kernel Image
ii  pve-libspice-server1             0.12.4-3                      amd64        SPICE remote display system server library
ii  pve-manager                      3.2-1                         amd64        The Proxmox Virtual Environment
ii  pve-qemu-kvm                     1.7-4                         amd64        Full virtualization on x86 hardware
ii  redhat-cluster-pve               3.2.0-2                       amd64        Red Hat cluster suite
ii  resource-agents-pve              3.9.2-4                       amd64        resource agents for redhat cluster suite
ii  tar                              1.27.1+pve.1                  amd64        GNU version of the tar archiving utility
ii  vzctl                            4.0-1pve4                     amd64        OpenVZ - server virtualization solution - control tools
What is the output of
Code:
pvesm status
Udo
 
Hello, I have the same problem, which sheds ask the following:

1:
Code:
[FONT=Menlo]root@pmx2:~# pvs
[/FONT][FONT=Menlo]  PV         VG   Fmt  Attr PSize PFree [/FONT]
[FONT=Menlo]  /dev/sda3  pve  lvm2 a--  1.82t 16.00g[/FONT]
[FONT=Menlo]  /dev/sdb1  pve2 lvm2 a--  1.82t  1.82t[/FONT]
[FONT=Menlo]root@pmx2:~# [/FONT]

2:
Code:
[FONT=Menlo]root@pmx2:~# vgs
[/FONT][FONT=Menlo]  VG   #PV #LV #SN Attr   VSize VFree [/FONT]
[FONT=Menlo]  pve    1   3   0 wz--n- 1.82t 16.00g[/FONT]
[FONT=Menlo]  pve2   1   0   0 wz--n- 1.82t  1.82t[/FONT]
[FONT=Menlo]root@pmx2:~#
[/FONT]

3:
Code:
[FONT=Menlo]root@pmx2:~# lvs
[/FONT][FONT=Menlo]  LV   VG   Attr      LSize  Pool Origin Data%  Move Log Copy%  Convert[/FONT]
[FONT=Menlo]  data pve  -wi-ao---  1.70t                                           [/FONT]
[FONT=Menlo]  root pve  -wi-ao--- 96.00g                                           [/FONT]
[FONT=Menlo]  swap pve  -wi-ao---  9.00g                                           [/FONT]
[FONT=Menlo]root@pmx2:~#
[/FONT]

4:
Code:
[FONT=Menlo]root@pmx2:~# cat /etc/pve/storage.cfg
[/FONT][FONT=Menlo]dir: local[/FONT]
[FONT=Menlo]    path /var/lib/vz[/FONT]
[FONT=Menlo]    content images,iso,vztmpl,rootdir[/FONT]
[FONT=Menlo]    maxfiles 0[/FONT]
[FONT=Menlo]root@pmx2:~#
[/FONT]

5:
Code:
[FONT=Menlo]root@pmx2:~# dpkg -l | grep pve
[/FONT][FONT=Menlo]ii  clvm                             2.02.98-pve4                  amd64        Cluster LVM Daemon for lvm2[/FONT]
[FONT=Menlo]ii  corosync-pve                     1.4.5-1                       amd64        Standards-based cluster framework (daemon and modules)[/FONT]
[FONT=Menlo]ii  dmsetup                          2:1.02.77-pve4                amd64        Linux Kernel Device Mapper userspace library[/FONT]
[FONT=Menlo]ii  fence-agents-pve                 4.0.5-1                       amd64        fence agents for redhat cluster suite[/FONT]
[FONT=Menlo]ii  libcorosync4-pve                 1.4.5-1                       amd64        Standards-based cluster framework (libraries)[/FONT]
[FONT=Menlo]ii  libdevmapper-event1.02.1:amd64   2:1.02.77-pve4                amd64        Linux Kernel Device Mapper event support library[/FONT]
[FONT=Menlo]ii  libdevmapper1.02.1:amd64         2:1.02.77-pve4                amd64        Linux Kernel Device Mapper userspace library[/FONT]
[FONT=Menlo]ii  liblvm2app2.2:amd64              2.02.98-pve4                  amd64        LVM2 application library[/FONT]
[FONT=Menlo]ii  libopenais3-pve                  1.1.4-3                       amd64        Standards-based cluster framework (libraries)[/FONT]
[FONT=Menlo]ii  libpve-access-control            3.0-11                        amd64        Proxmox VE access control library[/FONT]
[FONT=Menlo]ii  libpve-common-perl               3.0-14                        all          Proxmox VE base library[/FONT]
[FONT=Menlo]ii  libpve-storage-perl              3.0-19                        all          Proxmox VE storage management library[/FONT]
[FONT=Menlo]ii  lvm2                             2.02.98-pve4                  amd64        Linux Logical Volume Manager[/FONT]
[FONT=Menlo]ii  openais-pve                      1.1.4-3                       amd64        Standards-based cluster framework (daemon and modules)[/FONT]
[FONT=Menlo]ii  pve-cluster                      3.0-12                        amd64        Cluster Infrastructure for Proxmox Virtual Environment[/FONT]
[FONT=Menlo]ii  pve-firmware                     1.1-2                         all          Binary firmware code for the pve-kernel[/FONT]
[FONT=Menlo]ii  pve-kernel-2.6.32-27-pve         2.6.32-121                    amd64        The Proxmox PVE Kernel Image[/FONT]
[FONT=Menlo]ii  pve-libspice-server1             0.12.4-3                      amd64        SPICE remote display system server library[/FONT]
[FONT=Menlo]ii  pve-manager                      3.2-1                         amd64        The Proxmox Virtual Environment[/FONT]
[FONT=Menlo]ii  pve-qemu-kvm                     1.7-4                         amd64        Full virtualization on x86 hardware[/FONT]
[FONT=Menlo]ii  redhat-cluster-pve               3.2.0-2                       amd64        Red Hat cluster suite[/FONT]
[FONT=Menlo]ii  resource-agents-pve              3.9.2-4                       amd64        resource agents for redhat cluster suite[/FONT]
[FONT=Menlo]ii  tar                              1.27.1+pve.1                  amd64        GNU version of the tar archiving utility[/FONT]
[FONT=Menlo]ii  vzctl                            4.0-1pve4                     amd64        OpenVZ - server virtualization solution - control tools[/FONT]
[FONT=Menlo]root@pmx2:~# [/FONT]

is returning me the commands, you will think you can help me?

best regards
 
Last edited:
Hello, I have the same problem, which sheds ask the following:

...
4:
Code:
[FONT=Menlo]root@pmx2:~# cat /etc/pve/storage.cfg
[/FONT][FONT=Menlo]dir: local[/FONT]
[FONT=Menlo]    path /var/lib/vz[/FONT]
[FONT=Menlo]    content images,iso,vztmpl,rootdir[/FONT]
[FONT=Menlo]    maxfiles 0[/FONT]
[FONT=Menlo]root@pmx2:~#
[/FONT]
Hi,
no - that's not the same problem. In your cast there isn't an entry for the lvm-storage.

See Datacenter -> Storage -> Add LVM -> Existing volume groups -> named and select your pve2

Udo
 
Hi, thanks for answer and for your time.


that's really the problem does not appear pve2 not know why, any ideas?


image attached.


regardsImage1.jpg
 
hello, thanks for reply, is correct, but only in the cluster in datacenter is where I may not create lvm nodes, am I right? only shows me a local only.


I still do not understand how it works whether the cluster with Proxmox, since it is more logical to show me the two datacenters and not just one, but also creates the Proxmox not?

before finding this thread I posted here.

https://forum.proxmox.com/threads/18455-Add-HDD-in-node-proxmox?p=94413#post94413

best regards
 
Last edited:
hello, I thanks deeras much your time, right, works as you mention, what happens is that being in a cluster, I thought that all these functions are managed from a single page and not entering into each individual, there is way to manage all nodes from a single console?


best regards
 
hello again, I've done what you mention as lvm and I can see, but only gives permission to post images, I can not install a system on that disk? I followed another statute and assume that the amount and add it as a disk directory, but this directory I see in the two (pmx1 and pmx2) with different capasidades, what is the correct way to do this I want to do?


regards
 
hello again, I've done what you mention as lvm and I can see, but only gives permission to post images, I can not install a system on that disk? I followed another statute and assume that the amount and add it as a disk directory, but this directory I see in the two (pmx1 and pmx2) with different capasidades, what is the correct way to do this I want to do?


regards
Hi,
new problem, new thread please.

In short - for uses on both hosts, you need "shared" storage. And for backup/templates/CTs you need an filesystem - e.g. NFS.
For kvm only drbd or ceph is an good solution.

Udo
 

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!