这篇文章主要介绍了RAC_UDEV的99-oracle-asmdevices.rules如何配置,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
wwid为3600 c0ff 0001001 CD 78 CD aa4e 02000000的分区一对应来对应/dev/udev1,分区2对应/dev/udev2,分区3对应/dev/ude v3如果配置中OWNER="grid", GROUP="asmadmin",则必须给oracle用户也加上asmadmin权限
按分区来
LINUX 5的/etc/udev/rules。d/99-甲骨文-asmdevices。规则配置(/block/$parent)
KERNEL=='sda1 ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-d/block/$ parent ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4 e 020000000 ',NAME='udev1 ',OWNER='grid ',GROUP='oinstall ',MODE='0660 '
KERNEL=='sda2 ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-d/block/$ parent ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4 e 02000000 ',NAME='udev2 ',OWNER='grid ',GROUP='oinstall ',MODE='0660 '
KERNEL=='sda3 ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-d/block/$ parent ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4 e 02000000 ',NAME='udev3 ',OWNER='grid ',GROUP='oinstall ',MODE='0660 '
LINUX 6的/etc/udev/rules。d/99-甲骨文-asmdevices。规则配置(/dev/$parent)
KERNEL=='sda1 ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-d/dev/$ parent ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4 e 020000000 ',NAME='udev1 ',OWNER='grid ',GROUP='oinstall ',MODE='0660 '
KERNEL=='sda2 ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-d/dev/$ parent ',RESULT==' 3600 c 0 ff 0001001 CD d 78 CD aa 4 e 02000000 ',NAME='udev2 ',OWNER='grid ',GROUP='oinstall ',MODE='0660 '
KERNEL=='sda3 ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-d/dev/$ parent ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4 e 02000000 ',NAME='udev3 ',OWNER='grid ',GROUP='oinstall ',MODE='0660 '
按磁盘来(%p)
LINUX 5
LINUX 6
/etc/udev/rules。d/99-甲骨文-asmdevices。规则配置都可如下
KERNEL=='sda ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-s % p ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4e 02000000 ',NAME='udev ',OWNER='grid ',GROUP=' asmadmin ',MODE='0660 '
LINUX 6也可单独如下(/dev/$name)
回声选项=-白名单-替换-空白/etc/scsi_id.config
内核=='sda ',总线=='scsi ',程序=='/sbin/scsi_id -白名单-替换-空白-设备=/dev/$name ',RESULT==' 3600 c 0 ff 0001001 CD 78 CD aa 4 e 02000000 ',NAME='udev ',OWNER='grid ',GROUP=' asmadmin ',MODE='0660 '
神谕官方故障文档推荐如下(%p)
如何使用UDEV(非ASMLIB)设置分区Linux操作系统块设备并将其分配给ASM?(文档身份证号1528148.1)
[root @ asmlnx 2 ~]# VI/etc/udev/rules。d/99-甲骨文-asmdevices。规则
KERNEL=='xv* ',BUS=='scsi ',PROGRAM=='/sbin/SCSI _ id-g-u-s % p ',RESULT==' 360 a 98000375331796 a3 f 434 a 55354474 ',NAME='asmdisk1_udev_p1 ',ACTION=='add|change ',OWNER='grid ',GROUP='asmadmin ',MODE='0660 '
$家长指核心值中的父节点设备
%p是当前设备的路径
感谢你能够认真阅读完这篇文章,希望小编分享的" RAC_UDEV的99-oracle-asmdevices.rules如何配置"这篇文章对大家有帮助,同时也希望大家多多支持,关注行业资讯频道,更多相关知识等着你来学习!
内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/81857.html