VMware的Linux系统中查询磁盘的udev功能时,发现scsi_id命令无法返回设备的SCSI ID。 解决方案: 配置虚拟机vmx文件,添加 disk.EnableUUID = "TRUE" disk.locking=false 验证: 使用uudv生成ASM磁盘 [root@rac01 ~]# /lib/udev/scsi_id -g -u /dev/sdc 36000c298294ae08a9236bfc0a4752162 [root@rac01 ~]# /lib/udev/scsi_id -g -u /dev/sdb 36000c2952d5ef06cfdf74d34717b2da5
[root@rac01 ~]#cat /etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL=="sdb", ENV{ID_SERIAL}=="36000c2952d5ef06cfdf74d34717b2da5", SYMLINK+="asm_disk_1", OWNER="grid", GROUP="asmadmin", MODE="0660" KERNEL=="sdc", ENV{ID_SERIAL}=="36000c298294ae08a9236bfc0a4752162", SYMLINK+="asm_disk_2", OWNER="grid", GROUP="asmadmin", MODE="0660"
[root@rac01 rules.d]# scp -r99-oracle-asmdevices.rules root@192.168.0.143:/etc/udev/rules.d/ The authenticity of host '192.168.0.143(192.168.0.143)' can't be established. ECDSA key fingerprint is SHA256:cktM40iXZTpV48HSYfoIJE1mROk9T7PoKSW3lESc2Vo. ECDSA key fingerprint isMD5:7f:6c:f3:c0:cb:39:4d:de:b4:2d:83:03:c3:9e:15:72. Are you sure you want to continueconnecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.0.143'(ECDSA) to the list of known hosts. root@192.168.0.143's password: 99-oracle-asmdevices.rules 100% 275 166.0KB/s 00:00 [root@rac01 rules.d]# [root@rac01 rules.d]# /etc/init.d/boot.udevrestart [root@rac01 setup]# reboot Last login: Thu Sep 6 17:08:11 2018 [root@rac01 ~]# ll /dev/sd* brw-rw---- 1 root disk 8, 0 9月 6 17:06 /dev/sda brw-rw---- 1 root disk 8, 1 9月 6 17:06 /dev/sda1 brw-rw---- 1 root disk 8, 2 9月 6 17:06 /dev/sda2 brw-rw---- 1 grid asmadmin 8, 16 9月 6 17:06 /dev/sdb brw-rw---- 1 root disk 8, 17 9月 6 17:06 /dev/sdb1 brw-rw---- 1 grid asmadmin 8, 32 9月 6 17:06 /dev/sdc brw-rw---- 1 root disk 8, 33 9月 6 17:06 /dev/sdc1
|