Enable and disable NFS and SMB client access to ONTAP snapshot directory
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
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.
-
Click Storage > Volumes.
-
Select the volume containing the snapshots directory you want to either show or hide.
-
Click
and select Edit. -
In the Snapshot (Local) Settings section, select or deselect Show the Snapshot directory to clients.
-
Click Save.
-
Check the snapshot directory access status:
volume show -vserver <SVM_name> -volume <vol_name> -fields snapdir-accessExample:
clus1::> volume show -vserver vs0 -volume vol1 -fields snapdir-access vserver volume snapdir-access ------- ------ -------------- vs0 vol1 false
Learn more about
volume showin the ONTAP command reference. -
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 modifyin 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.
-
Click Storage > Shares.
-
Select the volume containing the snapshots directory you want to either show or hide.
-
Click
and select Edit. -
In the Share Properties section, select or deselect Allow clients to access snapshots directory.
-
Click Save.