Bug 140849 - "fdisk -l" broken when over 26 EMC Powerpath disks
"fdisk -l" broken when over 26 EMC Powerpath disks
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Coughlan
Brian Brock
:
Depends On:
Blocks: 156320
  Show dependency treegraph
 
Reported: 2004-11-25 10:20 EST by Bastien Nocera
Modified: 2007-11-30 17:07 EST (History)
7 users (show)

See Also:
Fixed In Version: RHSA-2005-663
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-28 10:34:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
df | grep emcpower (3.16 KB, text/plain)
2005-01-05 10:36 EST, Brian Long
no flags Details
cat /proc/partitions (45.40 KB, text/plain)
2005-01-05 10:36 EST, Brian Long
no flags Details
fdisk -l (66.03 KB, text/plain)
2005-01-05 10:38 EST, Brian Long
no flags Details
/usr/symcli/bin/sympd list (EMC Powerpath physical disk inventory) (21.20 KB, text/plain)
2005-01-05 10:39 EST, Brian Long
no flags Details

  None (edit)
Description Bastien Nocera 2004-11-25 10:20:43 EST
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 17:44:15 EST
The kernel needs to report correct info.
Comment 2 Tom Coughlan 2004-12-15 08:30:33 EST
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 11:46:25 EST

*** This bug has been marked as a duplicate of 79086 ***
Comment 4 Ernie Petrides 2004-12-17 17:34:12 EST
Reopening this bug because it's against RHEL3 (whereas 79086 is against RHEL2.1).
Comment 5 Brian Long 2005-01-05 10:34:37 EST
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 10:36:03 EST
Created attachment 109375 [details]
df | grep emcpower
Comment 7 Brian Long 2005-01-05 10:36:47 EST
Created attachment 109376 [details]
cat /proc/partitions
Comment 8 Brian Long 2005-01-05 10:38:20 EST
Created attachment 109377 [details]
fdisk -l
Comment 9 Brian Long 2005-01-05 10:39:24 EST
Created attachment 109378 [details]
/usr/symcli/bin/sympd list (EMC Powerpath physical disk inventory)
Comment 10 Ernie Petrides 2005-07-28 22:20:02 EDT
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 10:34:16 EDT
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

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