Enabling the SSD option on SSD based disks/LUNs that are not detected as SSD by default
book
Article ID: 341618
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
This article provides steps to enable the SSD option on SSD based disks/LUNs that are not detected as SSD by default.
Environment
VMware vSphere ESXi 6.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
Cause
ESXi does not recognize certain devices as flash when their vendors do not support automatic flash disk detection.
Resolution
To enable the SSD option on SSD based disks/LUNs that are not detected as SSD by default on vCenter:
Verify that the device is not in use. Ensure the virtual machine(s) accessing the device are powered off and if it contains a mounted datastore, ensure that the datastore is unmounted. For more information on the unmounting operation, see How to unmount a LUN or detach a datastore device from ESXi hosts.
Browse to the host in the vSphere Client object navigator.
Click the Configure tab.
Under Storage, click Storage Devices.
From the list of storage devices, select one or several HDD devices to mark as flash devices and click the Mark as Flash Disks icon.
Incase you get an error - "Cannot change the host configuration. Cannot mark disk naa.########################00000212 as "Flash". "Unable to reconfigure the disk claim rules. The disk is in use." " then, simply unmount the datastore after putting it into maintenance mode from all the hosts and then again use "Mark as Flash Disks".
Click Yes to save your changes.
To enable the SSD option on SSD based disks/LUNs that are not detected as SSD by default on CLI:
Log in to the host as root, using either the Console DCUI or SSH.
If the device is currently in use, ensure the virtual machine(s) accessing the device are powered off and if it contains a mounted datastore, ensure that the datastore is unmounted. For more information on the unmounting operation, see How to unmount a LUN or detach a datastore device from ESXi hosts.
Run this command and identify the device to be tagged and its SATP: # esxcli storage nmp device list
You see output similar to: naa.00000000000000000000000000000001 Device Display Name: DGC Fibre Channel Disk (naa.00000000000000000000000000000001) Storage Array Type: VMW_SATP_CX Storage Array Type Device Config: {navireg ipfilter} Path Selection Policy: VMW_PSP_MRU Path Selection Policy Device Config: Current Path=vmhba4:C0:T0:L25 Working Paths: vmhba4:C0:T0:L25
In this sample output, the SATP is VMW_SATP_CX. This may vary depending on your environment. For example, the SATP may be VMW_SATP_LOCAL. Ensure to use the correct SATP in these steps.
Notes:
In this procedure, the device ID naa.00000000000000000000000000000001 is used. Use the device ID returned for your own device in these steps.
If you have the SSD drives in the RAID 1 setup, and the RAID controller you are using does not support NON-RAID mode or Pass-Through Mode, then you must re-configure your SSD drives in a RAID 0 setup.
Run this command to add a PSA claim rule to mark the device as SSD:
Note: Run this command to enable local and SSD at the same time: # esxcli storage nmp satp rule add –-satp=VMW_SATP_LOCAL –-device <naa device ID> --option "enable_local enable_ssd"
Note: If you have a local SSD device, the device might not be detected after you apply the rule to unclaim the device. After you restart the ESXi host, you can verify that the device has the rule applied.
The SATP change is not required for the device to function.
To untag the device, you must perform the entire process in reverse; you must remove the claimrule, unclaim the device, load the claimrules again, and then reclaim.
You must restart the ESXi host to tag the local datastore (if ESXi is installed locally) as the SSD drive.
Additional Information
When adding a new rule, if you receive an error stating that there was a duplicate rule found, you may need to remove the rule and add it again with the correct SSD flag. For example:
Run this command to verify the added VMW_SATP_LOCAL satp rules:
esxcli storage nmp satp rule list --satp=VMW_SATP_LOCAL
When a disk is marked as a flash disk, vSphere primarily tries to use it as a cache for the datastore. Since SSDs are much faster than hard disks it improves the performance of the datastore. If you mark a hard disk as a flash disk, the behaviour would be the same, but since a hard disk can't deliver the same performance, you'll notice degraded performance on the datastore. So make sure to mark the devices only if you are certain that they are flash devices.