Bug 1172660
| Summary: | virt-resize --expand fails on ubuntu-14.04.img image | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard W.M. Jones <rjones> |
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | hutao, huzhan, leiwang, mbooth, ptoscano, rbalakri, sylvain.pasche, wshi |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libguestfs-1.28.1-1.25.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1169015 | Environment: | |
| Last Closed: | 2015-11-19 06:58:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1169015 | ||
| Bug Blocks: | |||
|
Description
Richard W.M. Jones
2014-12-10 14:13:45 UTC
Reproduced this bug with the package: libguestfs-tools-c-1.28.1-1.18.el7.x86_64 Reproduce steps: 1. truncate -s 10G 10G.img 2. virt-resize -v -x --expand=/dev/sda1 ubuntu-14.04.img 10G.img 2>&1 | tee virt-resize-log.txt Error returns: libguestfs: trace: copy_device_to_device = -1 (error) virt-resize: error: libguestfs error: copy_device_to_device: /dev/sdb2: write: No space left on device A simpler reproducer for this is: $ virt-builder ubuntu-14.04 --size 50G With 1:libguestfs-tools-c-1.28.1-1.18.el7.x86_64 this will fail with an error message: [ 10.0] Resizing (using virt-resize) to expand the disk to 50.0G virt-resize: error: libguestfs error: copy_device_to_device: /dev/sdb2: write: No space left on device With the fixed virt-builder, you should see the virt-builder complete successfully. Verified with the package: libguestfs-tools-c-1.28.1-1.52.el7.x86_64 Verify steps: 1. truncate -s 10G 10G.img 2. virt-resize -v -x --expand=/dev/sda1 ubuntu-14.04.img 10G.img 2>&1 | tee virt-resize-log.txt ... libguestfs: calling virDomainDestroy "guestfs-3p0icg9ei6m89bsq" flags=VIR_DOMAIN_DESTROY_GRACEFUL libguestfs: trace: shutdown = 0 libguestfs: trace: close libguestfs: closing guestfs handle 0xdd4f10 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsLLzpkF Resize operation completed with no errors. Before deleting the old disk, carefully check that the resized disk boots and works correctly. So no errors return. Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2183.html |