vSphere provides filters that optimize the use of storage in a multihost environment managed by vCenter Server. The vSphere environment provides four storage filters that can affect the action of the vCenter Server when scanning storage. Without these filters, when vCenter Server is scanning for storage, all storage that is found could be presented to vSphere, even if it is in use.
|Filter name||Description||Key||Default value|
|RDM Filter||The default behavior of this filter is to show only the RDM LUN which was not already in use. To disable this filer you set the filter value from true to false Use case to set false: To set up a SCSI-3 quorum disk for MSCS, this storage filter would need to be disabled.||config.vpxd.filter.rdmFilter||True|
|VMFS Filter||When you create a new VMFS datastore. The only LUN are appeared at the time which was not claimed or formatted by the ESXi host managed by the vCenter. It is the default behavior. when filter is set to false all the LUN will be appear even they are claimed or formatted by any ESXi host.||config.vpxd.filter.vmfsFilter||True|
|Host rescan filter||Automatically rescans and updates VMFS datastore after you perform datastore management operations. For example if you remove a datastore from ESXi 01 then ESXi02 will automatically rescan the storage so that both server will have consistent view of storage. NOTE: If you present a new LUN to a host or a cluster, the hosts automatically perform a rescan no matter whether you have the Host Rescan Filter on or off.||config.vpxd.filter.hostRescanFilter||True|
|Same Host and Transports Filter||Filters out LUNs that cannot be used asVMFS datastore extents due to host or storage incompatibilityAn example of an incompatible LUN would be adding a LUN as an extent that is not seen by all of the hosts or you cannot add a Fiber Channel extent to a VMFS datastore on a local storage device||config.vpxd.filter.SameHostAndTransportsFilter||True|
Procedure to Configure Filters:
FROM: vSphere WebClient
To set and change your storage filter default values. From webclient home page-> Select vCenter ->Inventory list->Choose vCenter and then select your vCenter.
In vCenter -> Manage-> Settings-> Advance Settings-> Click “Edit” to add and remove filters on vCenter level.
For demonstration purpose, I am going to disable or change default value of RDM filter “config.vpxd.filter.rdmFilter”.
Add your filter key and set the value -> Click “Add” -> Click “OK”
NOTE: In webclient, remove “config” keyword from start of the filter while adding. Because webclient will automatically append the “config” keyboard after addition.
Verify your added filter by searching it.
FROM: vSphere Classic Client
From classic client go to home->Administration section ->vCenter Server Settings.
Select Advance settings-> Add your filter “Key” and “value” and then click “Add”.
NOTE: In classic client you have no need to remove “config” keyword from the start of the filter.
You can add other storage filer as the same way, I showed above.
NOTE: you cannot edit or delete filter and many advanced settings changes require that the vCenter Server system be restarted before they take effect.
Here is trick to remove newly added advance settings, if you wrongly add in vCenter Advance settings. All the newly added setting saves in the “vpxd.cfg file”. Just remove the concern configuration and restart the vCenter Service. You can do this by your own risk. but it works for me.
Vpxd file Location In windows vCenter : C:\ProgramData\VMware\VMware VirtualCenter/vpxd.cfg In vCenter Appliance: /etc/vmware-vpx/vpxd.cfg
I am using vCenter Appliance. Following are the sample vpxd.cfg file. The concern filter config has highlighted below.
Remove/delete the Stanza between and with <config> </config>.
After restart the vCenter Service. If you will search the filter in advance settings. Nothing will appear as shown below.