There is some configuration in vSphere which requires SSD for configuration. Most of the time if we want to test this type of configuration in our lab. We end up have no SSD drive available for LAB environment. It is because SSD are very expense drives.
Fortunately, there is the way. We fool ESXi to believe the LUN as SSD.
Let’s choose one storage LUN for sake of demonstration which is Non-SSD. In my case I am choosing “SSD-Tag-Testing” Storage. In First Step we identify our drive whether it is SSD or not, if not then in second step we will make him SSD.
We implement PSA NMP (Native Multipathing Rule) claim rule to achieve this. We will require two things for our configuration.
- Device ID
- Storage Array type
Let’s first find device ID and Storage Array Type of “SSD-Tag-Testing” Storage. You can find it from CLI and from GUI as well.
Identify SSD Drive:
To find the device ID against “SSD-Tag-Testing” Storage. SSH to the ESXi host where this storage is mounted and run following CLI command.
#esxcfg-scsidevs –mTo find whether device is SSD or not.
#esxcli storage core device list | less
(Find “IS SSD” option in our device)
To Find the Storage array
#esxcli storage nmp device list|less
(Find the Storage Array against our device)
To find whether device is SSD or not (Storage View in vSphere Classic Client)
To find the device ID against “SSD-Tag-Testing” Storage (Storage View in vSphere Classic Client)
Go to the Storage “Properties”-> Multipathing -> See your Storage Array Type as highlighted.
Tag SSD Drive:
Now we have every thing we need for our claim rule configuration. The next step is to add a PSA claim rule, marking the device as an SSD. We can do this by running the following:
#esxcli storage nmp satp rule add –s VMW_SATP_DEFAULT_AP –d t10.F405E46494C45425837546174494D2958787E4D284248366 –o=enable_ssd
Where –s (SATP) –d (device) –o (option)
Next we need to unclaim the device in order that we can claim it again using the new rule. run the following CLI Command.
#esxcli storage core claiming reclaim –t device –d t10.F405E46494C45425837546174494D2958787E4D284248366
Where –t (type) –d (device)
We can then reclaim the device using the following:
#esxcli storage core claimrule load #esxcli storage core claimrule run (optional)
#esxcli storage core device list|less
(check your device “IS SSD” option. It should be true)
Go to the Storage view in ESXi Classic Client and verify your Datastore “Device Type” Colum
To Remove the SATP Rule
List the SSD Enable SATP rules. Run the following CLI command
#esxcli storage nmp satp rule list|grep –i “SSD’
#esxcli storage nmp satp rule remove –s VMW_SATP_DEFAULT_AP –d t10.F405E46494C45425837546174494D2958787E4D284248366 –o=enable_ssd
#esxcli storage core claiming reclaim –d t10.F405E46494C45425837546174494D2958787E4D284248366