Bug 1139582
Summary: | virt-builder is unable to resize XFS root filesystems | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | jshubin, mbooth, ptoscano, rbalakri |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-09-09 16:13:55 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: |
Description
Richard W.M. Jones
2014-09-09 09:07:51 UTC
This turned out to be because we'd not implemented xfs_growfs in virt-resize. This is implemented now, so virt-builder will expand the RHEL 7.0 partition to full size: $ virt-builder rhel-7.0 --size=20G [ 3.0] Downloading: http://***/builder/rhel-7.0.xz [ 4.0] Planning how to build this image [ 4.0] Uncompressing [ 34.0] Resizing (using virt-resize) to expand the disk to 20.0G [ 79.0] Opening the new disk [ 84.0] Setting a random seed [ 84.0] Setting passwords Setting random password of root to bYDcouj5i7I6MC6f [ 85.0] Finishing off Output file: rhel-7.0.img Output size: 20.0G Output format: raw Total usable space: 19.0G Free space: 18.1G (95%) $ virt-df -a rhel-7.0.img -h Filesystem Size Used Available Use% rhel-7.0.img:/dev/sda1 488M 56M 397M 12% rhel-7.0.img:/dev/sda3 18G 757M 18G 4% Fixed in: https://github.com/libguestfs/libguestfs/commit/163eb3b7a1921fe675f5a85d5dc28692d5e03bda in libguestfs >= 1.27.42. Well thanks! That was fast... I will test as soon as I get a new virt-builder. Cheers, James PS: In case it is very easy to do, and won't take much time, does anyone know how to kick koji so it spits out new versions that I can use/test for F20? I think that's here... http://koji.fedoraproject.org/koji/packageinfo?packageID=8391 Cheers So first of all 1.27.42 isn't actually released even upstream yet. However assuming you build a 1.27.42 tarball yourself from upstream git, you can take the Fedora Rawhide spec file[1], changes the 'sources' and the Source URL, and it is likely to build fine on Fedora 20. [1] http://pkgs.fedoraproject.org/cgit/libguestfs.git/tree/ or use: fedpkg clone -B libguestfs Note you *will* need to use the Rawhide or f21 spec, earlier versions certainly will not work. For whatever reasons (presumably my poor RPM/mock/koji/COPR skills) I was unable to build this either with rpmbuild, koji, copr, or anything else :P I guess I stink at compiling this stuff. I suppose I will have to wait for a real release, but if there is a way to make building this for the common person easier, that would be great too :) Cheers! James It looks as if a bunch of key dependencies have changed, such as OpenJDK. Why not just cherry pick the upstream patch on top of your Fedora 20 package? |