scsi_id on CentOS 6 on VMware returns null

You may find the scsi_id command returns a null result in CentOS 6 or RHEL 6 on VMware.

[root@localhost ~]# scsi_id -g -u -d /dev/sdb
[root@localhost ~]#

 
The problem here is that VMware Workstation does not provide unique SCSI identifiers to the virtual SCSI devices. We need to modify the VMX file to make this happen by adding the following directive:

disk.EnableUUID = "TRUE"

 
Restart the VM and now the scsi_id command should work:

[root@localhost ~]# scsi_id -g -u -d /dev/sdb
36000c2980c56d98cc5150a0ac103058d
Advertisements

3 thoughts on “scsi_id on CentOS 6 on VMware returns null

    • Hi Morgan,

      The line can go anywhere in the file. It doesn’t matter.

      I usually sort the VMX files before saving them again to make it easier for me to read, but that is not necessary.

      Gruff.

  1. Btw. In my VMWare Player, I need to shut down the VM first and then after shut down add the changes, as it was removing the new added entries when rebooting the VM.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s