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 818505 - xen: fix drive naming [rhel-6.2.z]
Summary: xen: fix drive naming [rhel-6.2.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Frantisek Hrbata
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On: 729586
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-03 08:51 UTC by RHEL Program Management
Modified: 2013-01-11 02:01 UTC (History)
19 users (show)

Fixed In Version: kernel-2.6.32-220.20.1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-18 13:34:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0743 0 normal SHIPPED_LIVE Important: kernel security and bug fix update 2012-06-18 17:32:36 UTC

Description RHEL Program Management 2012-05-03 08:51:30 UTC
This bug has been copied from bug #729586 and has been proposed
to be backported to 6.2 z-stream (EUS).

Comment 4 Jay Greguske 2012-05-03 16:53:21 UTC
How is this getting "fixed"?

/dev/xvde -> /dev/xvda

or

/dev/xvde -> /dev/sda ?

Comment 5 Jay Greguske 2012-05-03 16:56:09 UTC
It is critical this change be tested in EC2 with the existing 6.2 AMIs. Changing the device names with a kernel update may cause the systems to be unbootable since /etc/fstab is looking for /dev/xvda.

Comment 6 Suzanne Forsberg 2012-05-03 17:05:31 UTC
(In reply to comment #5)
> It is critical this change be tested in EC2 with the existing 6.2 AMIs.
> Changing the device names with a kernel update may cause the systems to be
> unbootable since /etc/fstab is looking for /dev/xvda.

This change has already been made in RHEL 6.3. We should direct any inquires to Laszlo Ersek, the assigned engineer on that BZ https://bugzilla.redhat.com/show_bug.cgi?id=729586

Setting Needinfo

Comment 7 Laszlo Ersek 2012-05-03 18:03:14 UTC
"sda" is the identifier used in the VM config file, that is, the file under
/etc/xen/GUEST in dom0 (= host).

xvda and xvde are device nodes in the domU (= VM, guest).

----------+--------------------+-------------------------------------------
domU ver  | devnode in VM conf | devnode in guest
----------+--------------------+-------------------------------------------
6.0       | sda                | xvda
----------+--------------------+-------------------------------------------
6.1       | sda                | xvde
----------+--------------------+-------------------------------------------
6.2 GA    | sda                | xvde
----------+--------------------+-------------------------------------------
6.2.z     | sda                | xvde (compatible w/ 6.1 & 6.2 GA, default)
(this BZ) |                    | xvda (compatible w/ 6.0, guest modparam:
and 6.3   |                    |      xen_blkfront.sda_is_xvda=1)
----------+--------------------+-------------------------------------------


Graceful guest upgrde:

(1) First make sure the xen_blkfront.sda_is_xvda=1 modparam is in effect in
the domU (while it runs the 6.0.z kernel). For example, via
/etc/modprobe.d/some-config-file. Should the 6.0.z kernel be rebooted in
this state, the xen_blkfront driver will ignore the modparam.

(2) Upgrade the guest kernel to 6.2.z (having the backported patch). The
first time that kernel boots, the modparam will already be in effect: the
initrd is built for the first time when the 6.2.z kernel is installed, and
by then the /etc/modprobe.d/some-config-file should have the modparam in
place (step 1).


Alternatively, if a guest is installed from scratch, make sure the first
time its initrd is built, it gets xen_blkfront.sda_is_xvda=1.

Comment 8 Andrew Jones 2012-05-04 06:53:32 UTC
I've never completely understood the AMI management for EC2, but iirc, the guest kernels are completely managed by Amazon, not the customers. This means customers can't just do a 'yum update kernel' and then hose themselves with this issue. Instead, the kernel update has to be coordinated with Amazon, and thus the kernel command line can be added by Amazon when the update is performed, if needed. I believe we discussed all of this with Amazon at the time Laszlo wrote this patch. We had to, because at that time we had to choose which way to go for the default.

Now, if I'm wrong, and the customer can do 'yum update kernel', then IMHO, they should fix their /etc/fstab to use UUIDs instead of hardcoded devs, rather than adding kernel command line parameters. If they switch to UUIDs then they don't have to worry about drive renaming at all, but that's just my 2 cents...

Comment 9 Jay Greguske 2012-05-07 13:24:25 UTC
Before pv-grub was widely used in EC2, kernel were managed separately by Amazon and OS Vendors like us. Today however customers can do 'yum update kernel' just like on real hardware.

We'll need to make sure the UUID approach works in EC2. I seem to recall they changed either with each guest, or with each reboot, which made use of them infeasible.

Comment 15 errata-xmlrpc 2012-06-18 13:34:54 UTC
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/RHSA-2012-0743.html


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