Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17781

Persistent udev rule based on bus position question

$
0
0

Hello Linux Admins!

I have installed a new network card in a server, and the system is not automatically detecting it. I searched google, and came upon this linux from scratch article which comes close to answering my question. However, the issue I have is that per the example, the bus position is determined by the directory in which the device is found. In the example, the directory is

/sys/devices/pci0000:00/0000:00:0c.0 

however my actual devices are a level deeper than this. My actual hardware is found in

/sys/devices/pci0000:00/0000:00:03.0/0000:02:00.0 

so my question is, "What is the proper notation (which bus position?) should I be notating in the 70-persistent-net.rules file? which is correct?

 KERNELS=="0000:00:03.0" 

or

KERNELS=="0000:02:00.0" 

or some thing else like

KERNELS=="0000:00:03.0/0000:02:00.0" 

*edit: normally I'd just take try a bunch of different combinations until I hit the right one, but this is a production server. I can get away with rebooting it once during business, but I can't just trial and error it. (yeah yeah... maint window and all that. I'd really like to get this working)

*2nd edit: I've been researching this all day, and it seems that the reason it's not being detected might be related to the fact that it's a PCI-e NIC. lspci gives a clue as to what might be going on

# lspci -t -v -[0000:00]-+-00.0 Intel Corporation 82975X Memory Controller Hub +-01.0-[0000:01]----00.0 nVidia Corporation G72 [GeForce 7300 SE] +-03.0-[0000:02]----00.0 Intel Corporation 82574L Gigabit Network Connection +-1b.0 Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller +-1c.0-[0000:03]-- +-1c.5-[0000:04]----00.0 Intel Corporation 82573L Gigabit Ethernet Controller +-1d.0 Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 +-1d.1 Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 +-1d.2 Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 +-1d.3 Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 +-1d.7 Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller +-1e.0-[0000:05]--+-00.0 Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ | +-02.0 3Com Corporation 3c905B 100BaseTX [Cyclone] | \-04.0 Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) 
submitted by s0briquet
[link][3 comments]

Viewing all articles
Browse latest Browse all 17781

Trending Articles