Permanent Oracle ASM raw access permissions to LVM volumes

Oracle ASM requires raw access to disk space, but I still want flexible LVM storage infrastructure. Therefore a lots of asmXX LVs was created in single "vg_data" VG. The VG was created as HOWTO LUNs on Linux using native tools recommends.

Because of raw access, these LVs have to have oracle:dba ownership. This can be done on-line, but let's fix it permanent using udev instruments.

# cat /etc/udev/rules.d/92-local-oracle-permissions.rules
ENV{DM_VG_NAME}=="vg_data",OWNER="oracle",GROUP="dba",MODE="0660"

Which attributes to choose is up to you. This command will help you to see them:

# udevadm info --attribute-walk --name=/dev/XXXX
  - OR -
# udevadm info --query=all --name=/dev/XXXX

If this was helpfull, please donate
Updated on Tue Dec 3 10:18:30 IST 2013 by Oleg Volkov More documentations here