Enabling SCSI_ID on VMware

To preserve the device names across reboots in Linux, udev rules is the recommended option.  The idea is to extract SCSI device’s unique ID and assign it to a symbolic name that will persist across reboots.  To get the SCSI device’s unique ID, Linux command scsi_id can be used.

On VMware, you might run into an issue where scsi_id did not return any results.

[root@oradb02 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sda
[root@oradb02 ~]#

To fix this, you have to enable a VMX configuration named disk.EnableUUID to TRUE.  You can accomplish this in two ways.

  1. Editing the VM’s vmx file
  2. Adding the option through VM’s settings in vCenter GUI.

Enabling through vCenter GUI

  1. Power off the VM
  2. Right click on the VM and select Edit Settings
  3. Select the VM Options tab, expand the Advanced option and click “Edit Configuration ..”
  4. At the bottom, enter disk.EnableUUID in the name field, TRUE in the value field and press Add and click OK.
  5. Power On the VM
[root@oradb02 ~]#  /usr/lib/udev/scsi_id -g -u -d /dev/sda
36000c2902c772ac74bc3bfcde421c6e4
[root@oradb02 ~]#
Like it? Share ...Share on twitter
Twitter
Share on linkedin
Linkedin
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Verified by MonsterInsights