Emulate a SSD drive in ESXi


How to emulate a SSD drive:

You require a device with sufficient storage space and of course an ESX box.

To verify whether SSD option is already enabled or not, execute

# esxcli storage core device list –device=<device name>

The output will be having a field “Is SSD” which denotes whether it’s enabled or not.

You need to create a new SATP rule specifying your device and specifying the “enable_ssd” string as part of the –option parameter:

# esxcli storage nmp satp rule add –satp VMW_SATP_LOCAL –device <device name> –option=enable_ssd

# esxcli storage nmp satp rule list |grep enable_ssd

VMW_SATP_LOCAL

mpx.vmhba1:C0:T2:L0

You now can verify from the command line that your new device is being seen as an SSD device, by displaying the details for this particular device:

# esxcli storage core device list –device=<device name>

mpx.vmhba1:C0:T2:L0

Display Name: Local VMware Disk (mpx.vmhba1:C0:T2:L0)

Has Settable Display Name: false    Size: 5120

Device Type: Direct-Access    Multipath Plugin: NMP

Devfs Path: /vmfs/devices/disks/mpx.vmhba1:C0:T2:L0

Vendor: VMware    Model: Virtual disk    Revision: 1.0    SCSI Level: 2    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

Thin Provisioning Status: unknown

Attached Filters:    VAAI Status: unsupported

Other UIDs: vml.0000000000766d686261313a323a30

Now you can refresh the Storage view on the vSphere Client or you can do so from the command line by running the following command:

#vim-cmd hostsvc/storage/refresh

To remove the settings:

# esxcli storage nmp satp rule remove –satp VMW_SATP_LOCAL –device naa.6001e4f01d872f001769bdcb4f02a105 –option=enable_ssd

# esxcli storage nmp satp list |grep ssd

# esxcli storage core claiming reclaim -d naa.6001e4f01d872f001769bdcb4f02a105

# esxcli storage core device list –device=naa.6001e4f01d872f001769bdcb4f02a105

naa.6001e4f01d872f001769bdcb4f02a105

Display Name: Local DELL Disk (naa.6001e4f01d872f001769bdcb4f02a105)

Has Settable Display Name: true

Size: 139392

Device Type: Direct-Access

Multipath Plugin: NMP

Devfs Path: /vmfs/devices/disks/naa.6001e4f01d872f001769bdcb4f02a105

Vendor: DELL

Model: PERC 5/i

Revision: 1.03

SCSI Level: 5

Is Pseudo: false

Status: on

Is RDM Capable: false

Is Local: true

Is Removable: false

Is SSD: false

Is Offline: false

Is Perennially Reserved: false

Thin Provisioning Status: unknown

Attached Filters:

VAAI Status: unsupported

Other UIDs: vml.02000000006001e4f01d872f001769bdcb4f02a105504552432035

# vim-cmd hostsvc/storage/refresh

About Alex Hunt

Hi All I am Manish Kumar Jha aka Alex Hunt. I am currently working in VMware Software India Pvt Ltd as Operations System Engineer (vCloud Air Operations). I have around 5 Years of IT experience and have exposure on VMware vSphere, vCloud Director, RHEL and modern data center technologies like Cisco UCS and Cisco Nexus 1000v and NSX. If you find any post informational to you please press like and share it across social media and leave your comments if you want to discuss further on any post. Disclaimer: All the information on this website is published in good faith and for general information purpose only. I don’t make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this blog is strictly at your own risk. The Views and opinions published on this blog are my own and not the opinions of my employer or any of the vendors of the product discussed.
This entry was posted in Vmware. Bookmark the permalink.

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