# Device mapper raw rules
KERNEL!="dm-[0-9]*", GOTO="skip_dm"
ACTION!="change", GOTO="skip_dm"
PROGRAM!="/sbin/dmsetup ls --exec /bin/basename -j %M -m %m", GOTO="skip_dm"
RESULT=="mpath0", RUN+="/bin/raw /dev/raw/raw1 /dev/mapper/mpath0"
RESULT=="mpath1", RUN+="/bin/raw /dev/raw/raw2 /dev/mapper/mpath1"
RESULT=="mpath2", RUN+="/bin/raw /dev/raw/raw3 /dev/mapper/mpath2"
RESULT=="mpath3", RUN+="/bin/raw /dev/raw/raw4 /dev/mapper/mpath3"
RESULT=="mpath4", RUN+="/bin/raw /dev/raw/raw5 /dev/mapper/mpath4"
RESULT=="mpath5", RUN+="/bin/raw /dev/raw/raw6 /dev/mapper/mpath5"
RESULT=="mpath6", RUN+="/bin/raw /dev/raw/raw7 /dev/mapper/mpath6"
RESULT=="mpath7", RUN+="/bin/raw /dev/raw/raw8 /dev/mapper/mpath7"
RESULT=="mpath8", RUN+="/bin/raw /dev/raw/raw9 /dev/mapper/mpath8"
RESULT=="mpath9", RUN+="/bin/raw /dev/raw/raw10 /dev/mapper/mpath9"
RESULT=="mpath10", RUN+="/bin/raw /dev/raw/raw11 /dev/mapper/mpath10"
LABEL="skip_dm"
KERNEL=="raw1", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw2", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw3", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw4", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw5", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw6", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw7", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw8", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw9", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw10", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="raw11", ACTION=="add", OWNER="grid", GROUP="asmadmin", MODE="0660"