To enable I/O filters for virtual machines, you must first create a virtual machine policy that lists data service capabilities provided by the I/O filters.
Before you begin
About this task
The I/O filter capabilities are displayed on the Common rules page of the VM Storage Policies wizard. The policy that enables I/O filters must include common rules. However, adding placement rules is optional.
Depending on the I/O filters installed in your environment, the data services can belong to various categories, including caching, replication, and so on. By referencing the specific category in the storage policy, you request the service for your virtual machine.
If your I/O filters and storage offer the same service category, for example, encryption, your policy can request this service from both providers. As a result, the virtual machine data is encrypted twice, by the I/O filter and your storage. However, replication provided by Virtual Volumes and replication provided by the I/O filter cannot coexist in the same storage policy.
- From the vSphere Web Client Home, click .
- Click the VM Storage Policies tab.
- Click the Create a New VM Storage Policy icon.
- Select the vCenter Server instance.
- Type a name, for example I/O Filters, and a description for the policy and click Next.
- On the Common Rules page, define the I/O filters.
- Select Use common rules in the storage policy.
- Click the Add component () icon and select a data service category from the drop-down menu, for example, Replication.
- Define rules for the data service category by specifying an appropriate provider and values for the rules. Or select the data service from the list of predefined components.
This option is available if you have predefined storage policy components in your database. If you know which component to use, select it from the list to add to the VM storage policy.
Review all component available for the category. To include a specific component, select it from the list and click OK.
Define custom rules for the data service category by specifying an appropriate provider and values for the rules.Note:
If you use encryption with other I/O filters, set the Allow I/O filters before encryption parameter to True, so that other filters, such as replication, can analyze clear text data before it is encrypted.
- Add more components to request other data services.
You can use only one component from the same category, for example caching, per a set of common or regular rules.
- Click Next.
- If your policy includes placement rules, on the Rule Set page, specify storage placement requirements and click Next.
If you plan to migrate the virtual machine with the I/O filters across different types of datastores, make sure that the policy includes placement rules for every target datastore. For example, if you migrate your virtual machine between the VMFS and Virtual Volumes datastores, create a mixed VM storage policy. The policy must include tag-based rule for the VMFS datastore and rules for the Virtual Volumes datastore.
- On the Storage Compatibility page, review the list of available datastores and click Next.
To be compatible with the I/O filter policy, datastores must be connected to host with I/O filters and satisfy storage requirements of the policy.
- Complete the creation of the storage policy and click Finish.
The new policy is added to the list.