Environment: Hosts in VMware Web client6.5, host IP is 10.1.1.47
Purpose: To configure a Vsan, a block of the three hard drive type created will be converted to SSD type as a buffer.
Step 1: Open the host's SSH to enable Xshell to connect, configuration---security profile, edit
Manually open the ESXi Shell and SSH
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/96/33/wKioL1keQX_h4a2fAABdH1BOjo8980.png-wh_500x0-wm_ 3-wmp_4-s_3396384790.png "title=" 9.png "alt=" Wkiol1keqx_h4a2faabdh1bojo8980.png-wh_50 "/>
Lock mode Disabled, configuration-and security profile-lock mode
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/33/wKioL1keQdqAfltmAABe4G8EWig271.png-wh_500x0-wm_ 3-wmp_4-s_2845438437.png "title=" 10.png "alt=" Wkiol1keqdqafltmaabe4g8ewig271.png-wh_50 "/>
Connecting using the Xshell
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/96/33/wKiom1keQizyicegAAA-DLmACIc152.png-wh_500x0-wm_ 3-wmp_4-s_1194321017.png "title=" 11.png "alt=" Wkiom1keqizyicegaaa-dlmacic152.png-wh_50 "/>
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/33/wKioL1keQk3AisZdAABSoBOlTK0696.png-wh_500x0-wm_ 3-wmp_4-s_2130519526.png "title=" 12.png "alt=" Wkiol1keqk3aiszdaabsoboltk0696.png-wh_50 "/>
Enter your password to log in
Step 2: Change the hard drive type
ESXCLI Storage Core Device List
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/33/wKioL1keQ-SjQsqCAAAv4WkYMD4753.png-wh_500x0-wm_ 3-wmp_4-s_2552769780.png "title=" 13.png "alt=" Wkiol1keq-sjqsqcaaav4wkymd4753.png-wh_50 "/>
Locate the target hard drive
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/96/34/wKiom1keREDTJklcAAAtao5-LAc105.png-wh_500x0-wm_ 3-wmp_4-s_679242134.png "title=" 14.png "alt=" Wkiom1keredtjklcaaatao5-lac105.png-wh_50 "/>
Can be found at this time is SSD marked false
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
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/96/34/wKioL1keRfvgN4LfAAAvpS_Qi_w111.png-wh_500x0-wm_ 3-wmp_4-s_1390084482.png "title=" 15.png "alt=" Wkiol1kerfvgn4lfaaavps_qi_w111.png-wh_50 "/>
View the SATP rule that you just created
ESXCLI storage nmp SATP Rule list | grep ENABLE_SSD
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/34/wKiom1keRu6TKgcpAAAw3FSkWpo428.png-wh_500x0-wm_ 3-wmp_4-s_2183653790.png "title=" 16.png "alt=" Wkiom1keru6tkgcpaaaw3fskwpo428.png-wh_50 "/>
Then re-declare the disk
ESXCLI storage core claiming reclaim-d mpx.vmhba0:C0:T1:L0
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/96/34/wKiom1keR1zSYIuCAAAFpsH6nnI898.png "title=" 17. PNG "alt=" Wkiom1ker1zsyiucaaafpsh6nni898.png "/>
Verify
ESXCLI Storage Core Device list-d mpx.vmhba0:C0:T1:L0
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/96/34/wKiom1keR8_BDHhAAAAhN4jSd4Q171.png-wh_500x0-wm_ 3-wmp_4-s_219208552.png "title=" 18.png "alt=" Wkiom1ker8_bdhhaaaahn4jsd4q171.png-wh_50 "/>
You can see that the changes are successful.
To restore the SSD back to HDD, perform
ESXCLI storage nmp SATP rule remove--SATP vmw_satp_local--device= "mpx.vmhba0:C0:T1:L0" ESXCLI storage core claiming RECL aim-d mpx.vmhba0:C0:T1:L0 ESXCLI Storage Core Device list-d mpx.vmhba0:C0:T1:L0
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/96/34/wKioL1keSTyBoav5AAAiBbcW2Jw970.png-wh_500x0-wm_ 3-wmp_4-s_695264416.png "title=" 19.png "alt=" Wkiol1kestyboav5aaaibbcw2jw970.png-wh_50 "/>
You can see that the is SSD becomes false
This article is from the "Lefteva" blog, make sure to keep this source http://lefteva.blog.51cto.com/11892835/1927385
Drive type from HDD to SSD type in VMware esxi6.5