Skip to contentSkip to conversation

bus id match

DISCUSSION Michal Filka 2 participants 2 messages May 22, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

I've problem with following rule (simplified as much as possible):

# replaced 70-persistent-net.rules
SUBSYSTEM="net", KERNELS="0000:00:19.0", NAME="eth1"

# udevadm test --action­d /sys/class/net/eth0
(snip)
rename_netif: changing net interface name from 'eth0' to 'eth1'
rename_netif: error changing net interface name eth0 to eth1: Device or resource busy
(snip)
UDEV_LOG=6
DEVPATH=/devices/pci0000:00/0000:00:19.0/net/eth0 INTERFACE=eth0
IFINDEX=2
ACTION­d
SUBSYSTEM=net
ID_VENDOR_FROM_DATABASE=Intel Corporation ID_MODEL_FROM_DATABASE‚566DC Gigabit Network Connection ID_BUS=pci
ID_VENDOR_ID=0x8086
ID_MODEL_ID=0x104b
ID_MM_CANDIDATE=1 SYSTEMD_ALIAS=/sys/subsystem/net/devices/eth1
TAGS=:systemd:

So, the device is named correctly (eth1), but what about that rename_netif errors? Is that a problem?

Michal Filka

#1 lore raw
Quoted 28 lines · Michal Filka

Hi,

I've problem with following rule (simplified as much as possible):

# replaced 70-persistent-net.rules
SUBSYSTEM="net", KERNELS="0000:00:19.0", NAME="eth1"

# udevadm test --action�d /sys/class/net/eth0
(snip)
rename_netif: changing net interface name from 'eth0' to 'eth1'
rename_netif: error changing net interface name eth0 to eth1: Device or resource busy
(snip)
UDEV_LOG=6 DEVPATH=/devices/pci0000:00/0000:00:19.0/net/eth0 INTERFACE=eth0
IFINDEX=2
ACTION�d
SUBSYSTEM=net
ID_VENDOR_FROM_DATABASE=Intel Corporation ID_MODEL_FROM_DATABASE�566DC Gigabit Network Connection ID_BUS=pci
ID_VENDOR_ID=0x8086
ID_MODEL_ID=0x104b
ID_MM_CANDIDATE=1 SYSTEMD_ALIAS=/sys/subsystem/net/devices/eth1 TAGS=:systemd:

Quoted 3 lines

So, the device is named correctly (eth1), but what about that rename_netif errors? Is that a problem?

You can't rename network interfaces in state 'UP'. That only works for unconfigured interfaces.

Cheers,

Hannes

Signature · 8 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html