一,磁盘配置
查看由上回配置的共享磁盘,一共三块-----以下所有内容均两台物理机都需要操作
查看磁盘id
[root@rac2 ~]# /usr/lib/udev/scsi_id -g -u /dev/sdd 36000c293f44d71c233c240a4c150b475 [root@rac2 ~]# /usr/lib/udev/scsi_id -g -u /dev/sdc 36000c2954a30394730cfbb390b97587c [root@rac2 ~]# /usr/lib/udev/scsi_id -g -u /dev/sdb 36000c29094e87ed8386bf78cd5dcb80e [root@rac2 ~]#
分配
[root@rac2 ~]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL=="sd*[!0-9]", ENV{DEVTYPE}=="disk", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode", RESULT=="36000c29094e87ed8386bf78cd5dcb80e", RUN+="/bin/sh -c ‘mknod /dev/asmdisk01 b $major $minor; chown grid:oinstall /dev/asmdisk01; chmod0660 /dev/asmdisk01‘" KERNEL=="sd*[!0-9]", ENV{DEVTYPE}=="disk", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode", RESULT=="36000c2954a30394730cfbb390b97587c", RUN+="/bin/sh -c ‘mknod /dev/asmdisk02 b $major $minor; chown grid:oinstall /dev/asmdisk02; chmod0660 /dev/asmdisk02‘" KERNEL=="sd*[!0-9]", ENV{DEVTYPE}=="disk", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode", RESULT=="36000c293f44d71c233c240a4c150b475", RUN+="/bin/sh -c ‘mknod /dev/asmdisk03 b $major $minor; chown grid:oinstall /dev/asmdisk03; chmod0660 /dev/asmdisk03‘" [root@rac2 ~]#
二,诊断
01,检查新设备
[root@rac1 ~]# /sbin/udevadm trigger --type=devices --action=change
02,重新加载UDEV
[root@rac1 ~]# /sbin/udevadm control --reload
03, 诊断udev
[root@rac1 rules.d]# /sbin/udevadm test /sys/block/sdb [root@rac1 rules.d]# /sbin/udevadm test /sys/block/sdc [root@rac1 rules.d]# /sbin/udevadm test /sys/block/sdd
04,查看是否绑定成功
原文地址:https://www.cnblogs.com/kingle-study/p/10470941.html
时间: 2024-10-10 05:03:29