Discussion:
bus id match
Michal Filka
2012-05-22 13:07:14 UTC
Permalink
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=add /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=add
SUBSYSTEM=net
ID_VENDOR_FROM_DATABASE=Intel Corporation
ID_MODEL_FROM_DATABASE=82566DC 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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hannes Reinecke
2012-05-22 13:09:10 UTC
Permalink
Post by Michal Filka
Hi,
=20
=20
# replaced 70-persistent-net.rules
SUBSYSTEM=3D=3D"net", KERNELS=3D"0000:00:19.0", NAME=3D"eth1"
=20
# udevadm test --action=3Dadd /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=3D6
DEVPATH=3D/devices/pci0000:00/0000:00:19.0/net/eth0
INTERFACE=3Deth0
IFINDEX=3D2
ACTION=3Dadd
SUBSYSTEM=3Dnet
ID_VENDOR_FROM_DATABASE=3DIntel Corporation
ID_MODEL_FROM_DATABASE=3D82566DC Gigabit Network Connection
ID_BUS=3Dpci
ID_VENDOR_ID=3D0x8086
ID_MODEL_ID=3D0x104b
ID_MM_CANDIDATE=3D1
SYSTEMD_ALIAS=3D/sys/subsystem/net/devices/eth1
=20
So, the device is named correctly (eth1), but what about that
rename_netif errors? Is that a problem?
=20
You can't rename network interfaces in state 'UP'.
That only works for unconfigured interfaces.

Cheers,

Hannes
--=20
Dr. Hannes Reinecke zSeries & Storage
***@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg
GF: J. Hawn, J. Guild, F. Imend=C3=B6rffer, HRB 16746 (AG N=C3=BCrnberg=
)
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Continue reading on narkive:
Loading...