[SOLVED] Attach LVM image disk to CentOS VM

Marcelo Costa

Member
Jun 27, 2017
17
0
6
50
Hello,

I have a proxmox hypervisor to test. On this server have 3 physical disks.

One, to proxmox and VMs, other to fileserver and the last to backup.

When I has create the hypervisor, I use one CentOS VM and add the LVM disc (vm-101-disk1.raw).


The proxmox disk hase a issue and and I changed it. The new proxmox installation have done, but I can't add the virtual discs to CentOS VM.

I can add the storage on the host, but cannot add the RAW image to VM.

I try mount an NFS server on proxmox, but can't mount the LVM disk.


Regards,
Marcelo Costa
Porto Alegre - Brazil
 
Hi,

This a simple solution.

On the proxmox host, I have a list all LVM image with "lvdisplay". After, edit the VM config file. (/etc/pve/local/qemu-server/vmID.conf), and add the respective LVM image.

eg: sata1: Backup-LVM:vm-101-disk-1,size=640G

Restart the host and does works fine.

Regards,
Marcelo Costa
Porto Alegre - Brazil