Re: [systemd-devel] udev rules fails to set attribute on boot on CentOS 6.6

2015-02-11 Thread Lennart Poettering
On Thu, 05.02.15 15:11, Angelos Ching (angelosch...@clustertech.com) wrote:

> Hi guys,
> 
> I'm not exactly sure if I'm asking the right question in the right place,
> please let me know if this is not the right place for this question.
> 
> I'm setting up SR-IOV for my Intel I350 igb on CentOS 6.6
> (2.6.32-504.el6.x86_64, udev 147) using udev. I have modified a rule I used
> in CentOS 7 (3.10.0-123.el7.x86_64, udev 208). When I do "udevadm test" on
> CentOS 6.6, the rule is matched correctly and sets the sriov_numvfs
> attribute to the desired number and enables SR-IOV accordingly:
> 
> # cat /etc/udev/rules.d/igbsriov.rules
> KERNEL==":01:00.0", SUBSYSTEM=="pci", DRIVER=="igb",
> ATTR{vendor}=="0x8086", ATTR{device}=="0x1521",
> WAIT_FOR="/sys/bus/pci/devices/:01:00.0/sriov_numvfs",
> ATTR{sriov_numvfs}="7"
> 
> However, when the computer is reboot, sriov_numvfs attribute is not set
> until I perform "udevadm trigger"
> 
> Any ideas what I may be missing?

systemd upstream is probably not the best place to ask questions about
really old distros, with udev versions predating systemd... Also,
sriov questions are not really at the right place here either...

Sorry,

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] udev rules fails to set attribute on boot on CentOS 6.6

2015-02-04 Thread Angelos Ching

Hi guys,

I'm not exactly sure if I'm asking the right question in the right 
place, please let me know if this is not the right place for this question.


I'm setting up SR-IOV for my Intel I350 igb on CentOS 6.6 
(2.6.32-504.el6.x86_64, udev 147) using udev. I have modified a rule I 
used in CentOS 7 (3.10.0-123.el7.x86_64, udev 208). When I do "udevadm 
test" on CentOS 6.6, the rule is matched correctly and sets the 
sriov_numvfs attribute to the desired number and enables SR-IOV accordingly:


# cat /etc/udev/rules.d/igbsriov.rules
KERNEL==":01:00.0", SUBSYSTEM=="pci", DRIVER=="igb", 
ATTR{vendor}=="0x8086", ATTR{device}=="0x1521", 
WAIT_FOR="/sys/bus/pci/devices/:01:00.0/sriov_numvfs", 
ATTR{sriov_numvfs}="7"


However, when the computer is reboot, sriov_numvfs attribute is not set 
until I perform "udevadm trigger"


Any ideas what I may be missing?

Best regards,
Angelos
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel