[SOLVED] Attach LVM image disk to CentOS VM

Marcelo Costa

Member
Jun 27, 2017
17
0
6
49
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
 

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!