[TriLUG] Associate physical PCI slot with lspci?

Maxwell Spangler maxlists at maxwellspangler.com
Fri Sep 30 23:52:09 EDT 2011


On Thu, 2011-09-29 at 09:37 -0400, Ron Kelley wrote:
> Greetings all,
> 
> I am running CentOS 5.7 x64 and need a way to determine which cards have been inserted into which physical slots in a server.  I have a server in the data center with a 10G NIC reporting 1x PCI-E negotiation, but I am sure it is in the correct x8 slot (per the MB manual).  I tried using "lspci" to look for the physical slot number but did not find what I was looking for.  Without driving to the DC, how can I determine exactly which slot the card is inserted?

On your CentOS 5.7 system see if you have a module called pci_slot?

If so, load it then check /sys/bus/pci/slots for any entries?

Then check lspci -v and see if "Physical slot" shows up.

I know what you want is technically possible because I use it at work
all the time.  Alex Chiang, while at HP in 2008, wrote some nice code to
do all this and it works well.

BUT what I don't know is how far it made it out of HP and into
distributions and on what systems it works on.  My HP Desktop with
Fedora doesn't offer pci_slot or any of the functionality we all want.

You might google him and email him directly with a query.  He's working
for Canonical now.

-- 
Maxwell Spangler
========================================================================
        Linux System Administration / Computing Services
        Photography / Graphics Design / Writing
        Boulder, Colorado
        http://www.maxwellspangler.com
        




More information about the TriLUG mailing list