Use of LVM in Virtualization

lucho115

New Member
Aug 11, 2009
20
0
1
I have used smeserver for 8 years without problems, so now i am trying distros for virtualize mys servers, rigth now i am trying proxmox so i saw if exist eny info about smeserver and yes i found this link en the wiki : http://pve.proxmox.com/wiki/SMEServer_KVM, but the part of this wiki page that most get my atention was this:
"
SMEServer LVM Recovery

SMEServer stores it's data in LVM2. On corruption of the superblock or metadata use a Knoppix LiveCD for recovery and follow instructions at:
SMEServer LVM Recovery using Knoppix LiveCD
Suggestion: Avoid LVM for a VM! To install SMEserver without LVM, use the following command at installation time: "sme nolvm"
"

Its actually true? iam using smeserver for 8 years in many instalation and never have any problem with lvm, but i run allways in baremetal, why in virtualization LVM is not recommended? i dont see this advertation in others distros. Can anybody help me to understand?
thks and sorry about my english
 
Hi, I have a CentOS 6.2 with RT support ticket in it installed with LVM inside proxmox and it suffers of filesystem corruption after proxmox backup (wichi uses LVM snapshots backed by iSCSI). No other VM on same node suffers of corruption, only the one using LVM. No idea why bu I've disabled backup and I'm using bacula to backup RT data.
 
Thanks for all yours responses but no one told me if its safe to use lvm in virtual manchines. And in other hand if anyone read this link: "http://serverfault.com/questions/279571/lvm-dangers-and-caveats" no one want to use lvm anymore, jeje, i dont know i have no issues with my systems in 10 years od work, the only one that i remember and can be because of lvm was 1 year ago in one installation of ubuntu server 10.04 where i use software raid + lvm2 and the filesystem became corrupted during an mysql update, i cant recover the lvm, in other word i recover but its keep going to corrupt state in hours i dont know why, so thanks to a backup i reinstall all system without lvm and have no ore problems in 1 year. Anyway the answer that i find its about virtualization, can anybody with experience tell me why not to use lvm? and in that case what to use? because there no altenatives i think.
thks and sorry about my englis again.
 
No responses to my question? So lvm its not safe??? Its shocking for me but seems its knows for many people including the proxmox developer like no one pay attention to this post.
thks.
 
No responses to my question? So lvm its not safe??? Its shocking for me but seems its knows for many people including the proxmox developer like no one pay attention to this post.
thks.

I responded previously that I use LVM in many VMs and have never had an issue.
The link to serverfault I provided talks about all the bad things that can go wrong with LVM and how they can be mitigated.

The issue webfrank reported above is concerning. I can only speculate but I doubt that issue is because of just LVM, maybe a saturated network to the iSCSi was partly to blame or maybe the kernel in CentOS 6.2 suffers from some LVM issue.

Every choice you make has a risk, "safe" is for you to decide.

I think it is perfectly safe and for added safety I also maintain multiple backups that are tested regularly.
 
No responses to my question? So lvm its not safe??? Its shocking for me but seems its knows for many people including the proxmox developer like no one pay attention to this post.

e100 already answered your question.
 
e100 already answered your question.
dietmar, thks for the response, but e100 didnt answer my quiestion, my really question is why lvm is not recommented and in other hand proxmox prefer use of lvm insted of loop devices to can use snapshots?
thnks
 
To clarify maybe, LVM is a good thing to store your virtual machines on. Using lvm inside your virtual machines may have some performance penalties in my opinion but it DOES work. Using LVM to store a virtual machine improves performance.
 
To clarify maybe, LVM is a good thing to store your virtual machines on. Using lvm inside your virtual machines may have some performance penalties in my opinion but it DOES work. Using LVM to store a virtual machine improves performance.
OK, so put vms in lvm storage is a good idea, but when you expand a lvm that is used like / for the vm1, do you have to do any process in the vm guest? or all in host with the vm1 down? thks
 
OK, so put vms in lvm storage is a good idea, but when you expand a lvm that is used like / for the vm1, do you have to do any process in the vm guest? or all in host with the vm1 down? thks
Hi,
if you have an physical machine and you replace the hdd with an bigger one, where you copy before the content from the small hdd, do xou have to do any process to use the additional space?

Yes of course! But why it's should be different with an virtual machine??

If you expand an logical volume from a VM, it's the same as if you build a bigger disk inside...

Udo
 
Back up the VM first. re-size the lvm volume. Expand the VM filesystem using resize2fs within the running VM. Straight forward and easy. Don't skip backing it up first or you may lose data. All of this is assuming a linux VM. It is similar for WinXX machines.
 

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!