Bug 635298 - virt-resize fails resizing ntfs on qcow2
Summary: virt-resize fails resizing ntfs on qcow2
Keywords:
Status: CLOSED DUPLICATE of bug 633766
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
: 635296 635297 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-18 19:55 UTC by sean
Modified: 2010-09-21 21:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-18 20:56:02 UTC
Embargoed:


Attachments (Terms of Use)
output from LIBGUESTFS_DEBUG=1 virt-resize --debug --expand /dev/sda1 XP.img XP-new-20G.img (47.78 KB, text/plain)
2010-09-18 19:55 UTC, sean
no flags Details

Description sean 2010-09-18 19:55:35 UTC
Created attachment 448224 [details]
output from LIBGUESTFS_DEBUG=1 virt-resize --debug --expand /dev/sda1 XP.img XP-new-20G.img

Description of problem:
 have a 15G qcow2 xp vm with only 1 partition:
-rw-------. 1 root root 10514137088 Sep 12 11:10 XP.img

I want to resize it to 20G. So I :

virsh vol-create-as --format raw  windows XP-new-20G.img 20G
Vol XP-new-20G.img created

-rw-------. 1 root root 21474836480 Sep 12 13:17 XP-new-20G.img

But:

virt-resize --expand /dev/sda1 XP.img XP-new-20G.img
Summary of changes:
/dev/sda1: partition will be resized from 14.6G to 20.0G
/dev/sda1: content will be expanded using the 'ntfsresize' method
part_add: do_part_add: parted: /dev/vdb: Error: The location 41938815s
is outside of the device /dev/vdb. at /usr/bin/virt-resize line 1092.

Version-Release number of selected component (if applicable):
libguestfs-tools-1.5.9-1.fc14.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Richard W.M. Jones 2010-09-18 20:56:02 UTC
This is actually a dupe of bug 633766 (a bug in parted).

*** This bug has been marked as a duplicate of bug 633766 ***

Comment 2 Richard W.M. Jones 2010-09-21 21:22:19 UTC
*** Bug 635296 has been marked as a duplicate of this bug. ***

Comment 3 Richard W.M. Jones 2010-09-21 21:22:32 UTC
*** Bug 635297 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.