需要在虚拟机中部署rac测试环境,创建虚拟机后无法查看到wwid
[root@db1 ~]# for i in `cat /proc/partitions |awk {'print $4'} |grep sd`; do echo "Device: $i WWID: `/usr/lib/udev/scsi_id --page=0x83 --whitelisted --device=/dev/$i` "; done |sort -k4
Device: sda1 WWID:
Device: sda2 WWID:
Device: sda3 WWID:
Device: sda4 WWID:
Device: sda5 WWID:
Device: sda6 WWID:
Device: sda WWID:
Device: sdf WWID:
Device: sdc WWID:
Device: sdd WWID:
Device: sdb WWID:
Device: sde WWID:
Device: sdh WWID:
Device: sdg WWID:
Device: sdi WWID:
在虚拟机上增加参数
增加disk.EnableUUID = "TRUE"后重启虚拟机
重启后查询正常显示了
[root@db1 ~]# for i in `cat /proc/partitions |awk {'print $4'} |grep sd`; do echo "Device: $i WWID: `/usr/lib/udev/scsi_id --page=0x83 --whitelisted --device=/dev/$i` "; done |sort -k4
Device: sda1 WWID: 36000c2989c925335b5faef9265d56e04
Device: sda2 WWID: 36000c2989c925335b5faef9265d56e04
Device: sda3 WWID: 36000c2989c925335b5faef9265d56e04
Device: sda4 WWID: 36000c2989c925335b5faef9265d56e04
Device: sda5 WWID: 36000c2989c925335b5faef9265d56e04
Device: sda6 WWID: 36000c2989c925335b5faef9265d56e04
Device: sda WWID: 36000c2989c925335b5faef9265d56e04
Device: sdf WWID: 36000c29047466eae7fe9136deaf528fd
Device: sdc WWID: 36000c295936b4ac2ed6ceb4e28803c89
Device: sdd WWID: 36000c296e6b30a84fffec23f6d481845
Device: sdb WWID: 36000c297eac7c97201bebb5f2af04f19
Device: sde WWID: 36000c299204af1012bf891ac44985a95
Device: sdh WWID: 36000c29b76a62c0c3f77b9b13c5007ae
Device: sdg WWID: 36000c29c8aba8ee8236c33e53ea44db4
Device: sdi WWID: 36000c29f592be8e6c794b1828e66eb48