ESXi 5.5 enable SSD

VMware’s ESXi servers frequently are unable to recognize attached SSD devices, especially when they are behind a RAID controller. If a storage device is not recognized as an SSD, it cannot be designated for vFRC or the Virtual Flash Host Swap Cache function. A set of commands outlined in VMware’s KB 2013188 will mark the storage device as a local SSD and enable the required functionality. If you are up to living dangerously, you can mark any local storage device as an SSD.

The steps below need to be run from the VMware Vsphere CLI (not the PowerCLI!!!). You will need to identify the storage device in the vSphere Web Client and identify its naa.x number. Execute the commands below, replacing server.name with your server’s IP address and naa.x with the number you copied from the Web Client. When you execute each command you will be asked for your ESXi host’s admin user account (usually root) and password.

esxcli -s server.name storage nmp satp rule add –-satp=VMW_SATP_LOCAL –-device naa.x --option "enable_local enable_ssd"
esxcli -s server.name storage core claiming unclaim --type=device --device naa.x
esxcli -s server.name storage core claimrule load
esxcli -s server.name storage core claimrule run
esxcli -s server.name storage core claiming reclaim -d naa.x

Finally, once you have completed the above, run this final command to confirm the drive is now marked as an SSD.

esxcli -s server.name storage core device list -d naa.x

If you have performed the steps correctly, the output should look something similar to the below. If it all checks out, reboot the host and configure the cache features you need!

C:\Program Files (x86)\VMware\VMware vSphere CLI>esxcli -s 192.168.0.99 storage nmp satp rule add --satp=VMW_SATP_LOCAL --device naa.600605b0044044c01c77cb68336c94f0 --option "enable_local enable_ssd"
Enter username: root
Enter password:
C:\Program Files (x86)\VMware\VMware vSphere CLI>esxcli -s 192.168.0.99 storage core claiming unclaim --type=device --device naa.600605b0044044c01c77cb68336c94f0
Enter username: root
Enter password:
C:\Program Files (x86)\VMware\VMware vSphere CLI>esxcli -s 192.168.0.99 storage core claimrule load
Enter username: root
Enter password:192.168.0.99
C:\Program Files (x86)\VMware\VMware vSphere CLI>esxcli -s 192.168.0.99 storage core claimrule run
Enter username: root
Enter password:
C:\Program Files (x86)\VMware\VMware vSphere CLI>esxcli -s 192.168.0.99 storage core claiming reclaim --device naa.600605b0044044c01c77cb68336c94f0
Enter username: root
Enter password:
C:\Program Files (x86)\VMware\VMware vSphere CLI>esxcli -s 192.168.0.99 storage core device list --device naa.600605b0044044c01c77cb68336c94f0
Enter username: root
Enter password:
naa.600605b0044044c01c77cb68336c94f0
   Display Name: Local IBM Disk (naa.600605b0044044c01c77cb68336c94f0)
   Has Settable Display Name: true
   Size: 109922
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/naa.600605b0044044c01c77cb68336c94f0
   Vendor: IBM
   Model: ServeRAID M5016
   Revision: 3.41
   SCSI Level: 5
   Is Pseudo: false
   Status: on
   Is RDM Capable: false
   Is Local: true
   Is Removable: false
   Is SSD: true
   Is Offline: false
   Is Perennially Reserved: false
   Queue Full Sample Size: 0
   Queue Full Threshold: 0
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0200000000600605b0044044c01c77cb68336c94f0536572766552
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false
   No of outstanding IOs with competing worlds: 32
C:\Program Files (x86)\VMware\VMware vSphere CLI>
Advertisements

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