Change the hard disk drive type from HDD to SSD in vmware esxi6.5
Environment: host in vmware web client6.5, host IP is 10.1.1.47
Purpose: in order to configure VSAN, you need to change one of the three hard disk types created into a SSD type as a buffer.
Step 1: open the SSH of the host so that xshell can connect, configure-> Security profile-> Edit
Open ESXI Shell and SSH manually
Disable lock mode, configure-> Security profile-> lock mode
Connect using xshell
Enter your password to log in
Step 2: change the hard drive type
Esxcli storage core device list
Find the target hard drive
You can see that Is SSD is marked as False at this time
Create a SATP rule and set the optional parameter to enable_ssd
Esxcli storage nmp satp rule add-satp VMW_SATP_LOCAL-device mpx.vmhba0:C0:T1:L0-option "enable_local enable_ssd"
Note the corresponding disk number
Check out the SATP rule you just created
Esxcli storage nmp satp rule list | grep enable_ssd
Then restate the disk
Esxcli storage core claiming reclaim-d mpx.vmhba0:C0:T1:L0
Verification
Esxcli storage core device list-d mpx.vmhba0:C0:T1:L0
You can see that the modification has been successful.
If you want to restore SSD to HDD, execute
Esxcli storage nmp satp rule remove-satp VMW_SATP_LOCAL-device= "mpx.vmhba0:C0:T1:L0" esxcli storage core claiming reclaim-d mpx.vmhba0:C0:T1:L0 esxcli storage core device list-d mpx.vmhba0:C0:T1:L0
You can see that Is SSD becomes False.