Enabling SCSI_ID on VMware

Learn how to preserve device names across reboots in Linux using udev rules, and how to resolve scsi_id issues on VMware by enabling the disk.

Enabling SCSI_ID on VMware

image_pdfimage_print

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.

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 ..”

    Enabling SCSI_ID on VMware
  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 ~]#

Conclusion

Configuring persistent device naming in Linux using udev rules ensures stability and consistency for storage management, particularly in VMware environments. By enabling the disk.EnableUUID setting, you can overcome challenges with scsi_id and ensure reliable identification of SCSI devices across reboots.

This approach is especially critical in dynamic VMware environments where seamless integration with modern storage solutions, like those from Pure Storage, can enhance performance, scalability, and flexibility for application development and operations. Implementing these best practices strengthens the foundation for efficient storage management and robust virtualization workflows.

Modern Hybrid Cloud Solutions