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