Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 700594

Summary: [RFE] RHEL6 EC2 images using the raw device instead of a partition for /
Product: Red Hat Enterprise Linux 6 Reporter: Jay Greguske <jgreguske>
Component: relengAssignee: Jay Greguske <jgreguske>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dmach, jfenal, jgreguske, jwest, kbidarka, prc, sghai, syeghiay
Target Milestone: rcKeywords: EC2, FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Snapshot 5 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 688643 Environment:
Last Closed: 2011-06-09 19:07:23 UTC Type: ---
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: 688643    
Bug Blocks:    

Description Jay Greguske 2011-04-28 18:20:45 UTC
+++ This bug was initially created as a clone of Bug #688643 +++

Description of problem:
- Freshly deployed RHEL5.5 instances have one 6GB partition only used for / (instead of 10GB previously).
- It is impossible to resize it without rebooting (/ being mounted, partitions cannot be reloaded by the kernel, and one cannot grow a filesystem beyond the partition limit anymore)

Version-Release number of selected component (if applicable):
RHEL5.5 EC2 images

How reproducible:
100%

Steps to Reproduce:
1. Install the RHEL5.5 AMIs on a 10GB block device
2. Try to repartition using fdisk/parted/sfdisk
3. Optionally try to reload the partition table using partprobe
4. Try to resize2fs
  
Actual results:
Operations 2-3 fail, operation 4 is therefore impossible.


Expected results:
No need for the steps 2-3

Additional info:

# strace kpartx -a /dev/sda
stat("/dev/sda", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, DM_DEV_STATUS, 0x42bae60)      = -1 ENXIO (No such device or address)

# strace partprobe /dev/sda
ioctl(3, CDROMAUDIOBUFSIZ or SCSI_IOCTL_GET_IDLUN, 0x7fff3ecac5b0) = -1 EINVAL (Invalid argument)
write(2, "Error: ", 7Error: )                  = 7
write(2, "Error initialising SCSI device /"..., 59Error initialising SCSI device /dev/sda - Invalid argument
) = 59

--- Additional comment from whayutin on 2011-03-21 12:24:22 EDT ---

added Jay to the bug

Comment 2 wes hayutin 2011-05-25 19:54:02 UTC
[whayutin@minidoe bin]$ ssh -i ~/cloude-key.pem root.amazonaws.com
Last login: Wed May 25 14:55:05 2011 from 99.39.212.236
[root@domU-12-31-39-09-29-E3 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda             5.7G  1.6G  4.1G  28% /
none                  837M     0  837M   0% /dev/shm
[root@domU-12-31-39-09-29-E3 ~]# resize2fs 
resize2fs 1.41.12 (17-May-2010)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size]

[root@domU-12-31-39-09-29-E3 ~]# resize2fs -p /dev/xda1 10000M
resize2fs 1.41.12 (17-May-2010)
open: No such file or directory while opening /dev/xda1
[root@domU-12-31-39-09-29-E3 ~]# resize2fs -p /dev/xda 10000M
resize2fs 1.41.12 (17-May-2010)
open: No such file or directory while opening /dev/xda
[root@domU-12-31-39-09-29-E3 ~]# resize2fs -p /dev/xvda 10000M
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/xvda is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/xvda to 2560000 (4k) blocks.
The filesystem on /dev/xvda is now 2560000 blocks long.

[root@domU-12-31-39-09-29-E3 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda             9.7G  1.6G  8.1G  16% /
none                  837M     0  837M   0% /dev/shm
[root@domU-12-31-39-09-29-E3 ~]#

Comment 3 errata-xmlrpc 2011-06-09 19:07:23 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0540.html