Skip to main content

Enable and disable NFS and SMB client access to ONTAP snapshot directory

Contributors netapp-aaron-holt netapp-lenida netapp-aherbin

You can enable and disable access to the snapshot directory using the ONTAP CLI -snapdir-access option of the volume modify command, and beginning with ONTAP 9.10.1, you can use System Manager to enable or disable client systems to access to a snapshot directory on a volume. Enabling access makes the snapshot directory visible to clients and allows Windows clients to map a drive to the snapshot directory to view and access its contents. NFS and SMB clients can then restore a file or LUN from a snapshot.

You can enable or disable access to a volume’s snapshot directory by editing the volume settings or by editing the volume’s share settings.

Enable or disable client access to snapshot directory by editing a volume

Steps

You can enable and disable client snapshot directory access by using ONTAP System Manager or the ONTAP CLI. The snapshot directory on a volume is accessible to clients by default.

System Manager
  1. Click Storage > Volumes.

  2. Select the volume containing the snapshots directory you want to either show or hide.

  3. Click Menu options icon and select Edit.

  4. In the Snapshot Copies (Local) Settings section, select or deselect Show the Snapshot copies directory to clients.

  5. Click Save.

CLI
  1. Check the snapshot directory access status:

    volume show -vserver <SVM_name> -volume <vol_name> -fields snapdir-access

    Example:

    clus1::> volume show -vserver vs0 -volume vol1 -fields snapdir-access
    vserver volume snapdir-access
    ------- ------ --------------
    vs0     vol1   false

    Learn more about volume show in the ONTAP command reference.

  2. Enable or disable the snapshot directory access:

    volume modify -vserver <SVM_name> -volume <vol_name> -snapdir-access <true|false>

    The following example enables snapshot directory access on vol1:

    clus1::> volume modify -vserver vs0 -volume vol1 -snapdir-access true
    Volume modify successful on volume vol1 of Vserver vs0.

    Learn more about volume modify in the ONTAP command reference.

Enable or disable client access to snapshot directory by editing a share

The snapshot directory on a volume is accessible to clients by default.

Steps
  1. Click Storage > Shares.

  2. Select the volume containing the snapshots directory you want to either show or hide.

  3. Click Menu options icon and select Edit.

  4. In the Share Properties section, select or deselect Allow clients to access snapshots directory.

  5. Click Save.