ONTAP Discussions
ONTAP Discussions
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 .
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?
Solved! See The Solution
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
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
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.