Re: udev rules error

From: Andrew Kerber <andrew.kerber_at_gmail.com>
Date: Fri, 1 Aug 2014 13:04:05 -0500
Message-ID: <CAJvnOJZd7D-biYQGQ9D62BN4Q=FzF6OSZ-5DCrWE_ZrUQ1aZLw_at_mail.gmail.com>



I tried that format, and the NAME+= was ignored. SYMLINK+=... does appear to work. According to the man page, NAME now refers to network interface. At a guess, this is a behavior change in OEL 7.

I modified udev to set a symlink, and that appears to work properly. Is there something I need to watch for that will keep this from working?

I think I am going to do a blog entry comparing UDEV, ASMLIB, and ASMFD, if I can get them all to work on OEL 7.

On Fri, Aug 1, 2014 at 12:44 PM, nico torres <frasebook4_at_gmail.com> wrote:

> I've always configured my UDEV rules like this and never had any trouble
> (OEL 6.4)
>
> KERNEL=="sd*" SUBSYSTEM=="block", ENV{DEVTYPE}=="disk",
> ENV{ID_SERIAL}=="36000c299b073db44b2f5941dc7a279f5",
> NAME+="oracleasm/DSKsde", OWNER="grid", GROUP="oinstall", MODE="0660"
>
> oh, also, I have the following in /etc/scsi_id.config:
>
> options=-g
>
> After writing that rules, i then run:
>
> /sbin/partprobe /dev/sde
>
> and finally
>
> udevadm control --reload-rules
>
> /sbin/start_udev
>
> hope this helps!
>
>
>
> 2014-07-31 23:48 GMT-03:00 Andrew Kerber <andrew.kerber_at_gmail.com>:
>
> So, I have managed to get OEL 7 installed, but now for an additional
>> complication I have decided to teach myself something about udev rules
>> instead of using ASMLIB. I know it is a bit of religious war betwen udev
>> and asmlib, but anyway, here is my line from 99-oracle-asmdevices.rules:
>>
>> KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d
>> /dev/$parent", RESULT=="14f504e46494c45524856447a376e2d7871364a2d654b4272",
>> NAME="asm-disk1", OWNER="oracle", GROUP="dba", MODE="0660"
>>
>> The error message out of 'udevadm test /block/sdb/sdb1'
>>
>> is 'unknown key 'BUS' in /etc/udev/rules.d/99-oracle-asmdevices.rules:1
>> invalid rule '/etc/udev/rules.d/99-oracle-asmdevices.rules:1'
>>
>> Any ideas from the linux gurus?
>>
>> --
>> Andrew W. Kerber
>>
>> 'If at first you dont succeed, dont take up skydiving.'
>>
>
>

-- 
Andrew W. Kerber

'If at first you dont succeed, dont take up skydiving.'

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Aug 01 2014 - 20:04:05 CEST

Original text of this message