Bug 1260086

Summary: snapshot: from nfs-ganesha mount no content seen in .snaps/<snapshot-name> directory
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Saurabh <saujain>
Component: snapshotAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Saurabh <saujain>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: ansubram, asengupt, byarlaga, jthottan, kkeithle, mzywusko, ndevos, rcyriac, rhs-bugs, rjoseph, skoduri, storage-qa-internal, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.1-15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1260611 (view as bug list) Environment:
Last Closed: 2015-10-05 07:25:43 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: 1260859    
Bug Blocks:    

Description Saurabh 2015-09-04 12:03:17 UTC
Description of problem:
Mounted the volume using the nfs-ganesha and took snapshot. From snapshot there is not data seen in .snaps/<snapshot-name>

Version-Release number of selected component (if applicable):
glusterfs-3.7.1-14.el7rhgs.x86_64
nfs-ganesha-2.2.0-7.el7rhgs.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a volume of 6x2 type

2. configure nfs-ganesha, export the volume created in step1

3. on client mount the volume over nfs with vers=3 or 4,

3a. create some data inside the mount-point

4. enable uss using command
   gluster volume set <volname> uss on

5. create a snapshot using command,
   gluster snapshot create <snapname> <volname>

6. activate snapshot created in step 4,
   gluster snapshot activate <snapname>

7. cd /mount/point/volname/.snaps/<snapshot-name>

8. ls -lR

Actual results:
step 8 fails, as there is no data inside snapshot directory. Basically the data is not fetched.

Expected results:
Step 8 should fetch data from the server, as the data is fetched from glusterfs(native mount).

Additional info:

Comment 2 Jiffin 2015-09-08 05:33:54 UTC
The patch merged in the upstream http://review.gluster.org/#/c/12117/

Comment 3 Jiffin 2015-09-09 08:31:16 UTC
The patch merged in upstream http://review.gluster.org/#/c/12117/

Comment 8 Saurabh 2015-09-16 11:14:15 UTC
# cd /mnt/vol1/.snaps
# ls
snap1_GMT-2015.09.16-15.30.02  snap2-quota-dir-full_GMT-2015.09.16-16.23.21
# cd snap2-quota-dir-full_GMT-2015.09.16-16.23.21/
# ls
dir  file.dd
#

Comment 10 errata-xmlrpc 2015-10-05 07:25:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1845.html