这篇文章主要介绍了RAC_UDEV的99-oracle-asmdevices.rules如何配置,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下
这篇文章主要介绍了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如何配置”这篇文章对大家有帮助,同时也希望大家多多支持编程网,关注编程网数据库频道,更多相关知识等着你来学习!
--结束END--
本文标题: RAC_UDEV的99-oracle-asmdevices.rules如何配置
本文链接: https://lsjlt.com/news/64845.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0