WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / ESXi / Quick Tip - New method to mark HDD to SSD in ESXi 7.x and 8.x using ESXCLI

Quick Tip - New method to mark HDD to SSD in ESXi 7.x and 8.x using ESXCLI

01.04.2024 by William Lam // 3 Comments

I recently helped a colleague who wanted to mark an HDD device in ESXi to show up as an SSD, which may be needed if the storage device was not correctly detected or if you are using Nested ESXi and the underlying storage is not an SSD and you need to mark it as an SSD for use with vSAN OSA or ESA.

The easiest way to accomplish this operation is by using the vSphere UI, but that does require vCenter Server 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 2013 but it looks like the old method no longer works in the latest ESXi 7.x and 8.x releases.

Note: If you are configuring this for a Nested ESXi VM, another method is to emulate a virtual SSD as shown in this blog post.

After taking a closer look, I learned that as of vSphere 7.0 Update 2, the default multipath plug-in for NVMe devices was no longer the VMware NMP (Native Multipath Plug-in) and has been replaced by the the more performant VMware High Performance Plug-In (HPP). You can check actually check this by running the following ESXCLI command:

esxcli storage core plugin list


This would explain why the previous method was no longer working. The good news is that the HPP module provides a much more simpler ESXCLI command for updating the SSD property among other settings compared to using claim rules.

Step 1 - Similar to the previous method, we need to identify the storage device that we wish to mark as an SSD. I typically rely on the vdq command as it is the most versatile and provides lots of info in a quick and summarized view including disk capacity, which can help you narrow down the device by running the following command:

vdq -q


Step 2 - Finally, we run the following ESXCLI command and supply it with the storage device ID and the -M option with value of true (or false to revert the change) to mark the device as an SSD as shown in example below:

esxcli storage hpp device set -d naa.6000c29a1be7747750359eb504f48f1f -M true

Another really nice enhancement to the HPP module is that there is also a new ESXCLI command that shows you which storage devices have been marked as an SSD by end users, which you can see by running the following command:

esxcli storage hpp device usermarkedssd list

More from my site

  • SMART drive data now available using vSAN Management 6.6 API
  • Quick Tip - Marking an HDD as SSD or SSD as HDD in ESXi
  • Minimum vSphere privileges to install or remove patch from ESXi
  • Quick Tip - Using ESXCLI to upgrade ESXi 8.x throws MemoryError or Got no data from process
  • Quick Tip - New remote version of ESXCLI 8.x

Categories // ESXi, Home Lab, vSphere 7.0, vSphere 8.0 Tags // esxcli, hpp, ssd

Comments

  1. *protectedSemoTech says

    01/04/2024 at 10:46 am

    Brilliant! Thanks Will!
    I had to deploy and use vCenter to mark the Apple NVMe in a 2018 Mac mini as SSD, and this would have been MUCH easier. Issuing "esxcli storage hpp device usermarkedssd list" also confirms it was "manually" marked as such.

    Reply
  2. *protectedJoshua says

    01/04/2024 at 12:32 pm

    Would there be any reason to mark a NFS datastore that is backed by SSD as such, since they are showing up as HDD for me

    Reply
  3. *protectedTom Giro says

    01/13/2025 at 7:10 am

    Thanks!

    Reply

Thanks for the comment!Cancel 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

  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • 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

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

 

Loading Comments...