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