[SOLVED] LVM und Import von vSphere

Nov 29, 2016
17
2
3
44
Guten Tag,
ich spiele mit dem Gedanken von VMware auf Proxmox umzusteigen.
Dazu habe ich Proxmox in der Version 4.3 installiert, auf sda und sdb ein LVM eingerichtet. Soweit so gut, CT und VM erstellen funktioniert. Wie im wiki beschrieben habe ich die vmdk vom esx heruntergeladen.
Nun zu dem Problem: Wo soll ich diese hin kopieren?
 
Nov 29, 2016
17
2
3
44
Hallo morph027,
nach dem Link bin ich vorgegangen. /var/lib/vz/images/ ist aber nicht das Storage wo ich meine vmdk hin kopieren möchte, da dort nicht genug freier Platz ist. Wie kann ich eines der anderen beiden LVM Storages per scp ansprechen? Ich vermute ja, dass ich beim anlegen der VG was falsch gemacht habe.

Danke.
 
Nov 29, 2016
17
2
3
44
root@pve01:~# pvdisplay
--- Physical volume ---
PV Name /dev/sdb1
VG Name pve01-15k
PV Size 557.75 GiB / not usable 2.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 142783
Free PE 142783
Allocated PE 0
PV UUID Un8yPf-Ecr0-1gcD-tsbC-Xr8I-hPuc-gXAXJP

--- Physical volume ---
PV Name /dev/sda3
VG Name pve
PV Size 1.09 TiB / not usable 3.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 285983
Free PE 246559
Allocated PE 39424
PV UUID xJ3jqM-Sj3e-lNkV-4zxz-LQIV-d9D2-7hBWie

root@pve01:~#


root@pve01:~# vgdisplay
--- Volume group ---
VG Name pve01-15k
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
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 557.75 GiB
PE Size 4.00 MiB
Total PE 142783
Alloc PE / Size 0 / 0
Free PE / Size 142783 / 557.75 GiB
VG UUID xdNOSJ-VggP-jDUM-fd8c-mUJC-OSo4-kMPUGB

--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 10
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 1.09 TiB
PE Size 4.00 MiB
Total PE 285983
Alloc PE / Size 39424 / 154.00 GiB
Free PE / Size 246559 / 963.12 GiB
VG UUID 3iZfbU-28Xu-lho2-BygY-UScn-ihdj-DkCWKV

root@pve01:~# lvdisplay
--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID SsrMsC-AVLl-MUN5-LGMg-Ohmh-Cypg-2zMdIa
LV Write Access read/write
LV Creation host, time proxmox, 2016-11-28 13:38:13 +0100
LV Status available
# open 2
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:1

--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID gg5Kf3-8dFC-SbA2-cV5l-gtwx-99iF-ccjQwH
LV Write Access read/write
LV Creation host, time proxmox, 2016-11-28 13:38:14 +0100
LV Status available
# open 1
LV Size 96.00 GiB
Current LE 24576
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:0

--- Logical volume ---
LV Path /dev/pve/vm-100-disk-1
LV Name vm-100-disk-1
VG Name pve
LV UUID VeKpmw-vn8h-47yj-vvp1-vmg2-8y3V-9T3LrL
LV Write Access read/write
LV Creation host, time pve01, 2016-11-28 20:15:49 +0100
LV Status available
# open 0
LV Size 40.00 GiB
Current LE 10240
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:2

--- Logical volume ---
LV Path /dev/pve/vm-101-disk-1
LV Name vm-101-disk-1
VG Name pve
LV UUID 2jEs50-pza3-JcMo-P2aw-0FrI-OMyL-mfXMwr
LV Write Access read/write
LV Creation host, time pve01, 2016-11-29 09:40:38 +0100
LV Status available
# open 0
LV Size 10.00 GiB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:3


root@pve01:~# ls -la /dev/mapper/
total 0
drwxr-xr-x 2 root root 140 Nov 29 11:02 .
drwxr-xr-x 19 root root 4540 Nov 29 13:38 ..
crw------- 1 root root 10, 236 Nov 29 11:02 control
lrwxrwxrwx 1 root root 7 Nov 29 11:02 pve-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Nov 29 11:02 pve-swap -> ../dm-1
lrwxrwxrwx 1 root root 7 Nov 29 11:02 pve-vm--100--disk--1 -> ../dm-2
lrwxrwxrwx 1 root root 7 Nov 29 11:02 pve-vm--101--disk--1 -> ../dm-3


root@pve01:~# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
 

morph027

Active Member
Mar 22, 2013
426
52
28
Leipzig
morph027.gitlab.io
Ah, ich seh schon, du hast LVM direkt als Storage eingebunden. Gut. Dann leg mal die VM im Proxmox so an, wie du die haben möchtest, dann erstellt der dir ein neues LV (vermutlich pve-vm--102--disk--1). Kannst du dann mit ls -la /dev/mapper/ nochmal schauen.

Dann machst du von dem Quellsystem aus, wo deine VMDK liegt:

Code:
dd if=deine.vmdk bs=1M | ssh root@proxmox dd of=/dev/mapper/pve-vm--102--disk--1 bs=1M
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!