<br><br><div class="gmail_quote">On Mon, Jan 31, 2011 at 5:08 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><div></div><div class="h5">On Mon, Jan 31, 2011 at 05:04:04PM +0530, vipul borikar wrote:<br>
> Debug messages show like this:<br>
> ***********************************************<br>
> Fedora12 size 1048576000 bytes<br>
> Fedora12-1 size 2097152000 bytes<br>
> copying boot loader ...<br>
> add_drive_ro "Fedora12"<br>
> add_drive "Fedora12-1"<br>
> launch<br>
> Warning: No DNS servers found<br>
> Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such<br>
> file or directory<br>
> blockdev_getss "/dev/sdb"<br>
> part_list "/dev/sda"<br>
> part_get_bootable "/dev/sda" 1<br>
> part_get_mbr_id "/dev/sda" 1<br>
> part_get_bootable "/dev/sda" 2<br>
> part_get_mbr_id "/dev/sda" 2<br>
> pvs_full<br>
> vfs_type "/dev/sda1"<br>
> mount_ro "/dev/sda1" "/"<br>
> statvfs "/"<br>
> umount_all<br>
> vfs_type "/dev/sda2"<br>
> mount_ro "/dev/sda2" "/"<br>
> umount_all<br>
> partitions found: /dev/sda1, /dev/sda2<br>
> /dev/sda1:<br>
>         bootable = 1<br>
>         fssize = 928866304<br>
>         mbr_id = 131<br>
>         name = /dev/sda1<br>
>         part_end = 943750655<br>
>         part_num = 1<br>
>         part_size = 943718400<br>
>         part_start = 32256<br>
>         type = ext3<br>
> /dev/sda2:<br>
>         bootable = 0<br>
>         fssize = undef<br>
>         mbr_id = 130<br>
>         name = /dev/sda2<br>
>         part_end = 996179455<br>
>         part_num = 2<br>
>         part_size = 52428800<br>
>         part_start = 943750656<br>
>         type = swap<br>
> surplus before --expand or --shrink: 1098776576 (1.0G)<br>
> Summary of changes:<br>
> /dev/sda1: partition will be resized from 900.0M to 1.9G<br>
> /dev/sda2: partition will be left alone<br>
> part_get_parttype "/dev/sdb"<br>
> partition table type: msdos<br>
> list_partitions<br>
> part_del "/dev/sdb" 2<br>
> part_del "/dev/sdb" 1<br>
> starting to partition from 64<br>
> part_add "/dev/sdb" "primary" 64 3989311<br>
> part_set_bootable "/dev/sdb" 1 true<br>
> part_set_mbr_id "/dev/sdb" 1 131<br>
> part_add "/dev/sdb" "primary" 3989312 4091711<br>
> part_set_mbr_id "/dev/sdb" 2 130<br>
> copy_size "/dev/sda1" "/dev/sdb1" 943718400<br>
> copy_size "/dev/sda2" "/dev/sdb2" 52428800<br>
> umount_all<br>
> sync<br>
> kill_subprocess<br>
> *********************************************************************<br>
</div></div>[...]<br>
<br>
The debug output all looks fine.<br>
<br>
What does the partition table look like from within the resized<br>
guest?  (ie. fdisk -l ...)<br></blockquote><div><br>fdisk -l gives like this <br><br>[root@localhost ~]# fdisk -l<br><br>Disk /dev/xvda: 2097 MB, 2097152000 bytes<br>255 heads, 63 sectors/track, 254 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>
Disk identifier: 0x000dada5<br><br>    Device Boot      Start         End      Blocks   Id  System<br>/dev/xvda1   *           1         249     1994624   83  Linux<br>Partition 1 does not end on cylinder boundary.<br>/dev/xvda2             249         255       51200   82  Linux swap / Solaris<br>
Partition 2 does not end on cylinder boundary.<br>[root@localhost ~]# df -h<br>Filesystem            Size  Used Avail Use% Mounted on<br>/dev/xvda1            886M  684M  158M  82% /<br>tmpfs                 263M     0  263M   0% /dev/shm<br>
<br><br>It looks like it has increased the disk size. <br><br>but df shows old size <br><br>[root@localhost ~]# df -h<br>Filesystem            Size  Used Avail Use% Mounted on<br>/dev/xvda1          886M  684M  158M  82% /<br>
tmpfs                 263M     0  263M   0% /dev/shm<br><br><br>Do we have to manually do something inside the VM .   <br></div><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"><br>
> One more thing i am able to boot the new image but not able to mount it.<br>
<br>
</div>Did you see this problem?<br>
<br>
<a href="http://libguestfs.org/virt-resize.1.html#guest_boot_stuck_at_grub" target="_blank">http://libguestfs.org/virt-resize.1.html#guest_boot_stuck_at_grub</a><br>
<br>
Rich.<br></blockquote><div><br>Grub is having no problem at all it works fine only that i am not able to mount it: <br><br>mount -o loop,offset=32256 Fedora12-1 /mnt/disk1/<br><br>    mount: you must specify the filesystem type<br>
<br><br></div></div><br>Thanks<br>Vipul<br>