[CentOS-virt] lvm and kvm

Mon Aug 15 21:54:35 UTC 2011
Charles Dillard <charlesdillard at hotmail.com>


Hello, typically my kvm guest disk is 

/dev/sda1   /boot
/dev/sda2   logical volume group

inside sda2 are two LV partitions
/
swap

Don't know if that answered your question. Remember that to enlarge a LV group, you need another device like /dev/sda3 to merge with that volume.


----------------------------------------------------

Charles T. Dillard
703 399 0876

----------------------------------------------------




> Date: Mon, 15 Aug 2011 15:54:51 -0400
> From: byrnejb at harte-lyne.ca
> To: centos-virt at centos.org
> Subject: [CentOS-virt] lvm and kvm
> 
> I am performing some configuration testing on a kvm host.  When
> installing a guest operating system is it advisable to place each
> instance in a separate lv or better to accept the default and store
> them on the root file system?
> 
> Respecting lvm, does one configure lvs in a virtual server to take
> space from the main vg or does one allocate lv space from inside
> that allocated to the virtual instance?  Is it even considered
> advisable to use lvs with virtual guests?
> 
> To give an example, if I were to configure an smtp server on bare
> metal I might use the following disk layout:
> 
> vg_bare 500Gb
> 
> / lv_root 8Gb
> /boot lv_boot 1Gb
> /tmp lv_tmp 8Gb
> /var/log lv_log 8Gb
> /var/spool/mail lv_mail 16Gb
> 
> 
> In a kvm setup, if I wish to do this, would I first create an lv
> just to host the virtual image and then assign lv s from the space
> allocated to that image file?
> 
> vg_bare 500Gb
> 
> / lv_root 8Gb
> /boot lv_boot 1Gb
> /tmp lv_tmp 8Gb
> /var/log lv_log 8G
> 
> /var/lib/libvirt/images/lv_virt01 32Gb
> /var/lib/libvirt/images/lv_virt02 32Gb
> .  .  .
> 
> and so forth?  Or is it worth the bother to have lv s in a virtual
> host?
> 
> -- 
> ***          E-Mail is NOT a SECURE channel          ***
> James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
> Harte & Lyne Limited          http://www.harte-lyne.ca
> 9 Brockley Drive              vox: +1 905 561 1241
> Hamilton, Ontario             fax: +1 905 561 0757
> Canada  L8E 3C3
> 
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt at centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20110815/bb6a888a/attachment-0004.html>