您好,登录后才能下订单哦!
这篇文章主要介绍了RAC_UDEV的99-oracle-asmdevices.rules如何配置,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
wwid为3600c0ff0001001cd78cdaa4e02000000的分区1对应来对应/dev/udev1,分区2对应/dev/udev2,分区3对应/dev/udev3
如果配置中OWNER="grid", GROUP="asmadmin",则必须给oracle用户也加上asmadmin权限,usermod -a -G asmadmin oracle
按分区来
LINUX 5的/etc/udev/rules.d/99-oracle-asmdevices.rules配置(/block/$parent)
KERNEL=="sda1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /block/$parent", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev1", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="sda2", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /block/$parent", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev2", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="sda3", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /block/$parent", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev3", OWNER="grid", GROUP="oinstall", MODE="0660"
LINUX 6的/etc/udev/rules.d/99-oracle-asmdevices.rules配置(/dev/$parent)
KERNEL=="sda1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev1", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="sda2", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev2", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="sda3", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev3", OWNER="grid", GROUP="oinstall", MODE="0660"
按磁盘来(%p)
LINUX 5
LINUX 6
/etc/udev/rules.d/99-oracle-asmdevices.rules配置都可如下
KERNEL=="sda", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev", OWNER="grid", GROUP="asmadmin", MODE="0660"
LINUX 6也可单独如下(/dev/$name)
echo "options=--whitelisted --replace-whitespace" >> /etc/scsi_id.config
KERNEL=="sda", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600c0ff0001001cd78cdaa4e02000000", NAME="udev", OWNER="grid", GROUP="asmadmin", MODE="0660"
ORACLE官方故障文档推荐如下(%p)
How To Setup Partitioned Linux Block Devices Using UDEV (Non-ASMLIB) And Assign Them To ASM? (文档 ID 1528148.1)
[root@asmlnx2 ~]# vi /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="xv*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="360a98000375331796a3f434a55354474", NAME="asmdisk1_udev_p1", ACTION=="add|change", OWNER="grid", GROUP="asmadmin", MODE="0660"
$parent指KERNEL值中的父节点设备
%p is the path for the current device
感谢你能够认真阅读完这篇文章,希望小编分享的“RAC_UDEV的99-oracle-asmdevices.rules如何配置”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。