Bug 1169790

Summary: [USS] : After restore entering into .snaps from sub directory fails in NFS mount until we do drop_caches.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sachin Pandit <spandit>
Component: snapshotAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED WONTFIX QA Contact: storage-qa-internal <storage-qa-internal>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.0CC: asriram, rhs-bugs, smohan
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: USS
Fixed In Version: Doc Type: Known Issue
Doc Text:
When a volume is down and there is an attempt to access .snaps directory, a negative cache entry is created in the Kernal Virtual File System(VFS) cache for .snaps. After the volume is brought back online accessing .snaps still fails with an ENOENT error because of the negative cache entry. Workaround: Clear the kernel VFS cache by executing the following command: # echo 3 >/proc/sys/vm/drop_caches
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-16 16:03:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1153907    

Description Sachin Pandit 2014-12-02 13:08:39 UTC
Description of problem:
After restore entering into .snaps from sub directory fails until we do drop_caches.


Version-Release number of selected component (if applicable):
glusterfs 3.6.0.35


How reproducible:
2/2

Steps to Reproduce:
1) Create a 2x2 dist rep volume and start it 
2) Fuse and NFS mount the volume, enable USS
3) Create a directory "dir" on main volume
4) Take a snapshot "snap1"
5) "cd" to "<nfs_mnt>/dir/.snaps/snap1"
6) deactivate and restore to snap1
7) try to "cd" to "<nfs_mnt>/dir/.snaps/" -> This fails as expected
8) create a snapshot snap1
9) try to "cd" to "<nfs_mnt>/dir/.snaps/" -> Not expected
   But from fuse mount the same step workds


Actual results:
After restore entering into .snaps from sub directory fails until we do drop_caches.

Expected results:


Additional info:

Comment 2 Sachin Pandit 2014-12-02 13:41:33 UTC
Rajesh, does the Doc text looks fine ?

Comment 4 Pavithra 2014-12-16 06:48:59 UTC
Hi Rajesh,

I edited the known issue doc text you provided. Can you please review the doc text for technical accuracy and sign off?

Comment 5 Pavithra 2014-12-17 03:59:58 UTC
Made a small edit.