Bug 1064970
| Summary: | Root partition does not get resized to the available space | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jaroslav Henner <jhenner> |
| Component: | rhel-guest-image | Assignee: | Joey Boggs <jboggs> |
| Status: | CLOSED ERRATA | QA Contact: | Jaroslav Henner <jhenner> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | afazekas, apevec, bfan, dgregor, erich, fdinitto, jgreguske, jhenner, leiwang, mnavrati, wshi, yuliu |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | rhel-guest-image-7.0-20140227.0 | Doc Type: | Bug Fix |
| Doc Text: |
With this update, the root file system of Red Hat Enterprise Linux guest images (in the qcow2 file format) is resized to the space that is available. Previously, the Red Hat Enterprise Linux guest images contained only a 6-GB root file, which could be insufficient under certain circumstances. Now, the scripts provided by the cloud-init packages can expand the partition and the file system automatically.
|
Story Points: | --- |
| Clone Of: | 977028 | Environment: | |
| Last Closed: | 2014-06-12 15:32:54 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: | 977028, 1032831, 1052486 | ||
| Bug Blocks: | 1052453 | ||
|
Comment 2
Jaroslav Henner
2014-02-13 16:48:45 UTC
I can confirm that after installing the growpart and making the snapshot, the root FS and it's partition have been resized (on background) by cloud-init. version: rhel-guest-image-7.0-20140227.0.x86_64.qcow2 Details: 1. emu-img info $version image: rhel-guest-image-7.0-20140227.0.x86_64.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 363M cluster_size: 65536 2. qemu-img resize $version +10G 3. qemu-img info $version # qemu-img info rhel-guest-image-7.0-20140227.0.x86_64.qcow2 image: rhel-guest-image-7.0-20140227.0.x86_64.qcow2 file format: qcow2 Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors cluster_size: 65536 4. Login to booted image: #fdisk -l virtual size: 20G (21474836480 bytes) disk size: 364M# fdisk -l ... # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 20G 758M 20G 4% / As the result we can tell that the root partition gets resized to available space. 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. http://rhn.redhat.com/errata/RHBA-2014-0754.html |