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