- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Order of dual quad cards in DL380 G5 with RHEL 3
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 12:32 AM
07-29-2009 12:32 AM
I have many DL380 G5 servers. Each one is installed with 2 "HP NC364T PCIe 4Pt Gigabit Server Adptr" network cards. Usually, when I install Redhat Ent 3, the bottom card in PCI-X slot 4 get port assignment eth0-eth3 and the top card in slot 5 get ports eth4-eth7. With some of the servers, the order is inversed. So, the top quad card in slot 5 get numbers eth0-eth3.
One might think this is not a problem, as all the ports do work, but the documentation that the cabling on the back of the server should always be the same for every server, without exception.
Question: How can I force the port assignment of the network cards to start the numbering on slot 4 with eth0 - eth3 in the hardware or when installing Red-Hat Ent 3?
I have tried sofar to:
- Swap the names of the eth0-eth7 in redhat-config-network. e.g. eth6 -> eth2 and eth2 -> eth6, no result
- Look for an order assignment in the BIOS, nothing found.
- Look at the IRQ in the BIOS, but these seem to be random
- Physically swap the two network cards in the DL380 G5, without result.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 01:39 AM
07-29-2009 01:39 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
Question: How can I force the port assignment of the network cards to start the numbering on slot 4 with eth0 - eth3 in the hardware or when installing Red-Hat Ent 3?
You really can not.
You can clean the system and start from scratch.
Use the BIOS to disable the built in NIC cards, do a clean install with only the NIC card you want to be eth0 in it. You might get eth0. You however might get eth2 because even with the onboard cards disabled, they may still be visible to the OS.
I have taken a few tries at this over the years and the results have been frustrating.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 02:13 AM
07-29-2009 02:13 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
Unfortunately, it is an automated install that does not allow for temporary hardware removal.
The internal NICS are never used and luckily always get assigned eth8 and eth9.
On the VMware community ( http://communities.vmware.com/thread/138420 ) there is someone with the exact same hardware, but not the same problem. However, one of the replies there seems to suggest that the port assignment is also influenced by active cabling. I am not sure if this applies, but, VMware does appear to have / have had a Red Hat core. Therefor, I will try to disconnect all cabling on the second quad card and see if it has an effect after a reinstall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 03:16 AM
07-29-2009 03:16 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
Sadly you are stuck with the results. The only way to manipulate the process is a clean install of the OS minus part of the hardware.
That never worked for me.
So you need to adjust to the reality of how RHEL detects and assigns eth numbers.
Sorry I could not help further.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 03:48 AM
07-29-2009 03:48 AM
SolutionWith 2.6 kernels, the device detection works by walking through the PCI bus tree (see "lspci" listing). When a NIC is detected, a driver is loaded and it takes the first free eth* device by default. If the same driver can control more cards, it allocates eth* devices for them too.
In Linux 2.4.* and older kernels, each driver implemented the device detection separately and could do it in any order. Some NIC drivers used PCI bus tree order, others started allocating NIC names by selecting the lowest-numbered MAC address first. I guess the latter is the case for your NICs.
So, a hardware solution for new systems:
When building up the system, check the MAC addresses of the NIC cards. (Quad NICs usually have four consecutive MAC addresses.)
Always put the card with numerically lower MAC addresses to slot 4, and the other (with higher MAC address numbers) to slot 5.
A software solution for existing systems:
Edit the /etc/sysconfig/network-scripts/ifcfg-eth* files. Add to *each* file a line with HWADDR=
Note: this strategy is the default in RHEL 4 and above. When a NIC is detected for the first time, its MAC address is written as a HWADDR line in its /etc/sysconfig/network-scripts/ifcfg-eth* file. This makes sure that once a NIC is configured using a particular name, that name stays with the NIC even if other NICs are removed or the NIC order is changed.
This causes much head-scratching for a sysadmin who is not aware of how the system works (been there, done that).
Note 2: the HWADDR configuration variable is different from the MACADDR variable. HWADDR means "this configuration file is meant for a network port with this MAC, rename NICs if necessary to make it so", while MACADDR means "set a custom MAC address for this NIC". You should never use these two variables together.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2009 11:14 PM
07-29-2009 11:14 PM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
The issue is also that DL380 G5 servers that were purchased earlier have never shown this behaviour. They have always been assembled by HP and I do not believe they would always have paid attention to the NIC order on the riser card.
I still have another five servers in another location that have all installed with the correct NIC order. To install Red Hat and COTS, I always use the same procedure to install, with a kickstart file and self-written scripts.
I will also check the version of the BIOS. Possibly, a newer version introduced an unwanted feature. The BIOS I see on the five servers that "misbehave" is P56 11/02/2008 . I could not find that particular BIOS on the HP website however.
(I Googled for "Systems ROMPaq Firmware Upgrade for HP ProLiant DL380 G5 (P56) Servers")
Thanks for the HWADDR hint, it provides a good workaround and actually works very well. The only problem is that someone that is unaware might have a problem at a reinstall or after the replacement of a broken NIC. I will continue testing for now and look for a permanent and repeatable solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2009 03:25 AM
07-30-2009 03:25 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
As I said, in 2.4 kernel series each driver implemented the hardware detection separately. Most drivers used either the PCI bus order or the MAC order, but the driver you're using might be one of the few that used a non-obvious algorithm.
If the driver module is one of the standard Linux NIC drivers, I might be able to take a peek at the source and find out how its detection algorithm works.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2009 06:04 AM
07-30-2009 06:04 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2009 10:16 PM
07-30-2009 10:16 PM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
That would result in a PCI bus-based detection order, as far as I understand.
At this point, I'm almost stumped. I'll examine a few of our DL380 G5s at work, maybe it rings a bell. Unfortunately about all our G5s are running RHEL 4 or 5, not 3, so I probably don't have a chance to test the behaviour of a RHEL 3 on this platform.
Hmm... There is a HP customer advisory about a similar problem on Windows. Perhaps there is something at the hardware/firmware level that causes this?
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00712319〈=en&cc=us&taskId=101&prodSeriesId=1121516&prodTypeId=15351
Have you checked the BIOS versions? Perhaps there is a commonality (= a particular BIOS version that causes a different slot detection order).
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2009 12:49 AM
07-31-2009 12:49 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
My idea is also that the BIOS has something to do with it. Unfortunately, I am not allowed to upgrade the BIOS/firmware on any of the G5 servers that we have. It would have been nice to test at least one of them with the latest version that came out some weeks ago.
Although I cannot find in the release notes/bug fixes that there has been a PCI order issue, it may still have been solved. The reason is also that the BIOS I mentioned previously, cannot be found in the official release list.
What I hope to do one day is to test the newer BIOS, and until then use workarounds. Thanks a lot.
JH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2009 07:23 AM
07-31-2009 07:23 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
BIOS is the most likely path to a fix.
You should try IMO to budget for a sandbox server to test this out.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2009 05:15 AM
08-03-2009 05:15 AM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
Although a quick reinstall did not solve the issue, I have some new hope.
The Enhancements mentioned:
"Added support for an Advanced ROM Based Setup (RBSU) Option to disable PCI Bus Padding. By default, the ProLiant System ROM will pad the number of PCI buses assigned to prevent PCI bus numbers for existing devices from hanging when expansion cards are added to the system. This may prevent an operating system from attempting to re-enumerate existing devices when an expansion card is initially installed. Disabling this option may work around issues with certain expansion cards that do not properly handle the padding of PCI busses."
Also, when looking for "re-enumerate PCI devices" on google I found some people that were able to resolve some ethernet ordering issues by adding lines in the kickstart files on RHEL5.3.
First I will have a go at disabling the PCI bus padding in the BIOS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 12:49 PM
08-19-2009 12:49 PM
Re: Order of dual quad cards in DL380 G5 with RHEL 3
I moved the upper card (PCI5) to the shorter PCI-Express slot. It should be sufficient to still get the full speed of the card in this slot.
I am lucky, now the order of the ports is as I like it.
Thanks to all for your input.