Flushing export policy caches

Flushing export policy caches manually (vserver export-policy cache flush) removes potentially outdated information and forces ONTAP to retrieve current information from the appropriate external resources. This can help resolve a variety of issues related to client access to NFS exports.

About this task

Export policy cache information might be outdated due to the following reasons:

Procedure

  1. If you do not have name service cache enabled, perform one of the following actions in advance privilege mode:
    If you want to flush... Enter the command...
    All export policy caches (except for showmount) vserver export-policy cache flush -vserver vserver_name
    The export policy rules access cache vserver export-policy cache flush -vserver vserver_name -cache access

    You can include the optional -node parameter to specify the node on which you want to flush the access cache.

    The host name cache vserver export-policy cache flush -vserver vserver_name -cache host
    The netgroup cache vserver export-policy cache flush -vserver vserver_name -cache netgroup

    Processing of netgroups is resource intensive. You should only flush the netgroup cache if you are trying to resolve a client access issue that is caused by a stale netgroup.

    The showmount cache vserver export-policy cache flush -vserver vserver_name -cache showmount
  2. If name service cache is enabled, perform one of the following actions:
    If you want to flush... Enter the command...
    The export policy rules access cache vserver export-policy cache flush -vserver vserver_name -cache access

    You can include the optional -node parameter to specify the node on which you want to flush the access cache.

    The host name cache vserver services name-service cache hosts forward-lookup delete-all
    The netgroup cache vserver services name-service cache netgroups ip-to-netgroup delete-allvserver services name-service cache netgroups members delete-all

    Processing of netgroups is resource intensive. You should only flush the netgroup cache if you are trying to resolve a client access issue that is caused by a stale netgroup.

    The showmount cache vserver export-policy cache flush -vserver vserver_name -cache showmount