Follow these best practices when you use flash devices in vSphere environment.
- Use flash devices approved by the VMware Compatibility Guide.
- Make sure to use the latest firmware with flash devices. Frequently check with your storage vendors for any updates.
- Carefully monitor how intensively you use the flash device and calculate its estimated lifetime. The lifetime expectancy depends on how actively you continue to use the flash device. See Estimate Lifetime of Flash Devices.
- If you use NVMe devices for storage, enable the high-performance plug-in (HPP) to improve your storage performance. For specifics of using the NVMe devices, see VMware High Performance Plug-In and Path Selection Schemes
Monitor Flash Devices
You can monitor certain critical flash device parameters, including Media Wearout Indicator, Temperature, and Reallocated Sector Count, from an ESXi host.
Prerequisites
Install ESXCLI. See Getting Started with ESXCLI. For troubleshooting, run esxcli commands in the ESXi Shell.
Procedure
- ♦ Display the flash device statistics by running the following command:
esxcli storage core device smart get -d=flash device_ID
Estimate Lifetime of Flash Devices
When working with flash devices, monitor how actively you use them and calculate their estimated lifetime.
Typically, storage vendors provide reliable lifetime estimates for a flash device under ideal conditions. For example, a vendor might guarantee a lifetime of 5 years under the condition of 20 GB writes per day. However, the more realistic life expectancy of the device depends on how many writes per day your ESXi host actually generates. Follow these steps to calculate the lifetime of the flash device.
Prerequisites
Note the number of days passed since the last reboot of your ESXi host. For example, ten days.
Procedure
Keeping Flash Disks VMFS-Free
If you use the auto-partitioning boot option when installing or auto-deploying ESXi, the auto-partitioning option creates a VMFS datastore on your host's local storage. In certain cases, you need to keep your local storage flash disks unformatted.
Problem
By default, auto-partitioning deploys VMFS file systems on any unused local storage disks on your host, including flash disks.
However, a flash disk formatted with VMFS becomes unavailable for such features as virtual flash and vSAN. Both features require an unformatted flash disk and neither can share the disk with any other file system.
Solution
- autoPartition=TRUE
- skipPartitioningSsds=TRUE
- In the vSphere Client, navigate to the host to use as a reference host and click the Configure tab.
- Click System to open the system options, and click Advanced System Settings.
- Set the following items.
Parameter Value VMkernel.Boot.autoPartition True VMkernel.Boot.skipPartitioningSsds True - Reboot the host.
If flash disks that you plan to use with the virtual flash resource and vSAN already have VMFS datastores, remove the datastores.