<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>Hello, typically my kvm guest disk is <br><br>/dev/sda1   /boot<br>/dev/sda2   logical volume group<br><br>inside sda2 are two LV partitions<br>/<br>swap<br><br>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.<br><br><br>----------------------------------------------------<br><b><br>Charles T. Dillard</b><br>703 399 0876<br><br>----------------------------------------------------<br>
<br><br><br><div>> Date: Mon, 15 Aug 2011 15:54:51 -0400<br>> From: byrnejb@harte-lyne.ca<br>> To: centos-virt@centos.org<br>> Subject: [CentOS-virt] lvm and kvm<br>> <br>> I am performing some configuration testing on a kvm host.  When<br>> installing a guest operating system is it advisable to place each<br>> instance in a separate lv or better to accept the default and store<br>> them on the root file system?<br>> <br>> Respecting lvm, does one configure lvs in a virtual server to take<br>> space from the main vg or does one allocate lv space from inside<br>> that allocated to the virtual instance?  Is it even considered<br>> advisable to use lvs with virtual guests?<br>> <br>> To give an example, if I were to configure an smtp server on bare<br>> metal I might use the following disk layout:<br>> <br>> vg_bare 500Gb<br>> <br>> / lv_root 8Gb<br>> /boot lv_boot 1Gb<br>> /tmp lv_tmp 8Gb<br>> /var/log lv_log 8Gb<br>> /var/spool/mail lv_mail 16Gb<br>> <br>> <br>> In a kvm setup, if I wish to do this, would I first create an lv<br>> just to host the virtual image and then assign lv s from the space<br>> allocated to that image file?<br>> <br>> vg_bare 500Gb<br>> <br>> / lv_root 8Gb<br>> /boot lv_boot 1Gb<br>> /tmp lv_tmp 8Gb<br>> /var/log lv_log 8G<br>> <br>> /var/lib/libvirt/images/lv_virt01 32Gb<br>> /var/lib/libvirt/images/lv_virt02 32Gb<br>> .  .  .<br>> <br>> and so forth?  Or is it worth the bother to have lv s in a virtual<br>> host?<br>> <br>> -- <br>> ***          E-Mail is NOT a SECURE channel          ***<br>> James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca<br>> Harte & Lyne Limited          http://www.harte-lyne.ca<br>> 9 Brockley Drive              vox: +1 905 561 1241<br>> Hamilton, Ontario             fax: +1 905 561 0757<br>> Canada  L8E 3C3<br>> <br>> _______________________________________________<br>> CentOS-virt mailing list<br>> CentOS-virt@centos.org<br>> http://lists.centos.org/mailman/listinfo/centos-virt<br></div>                                           </div></body>
</html>