After mounting a share from a NetApp filer with NFSv4, .snapshot dir is not listed, but can be accessed

Solution In Progress - Updated -

Issue

After mounting a share from a NetApp filer in NFSv4 (either V4.0 or V4.1) ".snapshot" directory cannot be listed from root mountpoint with a ls -la, but can be accessed:

# mount filer93:/test_NFS_ontap93_NFS_volume /mnt
# cd /mnt
# ls -la
total 12
drwxrwxrwx.  3 nobody nobody 4096 May 10 18:16 .
dr-xr-xr-x. 26 root   root   4096 May 10 15:57 ..
drwxr-xr-x.  2 nobody nobody 4096 May 10 18:16 dir1
-rw-r--r--.  1 nobody nobody    0 May 10 18:16 myfile
# ls .snapshot
daily.2018-05-11_0010   hourly.2018-05-11_0505  hourly.2018-05-11_0705  hourly.2018-05-11_0905
hourly.2018-05-11_0405  hourly.2018-05-11_0605  hourly.2018-05-11_0805  snapshot_10052018_181717_18

However, mounting with NFSv3 directory can be seen:

# mount -o vers=3 filer93:/test_NFS_ontap93_NFS_volume /mnt
# cd /mnt
# ls -la
total 16
drwxrwxrwx.  3 root      root      4096 May 10 18:16 .
dr-xr-xr-x. 26 root      root      4096 May 10 15:57 ..
drwxr-xr-x.  2 nfsnobody nfsnobody 4096 May 10 18:16 dir1
-rw-r--r--.  1 nfsnobody nfsnobody    0 May 10 18:16 myfile
drwxrwxrwx. 10 root      root      4096 May 11 11:05 .snapshot

This behaviour can be reproduced with RHEL6, RHEL7 and even Fedora.

In the filer, snapdir-access is enabled (true) for the volume in question.

Environment

  • NetApp 9.2 and 9.3
  • RHEL6
  • RHEL7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In