Thanks for the detailed instructions.<div>Yes I am very comfortable with command line :)</div><div><br></div><div><div>If at all in future my server crashes </div><div>I can not afford time to restore the VM.</div><div>So I want to maintain alternate setups working 24x7</div>
<div>So to understand the complete thing I am doing all this that I asked.<br><br></div><div>I have created all this on command line only</div><div>but one thing which I am not clear with is what I am mentioning below</div>
<div><br></div><div><div class="gmail_quote">On Mon, Oct 4, 2010 at 11:45 AM, Justin Clift <span dir="ltr"><<a href="mailto:jclift@redhat.com">jclift@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br></div>
It sounds like you're going to be doing a "very manual" migration,<br>
rather than using the automated tools.<br>
<br></blockquote><div>Yes very right it would be a very manual migration. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Guests have pretty much two components:<br>
<br>
  * Disk images (LVM, images files, etc)<br>
  * XML definition for the guest, containing relevant info<br>
<br>
Are you comfortable using a command line?<br>
<br>
If so, with the disk image part of things, which you mentioned you have<br>
in LVM, I'd probably look at manually creating the LVM partitions on<br>
"server B", matching the size of the partitions on "server A".  Then<br>
use "dd" or a similar utility to copy the data to the new partitions.<br></blockquote><div> </div><div>Right I did create an LVM manually but inside the LVM</div><div>how do you make 2 filesystems co exist.</div>
<div>Meaning </div><div>when I do an lvscan I get the following on command prompt</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; "><pre class="alt2" dir="ltr" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 98px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; ">
lvscan
  ACTIVE    '/dev/nintendo/lvm1' [100.00 GiB] inherit
  ACTIVE    '/dev/nintendo/lvm2' [150.00 GiB] inherit
  ACTIVE    '/dev/nintendo/lvm3' [50.00 GiB] inherit
  ACTIVE     '/dev/nintendo/lvm4' [100.00 GiB] inherit</pre></span></div><div> </div><div>Now note in above four  LVMs four different Guest OSeS are runninng.</div><div>I had created four LVMs in volume group nintendo on command line but</div>
<div>I did not created any filesystem in them.</div><div>This part was taken care by virt-manager when I installed the guest on it using virt-manager.</div><div><br></div><div>So swap and ext4 both do exist in all four lvms above but how  is that done manually that is one thing I want to know.</div>
<div>Is it like if I want to have a Guest OS in 10GB and 8GB to root device and 2 GB to swap then </div><div>I need to use lvcreate with 8GB and then extending that to 2 GB swap so that total becomes 10.</div><div>Is that going to work?</div>
<div>Or I need to do some thing extra.</div><div>I think vmbuilder is the tool that does this but I am unaware of how that script works.</div><div>If some one can point me to exact code or script then I will be able to do this.</div>
<div> </div></div></div></div>