标签:min 搭建 oracle 检查 .com test disk system 查看
查看由上回配置的共享磁盘,一共三块-----以下所有内容均两台物理机都需要操作
查看磁盘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 ~]#
[root@rac1 ~]# /sbin/udevadm trigger --type=devices --action=change
[root@rac1 ~]# /sbin/udevadm control --reload
[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
标签:min 搭建 oracle 检查 .com test disk system 查看
原文地址:https://www.cnblogs.com/kingle-study/p/10470941.html