NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

snapshot directory permission show as question mark.

jackson_lee
3,101 Views

Hello.

My customer has been using ontap 9.7p4 for NFS v3 Service ( nfs clients would be cent os7), and 

they want to test  restore  a single file  from snapshot directory. However  the snapshot directory

always shows as question mark like below on root account, I can not access it anymore .

jackson_lee_0-1667478952304.png

I reviewed this page 

https://unix.stackexchange.com/questions/393598/linux-local-directory-permissions-as-question-marks-for-non-root  but  I couldn't apply  execute permission to snapshot directory  because  the error showed that it is read only filesystem.

How can I access it?

 

1 ACCEPTED SOLUTION

Ontapforrum
3,078 Views

Permissions in a snapshot-directory cannot be modified (it is read-only by design). I don't have a Linux host at the moment to test why it shows '?'   But, read permission should be enough to copy the file. Have the user simply COPY the file from a .snapshot rectory to a location which is accessible (writable) to the end-user.

 

Following example: (steps to copy my.txt)
$ ls .snapshot/hourly.2017-05-15_1306/my.txt
$ cp .snapshot/hourly.2017-05-15_1306/my.txt .
$ ls my.txt
my.txt

Restore a file from a Snapshot copy on an NFS or SMB client:
https://docs.netapp.com/us-en/ontap/data-protection/snapshot-copies-work-concept.html

 


Related:
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/Clustered_Data_ONTAP_NFS_access_snapshot

 

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/Why_isnt_the_snapshot_directory_visible_in_an_ls_al_output_on_an_NFS_c...

 

View solution in original post

2 REPLIES 2

Ontapforrum
3,079 Views

Permissions in a snapshot-directory cannot be modified (it is read-only by design). I don't have a Linux host at the moment to test why it shows '?'   But, read permission should be enough to copy the file. Have the user simply COPY the file from a .snapshot rectory to a location which is accessible (writable) to the end-user.

 

Following example: (steps to copy my.txt)
$ ls .snapshot/hourly.2017-05-15_1306/my.txt
$ cp .snapshot/hourly.2017-05-15_1306/my.txt .
$ ls my.txt
my.txt

Restore a file from a Snapshot copy on an NFS or SMB client:
https://docs.netapp.com/us-en/ontap/data-protection/snapshot-copies-work-concept.html

 


Related:
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/Clustered_Data_ONTAP_NFS_access_snapshot

 

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/Why_isnt_the_snapshot_directory_visible_in_an_ls_al_output_on_an_NFS_c...

 

robirobs
1,582 Views

We had the same issue on a volume where we recently enalbed snapdir-access. It turned out that we needed to umount/mount the volume from the Linux client.

Public