时间:2021-07-01 10:21:17 帮助过:79人阅读
cd /lib/udev/rules.d
ll 99-oracle-permission.rules
vi 99-oracle-permission.rules
SUBSYSTEM!="block", GOTO="dm_end"
KERNEL!="dm-*", GOTO="dm_end"
PROGRAM=="/bin/bash -c ‘/sbin/dmsetup info -c --noheadings -j %M -m %m -o name‘"
RESULT=="spathap1", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
RESULT=="spathap2", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
RESULT=="spathap3", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
RESULT=="spathap4", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
RESULT=="spathap5", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
RESULT=="spathap6", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
RESULT=="spathap7", OWNER:="grid",GROUP:="asmadmin",MODE:="660"
LABEL="dm_end"
重载udev规则
/sbin/udevadm control --reload-rules
事后检查
操作成功后,检查如下:
[root@hisrac1 ~]# ll /dev/dm*
brw-rw----. 1 root disk 253, 0 Dec 1 20:15 /dev/dm-0
brw-rw----. 1 root disk 253, 1 Dec 1 20:15 /dev/dm-1
brw-rw----. 1 root disk 253, 10 Dec 1 20:15 /dev/dm-10
brw-rw----. 1 root disk 253, 2 Dec 1 20:15 /dev/dm-2
brw-rw----. 1 grid asmadmin 253, 3 Dec 23 15:21 /dev/dm-3
brw-rw----. 1 grid asmadmin 253, 4 Dec 23 15:21 /dev/dm-4
brw-rw----. 1 grid asmadmin 253, 5 Dec 23 15:21 /dev/dm-5
brw-rw----. 1 grid asmadmin 253, 6 Dec 23 15:21 /dev/dm-6
brw-rw----. 1 grid asmadmin 253, 7 Dec 23 15:21 /dev/dm-7
brw-rw----. 1 grid asmadmin 253, 8 Dec 23 15:21 /dev/dm-8
brw-rw----. 1 grid asmadmin 253, 9 Dec 23 15:21 /dev/dm-9
oracle基础环境配置(存储权限)
标签:oracle LUN权限 grid asmadmin 存储