[root@orcl1 dev]# ls -l sd*
brw-rw---- 1 root disk 8, 0 Aug 25 19:24 sda
brw-rw---- 1 root disk 8, 1 Aug 25 19:24 sda1
brw-rw---- 1 root disk 8, 2 Aug 25 19:24 sda2
brw-rw---- 1 root disk 8, 16 Aug 25 19:24 sdb
brw-rw---- 1 root disk 8, 32 Aug 25 19:24 sdc
brw-rw---- 1 root disk 8, 48 Aug 25 19:24 sdd
brw-rw---- 1 root disk 8, 64 Aug 25 19:24 sde
brw-rw---- 1 root disk 8, 80 Aug 25 19:24 sdf
brw-rw---- 1 root disk 8, 96 Aug 25 19:24 sdg其中,sdb、sdc、sdd、sde、sdf、sdg是我的共享磁盘,两台虚拟机都能识别出来。我使用的是vbox虚拟机
如果是这样的话,直接验证是通过。
[grid@orcl1 grid]$ ./runcluvfy.sh stage -post hwos -n orcl1,orcl2 -verbose
Performing post-checks for hardware and operating system setup
Checking node reachability...
Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed
Check: Time zone consistency
Result: Time zone consistency check passed
Checking shared storage accessibility...
Disk Sharing Nodes (2 in count)
------------------------------------ ------------------------
/dev/sdb orcl2 orcl1
Disk Sharing Nodes (2 in count)
------------------------------------ ------------------------
/dev/sdc orcl2 orcl1
Disk Sharing Nodes (2 in count)
------------------------------------ ------------------------
/dev/sdd orcl2 orcl1
Disk Sharing Nodes (2 in count)
------------------------------------ ------------------------
/dev/sde orcl2 orcl1
Disk Sharing Nodes (2 in count)
------------------------------------ ------------------------
/dev/sdf orcl2 orcl1
Disk Sharing Nodes (2 in count)
------------------------------------ ------------------------
/dev/sdg orcl2 orcl1
Shared storage check was successful on nodes "orcl2,orcl1"
Post-check for hardware and operating system setup was successful.
[grid@orcl1 grid]$
但是如果我使用UDEV绑定后就验证不通过了
UDEV绑定脚本
for i in b c d e f g ;
do
echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules
done
绑定后的磁盘
[root@orcl1 dev]# ls -l /dev
total 0
brw-rw---- 1 grid asmadmin 8, 16 Aug 25 18:38 asm-diskb
brw-rw---- 1 grid asmadmin 8, 32 Aug 25 18:38 asm-diskc
brw-rw---- 1 grid asmadmin 8, 48 Aug 25 18:38 asm-diskd
brw-rw---- 1 grid asmadmin 8, 64 Aug 25 18:38 asm-diske
brw-rw---- 1 grid asmadmin 8, 80 Aug 25 18:38 asm-diskf
brw-rw---- 1 grid asmadmin 8, 96 Aug 25 18:38 asm-diskg
绑定后进行检查,就不通过了,原因在哪里呢
[grid@orcl1 grid]$ ./runcluvfy.sh stage -post hwos -n orcl1,orcl2 -verbose
Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed
Check: Time zone consistency
Result: Time zone consistency check passed
Checking shared storage accessibility...
WARNING:
orcl1:Unable to determine the sharedness of /dev/sdb on nodes:
orcl2,orcl1
WARNING:
orcl1:Unable to determine the sharedness of /dev/sdc on nodes:
orcl2,orcl1
WARNING:
orcl1:Unable to determine the sharedness of /dev/sdd on nodes:
orcl2,orcl1
WARNING:
orcl1:Unable to determine the sharedness of /dev/sde on nodes:
orcl2,orcl1
WARNING:
orcl1:Unable to determine the sharedness of /dev/sdf on nodes:
orcl2,orcl1
WARNING:
orcl1:Unable to determine the sharedness of /dev/sdg on nodes:
orcl2,orcl1
No shared storage found
Shared storage check failed on nodes "orcl2,orcl1"
Post-check for hardware and operating system setup was unsuccessful on all the nodes.