how to register vms into pve

  • Thread starter Thread starter joec22
  • Start date Start date
J

joec22

Guest
I have vm's that I can see, but I don't know how to get them into pve. They used to be on a pve system, and this is a new installation with the same set of storage disks that were not formatted. Here you can see the vm's:

Code:
lcpuck9:~# ls /dev/mapper/
control   pvedata-vm--101--disk--1  pvedata-vm--101--disk--3  pvedata-vm--102--disk--2	pve-swap
pve-data  pvedata-vm--101--disk--2  pvedata-vm--102--disk--1  pve-root

And here you can see the vg:

Code:
lcpuck9:~# vgdisplay pvedata
  --- Volume group ---
  VG Name               pvedata
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  23
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               5.45 TB
  PE Size               64.00 MB
  Total PE              89272
  Alloc PE / Size       29408 / 1.79 TB
  Free  PE / Size       59864 / 3.65 TB
  VG UUID               xo3Wm4-pLz4-a4dj-XT7e-N8ja-eUmX-r84ZGa
Code:
lcpuck9:~# lvdisplay pvedata
  --- Logical volume ---
  LV Name                /dev/pvedata/vm-101-disk-1
  VG Name                pvedata
  LV UUID                eLcmHm-nAP4-6wLZ-8zHf-la80-uNio-8Rya3F
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                45.00 GB
  Current LE             720
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3
   
  --- Logical volume ---
  LV Name                /dev/pvedata/vm-101-disk-2
  VG Name                pvedata
  LV UUID                AGMYxI-pkOO-9hgR-EHh5-KU3p-flXZ-Vo3MEJ
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                718.00 GB
  Current LE             11488
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4
   
  --- Logical volume ---
  LV Name                /dev/pvedata/vm-101-disk-3
  VG Name                pvedata
  LV UUID                82PNKT-Ns8U-cpim-EVTZ-YupU-O7Cb-9aPWzL
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GB
  Current LE             640
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:5
   
  --- Logical volume ---
  LV Name                /dev/pvedata/vm-102-disk-1
  VG Name                pvedata
  LV UUID                e8BL1V-wCuF-ntwN-ph58-KQ1p-N2DM-yzNCif
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                11.00 GB
  Current LE             176
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:6
   
  --- Logical volume ---
  LV Name                /dev/pvedata/vm-102-disk-2
  VG Name                pvedata
  LV UUID                rhinFX-UMgF-8wZP-t0BH-ydFr-WL1D-0X9OyY
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.00 TB
  Current LE             16384
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:7
 
Hi,
you have an second lvm-storage named pvedata (not the same as the original /dev/pve/data).
define that storage in the gui as lvm-storage (for vm-disks, not shared).
If you now create an vm with the number 101 the disks should appear in the hardware-tab as unused disks - you can add them.
If not, you must assign the tags, or modify the config-file yourself.

Udo