Hi  Richard,,,<br>I have tried virt-resize by removing the two lines and its resized. But after running virt-resize the partition type shows unknown and the guest image is not booting . Heres the steps I have followed. Where I went wrong?? Is there any thing else to be configured??<br>
<br>[root@kvmcluster images]# truncate -r redhat5_old.img redhat5.img<br>[root@kvmcluster images]# truncate -s +1G redhat5.img<br><br>[root@kvmcluster images]# virt-resize --expand /dev/sda3 redhat5_old.img redhat5.img<br>
Summary of changes:<br>/dev/sda1: partition will be left alone<br>/dev/sda2: partition will be left alone<br>/dev/sda3: partition will be resized from 2.9G to 3.9G<br>/dev/sda3: content will be expanded using the 'resize2fs' method<br>
Copying /dev/sda1 ... done<br>Copying /dev/sda2 ... done<br>Copying /dev/sda3 ... done<br>Expanding /dev/sda3 using the 'resize2fs' method<br> at /usr/bin/virt-resize line <a href="http://1221.in">1221.in</a> super-block while trying to open /dev/vda3<br>
<br>[root@kvmcluster images]# virt-list-partitions -lht redhat5.img<br>/dev/sda1 ext3 101.9M<br>/dev/sda2 swap 1.0G<br>/dev/sda3 unknown 3.9G<br>/dev/sda device 5.0G<br><br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 11:33 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Mon, Aug 16, 2010 at 11:13:56PM +0530, Rajiv Rajaian wrote:<br>
> Thank Richard<br>
> Will you please help me to remove the 32 bit test from<br>
> /usr/bin/virt-resize.??<br>
> Whether I have to add any option to this command or how to run this<br>
> command??<br>
<br>
</div>Edit /usr/bin/virt-resize with your favorite editor, remove the<br>
following two lines, save it, and run it again.<br>
<br>
  die __"virt-resize: sorry this program does not work on a 32 bit host\n"<br>
      if ~1 == 4294967294;<br>
<div class="im"><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/%7Erjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div>Read my programming blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)<br>
<a href="http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora" target="_blank">http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora</a><br>
</blockquote></div><br>