WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Quick Tip - Marking an HDD as SSD or SSD as HDD in ESXi

Quick Tip - Marking an HDD as SSD or SSD as HDD in ESXi

08.15.2013 by William Lam // 9 Comments

This was a neat little trick that I picked up in one of our internal storage email distribution groups which I thought was quite interesting. Some of you may recall an article I wrote a few years back on how to trick ESXi 5 in seeing an SSD device which relied on adding an SATP rule for a particular storage device. The actual use case for this feature was that not all real SSD devices would automatically be detected by ESXi and this allowed a user to manually mark it as an SSD.

The other "non-official" use case for this feature allows a user to basically "simulate" an SSD by marking a regular HDD as an SSD and I this actually helped me test the new Host Cache (Swap-to-SSD) feature which was part of the vSphere 5 release. Recently there was a customer inquiry asking for the complete reverse, in which you could mark an SSD as an HDD. I am not sure what the use case was behind this request but I did learn it was actually possible using a similar method of adding a SATP rule to a device.

Note: If you are running Nested ESXi, a much simpler solution for simulating an SSD is to use the following trick noted here.

Before you begin, you will need to identify the storage device in which you wish to mark as an SSD or HDD. Use the following ESXCLI command to do so:

esxcli storage core device list

In the screenshot above, we can see for our device mpx.vmhba1.C0:T2:L0 shows "Is SSD" parameter as false. After running two commands below, we should then see that property change to true.

Marking HDD as SSD:

esxcli storage nmp satp rule add -s VMW_SATP_LOCAL -d mpx.vmhba1:C0:T2:L0 -o enable_ssd
esxcli storage core claiming reclaim -d mpx.vmhba1:C0:T2:L0

 

Marking SSD as HDD:

esxcli storage nmp satp rule add -s VMW_SATP_LOCAL -d mpx.vmhba1:C0:T1:L0 -o disable_ssd
esxcli storage core claiming reclaim -d mpx.vmhba1:C0:T1:L0

To perform the opposite, you simply just need to add the disable_ssd option. If you receive an error regarding a duplicate rule, you will need to first remove the SATP rule and then re-create with the appropriate option.

Another useful tidbit is that if you are running Nested Virtualization and the virtual disk of that VM is stored on an actual SSD, that virtual disk will automatically show up within the guestOS as an SSD so no additional changes are required.

More from my site

  • Minimum vSphere privileges to install or remove patch from ESXi
  • Quick Tip - New method to mark HDD to SSD in ESXi 7.x and 8.x using ESXCLI
  • Extending ESXCLI commands
  • ESXi Advanced & Kernel Settings Reference
  • SMART drive data now available using vSAN Management 6.6 API

Categories // Automation, ESXi, VSAN Tags // enable_ssd disable_ssd, esxcli, ESXi, hdd, ssd

Comments

  1. *protectedboopathi_d says

    05/07/2015 at 9:21 pm

    I ran these commands to emulate HDD to SSd on 3 of our nested ESXi VMs. 1 of them was success, the other 2 didnt throw any error for enable_ssd and reclaim commands. But when I list, it doesnt how that disk itself.
    Unable to find device with the name mpx.vmhba1:C0:T1:L0

    Reply
  2. *protectedmrmark says

    10/12/2017 at 10:36 am

    This worked wonderfully. Many thanks for your help.

    Reply
  3. *protectedruntime says

    08/05/2020 at 11:32 am

    I'm using an ADATA USB SSD and this doesn't work for me. It never marks the drive as SSD. Anything else I can try? I've been at this for days.

    Thanks!

    Reply

Trackbacks

  1. PernixData’s Flash Virtualization Platform or FVP 1.5 says:
    06/20/2014 at 6:13 am

    […] yet see this disk as an SSD and it really isnt. But I tricked the host into believing it is using this link, thanks to William Lam. Upon running those 2 commands, ESXi now sees the new disk as an […]

    Reply
  2. All SSD VSAN Homelab | vBrisket says:
    01/19/2015 at 12:09 am

    […] directed me to an article he wrote on his blog virtuallyghetto.com "Marking an HDD as an SSD or SSD as HDD" and I was able to mark 6 of my 9 SSD as HDD from the directions in his article.  I had to remove […]

    Reply
  3. How to configure an All-Flash VSAN 6.0 Configuration using Nested ESXi? | Uğur PEK says:
    02/28/2015 at 10:16 pm

    […] "tricking" ESXi into thinking the SSD's used for capacity tier are MD's by creating claimrules using ESXCLI. Though this method had worked, VSAN itself was assuming the capacity tier of storage are regular […]

    Reply
  4. testosterone cypionate online says:
    01/06/2017 at 3:12 am

    […] testosterone cypionate for sale testosterone cypionate for sale testosterone cypionate for sale testosterone cypionate for sale testosterone cypionate for sale testosterone cypionate for sale testosterone cypionate for sale […]

    Reply
  5. Quick Tip - New method to mark HDD to SSD in ESXi 7.x and 8.x using ESXCLI says:
    01/04/2024 at 8:51 am

    […] to be up and running, which it was not. Alternatively, you can also perform this operation using ESXCLI and configure an Storage Array-Type Plugin (SATP) claim rules, which had been possible since … but it looks like the old method no longer works in the latest ESXi 7.x and 8.x […]

    Reply
  6. Quick Fix – Found zero ssd devices for SSD cache tier - says:
    07/26/2024 at 1:03 pm

    […] the past you had to set the the disk to SSD with SATP claim rules, but from version 7.x and 8.x there is a new and simpler command to do this. Run the following […]

    Reply

Leave a Reply to How to configure an All-Flash VSAN 6.0 Configuration using Nested ESXi? | Uğur PEKCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025