【Oracle】RAC共用儲存udev,oracleracudev

來源:互聯網
上載者:User

【Oracle】RAC共用儲存udev,oracleracudev
核心就在於以下兩個語句,測試了redhat 5和redhat 6,語句中的b c d代表的是sdb sdc sdd等,要根據實際情況進行修改

redhat 5
for i in b c d e f g h i j k l m n o p;    --根據自己的盤符做調整
do
echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id -g -u  /dev/\$name\", RESULT==\"`/sbin/scsi_id -g -u -s /block/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""
done


redhat 6
for i in b c d e f g h i j k l m n o p;    --根據自己的盤符做調整
do
echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id -g -u  /dev/\$name\", RESULT==\"`/sbin/scsi_id -g -u /dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""
done

配置UDEV Rules 檔案
[root@asm ~]# vim /etc/udev/rules.d/99-oracle-asmdevices.rules

然後把剛才產生的東西都加進去


重啟UDEV
[root@asm rules.d]# start_udev
Starting udev: [  OK  ]

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.