ONTAP Discussions

snapshot directory permission show as question mark.

jackson_lee
168 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
145 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

1 REPLY 1

Ontapforrum
146 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...

 

Public