Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Label Disk for ASM Filter Driver (AFD) requires restart of afd.service

Peter_L_Oct 24 2016 — edited Oct 26 2016

Hi,

currently I'm testing out the ASM Filter Driver handling for future use.

I've discovered something and maybe you know if it is expected or an issue:

I want to label a physical disk for ASM DG extension:

[root@repo ~]#asmcmd afd_label DBDATA6 /dev/sdq

ok

I see, that the new disk was added correctly under /dev/oracleafd/disks/ but the permissions are wrong (root:root instead of grid:asmadmin)

[root@repo ~]# ls -latr /dev/oracleafd/disks/

insgesamt 28

drwxrwx---. 3 grid asmadmin  80 24. Okt 12:04 ..

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:04 DBFRA

-rw-r--r--. 1 grid asmadmin   9 24. Okt 12:04 DBDATA5

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:04 DBDATA4

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:04 DBDATA3

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:04 DBDATA2

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:04 DBDATA

-rw-r--r--. 1 root root       9 24. Okt 12:06 DBDATA6

drwxrwx---. 2 grid asmadmin 180 24. Okt 12:06 .

the udev rules seems to be correct:

[root@repo ~]# cat /etc/udev/rules.d/53-afd.rules

#

# AFD devices

KERNEL=="oracleafd/.*", OWNER="grid", GROUP="asmadmin", MODE="0770"

KERNEL=="oracleafd/*", OWNER="grid", GROUP="asmadmin", MODE="0770"

KERNEL=="oracleafd/disks/*", OWNER="grid", GROUP="asmadmin", MODE="0660"

but

udevadm control --reload

udevadm trigger

has no effect.

Only

systemctl restart afd.service

helps and expected udev rules are applied.:

[root@repo ~]# ls -latr /dev/oracleafd/disks/

insgesamt 28

drwxrwx---. 3 grid asmadmin  80 24. Okt 12:08 ..

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:08 DBDATA2

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:08 DBDATA

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:08 DBFRA

-rw-r--r--. 1 grid asmadmin   9 24. Okt 12:08 DBDATA6

-rw-r--r--. 1 grid asmadmin   9 24. Okt 12:08 DBDATA5

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:08 DBDATA4

-rw-r--r--. 1 grid asmadmin  10 24. Okt 12:08 DBDATA3

drwxrwx---. 2 grid asmadmin 180 24. Okt 12:08 .

Could it be a problem to restart the afd.service while ASM running (it works, but I don't know waht happens in heavy load scenarios).

Is it expected to have to restart afd.service (systemd)?

Thank you

Peter

This post has been answered by Marco Mischke on Oct 25 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2016
Added on Oct 24 2016
4 comments
3,310 views