Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 140849

Summary: "fdisk -l" broken when over 26 EMC Powerpath disks
Product: Red Hat Enterprise Linux 3 Reporter: Bastien Nocera <bnocera>
Component: kernelAssignee: Tom Coughlan <coughlan>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: brilong, conway_heather, dledford, peterm, petrides, poelstra, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2005-663 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-28 14:34:16 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:    
Bug Blocks: 156320    
Attachments:
Description Flags
df | grep emcpower
none
cat /proc/partitions
none
fdisk -l
none
/usr/symcli/bin/sympd list (EMC Powerpath physical disk inventory) none

Description Bastien Nocera 2004-11-25 15:20:43 UTC
On a machine with more than 26 EMC Powerpath disks:
# cat /proc/partitions | grep emcpowera
234     0    2097152 emcpowera 20539 21244 334756 156980 212504
2040659 17741268 5676721 0 191080 5702061
234     1    2096451 emcpowera1 20477 20932 333804 156920 212503
2040659 17741266 5676701 0 191010 5702031
233     0   15728640 emcpowera 54 21 936 40 0 0 0 0 0 40 40
232     0     102400 emcpowera 150403 113 151402 49310 4 0 4 10 0
49310 49310

Only one of those "emcpowera" is really the "emcpowera" device, the
others could be "emcpoweraa" and "emcpowerab".
"fdisk -l" will read the /proc/partitions and get the device name from
there, and as can be seen above, it gets truncated.

So either fdisk needs to have a way to find which device corresponds
to a major/minor (this information is given by /proc/partitions), or
have the kernel not truncate those names.

Comment 1 Elliot Lee 2004-12-01 22:44:15 UTC
The kernel needs to report correct info.

Comment 2 Tom Coughlan 2004-12-15 13:30:33 UTC
Heather, are you aware of this problem with long PowerPath device names? Do you
have a workaround, or a fix?

Comment 3 Tom Coughlan 2004-12-17 16:46:25 UTC

*** This bug has been marked as a duplicate of 79086 ***

Comment 4 Ernie Petrides 2004-12-17 22:34:12 UTC
Reopening this bug because it's against RHEL3 (whereas 79086 is against RHEL2.1).

Comment 5 Brian Long 2005-01-05 15:34:37 UTC
This is not fixed in the RHEL3 U4 kernel.  Are there any planned fixes
for this?  I will attach fdisk -l output, /proc/partitions and output
from the EMC command "sympd list" which lists all physical disks. 
Output from "df" shows the devices we are actually mounting which do
not match with fdisk -l output.

Comment 6 Brian Long 2005-01-05 15:36:03 UTC
Created attachment 109375 [details]
df | grep emcpower

Comment 7 Brian Long 2005-01-05 15:36:47 UTC
Created attachment 109376 [details]
cat /proc/partitions

Comment 8 Brian Long 2005-01-05 15:38:20 UTC
Created attachment 109377 [details]
fdisk -l

Comment 9 Brian Long 2005-01-05 15:39:24 UTC
Created attachment 109378 [details]
/usr/symcli/bin/sympd list (EMC Powerpath physical disk inventory)

Comment 10 Ernie Petrides 2005-07-29 02:20:02 UTC
A fix for this problem has just been committed to the RHEL3 U6
patch pool this evening (in kernel version 2.4.21-34.EL).

Propagating acks from bug 79086, which is now against RHEL3.

*** This bug has been marked as a duplicate of 79086 ***

Comment 12 Red Hat Bugzilla 2005-09-28 14:34:16 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 the 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/RHSA-2005-663.html