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 1227194

Summary: use "p" as delimiter for NVMe devices
Product: Red Hat Enterprise Linux 6 Reporter: Vaughan Cao <vaughan.cao>
Component: grubAssignee: David Kaspar // Dee'Kej <deekej>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact: Petr Bokoc <pbokoc>
Priority: medium    
Version: 6.7CC: jbyers, pholica, vaughan.cao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
*GRUB* does not support NVMe devices Non-volatile memory NVM Express (NVMe) devices are not supported by the *GRUB* boot loader in Red Hat Enterprise Linux 6, and therefore the boot loader can't be installed on these devices. To work around the problem, you can: * Use another storage device to install the boot loader * Upgrade to RHEL 7, which uses *GRUB2* as the default boot loader and supports installation to NVMe devices
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 12:04:22 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:    
Bug Blocks: 1356047    
Attachments:
Description Flags
use "p" as delimiter for NVMe devices none

Description Vaughan Cao 2015-06-02 06:28:59 UTC
Created attachment 1033604 [details]
use "p" as delimiter for NVMe devices

Description of problem:
Install grub on a partitioned nvme device failed with "No such partition" reported.
It's because grub install determines the NVMe device partition as /dev/nvme0n11 instead of /dev/nvme0n1p1, since it doesn't use "p" as the delimiter.

Version-Release number of selected component (if applicable):
grub-0.97-94

How reproducible:
Always

Steps to Reproduce:

Install grub on a partitioned nvme device failed.
# grub --device-map=/opt/oracle.cellos/tmpl/usbMap_nvme --verbose
Attempt to open drive 0x80 (/dev/nvme0n1)
Attempt to open drive 0x81 (/dev/nvme1n1)

grub> root (hd0,0)
root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
 Running "install /grub/stage1 (hd0) /grub/stage2 p /grub/grub.conf "...
failed
 Error 22t: No such partition


Actual results:
grub install failed

Expected results:
succeed

Additional info:
I made a patch to fix it attached.

Comment 3 Pavel Holica 2016-10-21 12:53:38 UTC
Hello,
can you please try if grub-install works instead of running grub shell? If not, then we can try to fix grub-install script. If it works, please use grub-install, instead of the grub shell.

Comment 4 David Kaspar // Dee'Kej 2016-11-09 17:03:24 UTC
Still no reply from the reporter, moving this to RHEL-6.10.

Comment 5 Jeff Byers 2017-11-28 16:02:02 UTC
I ran into the same problem, and 'grub-install' did not work for me either.
I had to make a private version of the package using the patch the reporter provided, which then worked.

Comment 6 Jan Kurik 2017-12-06 12:04:22 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/