Skip to main content

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:

  • A recent change to export policy rules

  • A recent change to host name records in name servers

  • A recent change to netgroup entries in name servers

  • Recovering from a network outage that prevented netgroups from being fully loaded

  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 cachevserver 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 cachevserver export-policy cache flush -vserver vserver_name -cache host
    The netgroup cachevserver 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 cachevserver 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 cachevserver 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 cachevserver services name-service cache hosts forward-lookup delete-all
    The netgroup cachevserver services name-service cache netgroups ip-to-netgroup delete-all vserver 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 cachevserver export-policy cache flush -vserver vserver_name -cache showmount