[Bugs] [Bug 1160678] [USS]: files/directories with the name of entry-point directory present in the snapshots cannot be accessed

bugzilla at redhat.com bugzilla at redhat.com
Tue Nov 25 08:33:16 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1160678

ssamanta at redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ON_QA                       |ASSIGNED
                 CC|                            |ssamanta at redhat.com
         Depends On|                            |1159283, 1159302



--- Comment #4 from ssamanta at redhat.com ---
>From the fuse-mount it works fine. But NFS mount browsing the .snaps fails with
"No Such file or Directory". After clearing the client caches browsing the
.snaps from nfs mount fails with "Input/output error". This seems to be related
to the BZ 1159283 and BZ 1159302. So moving the bug to ASSIGNED.

[root at dhcp42-244 ~]# rpm -qa | grep gluster
gluster-nagios-common-0.1.3-2.el6rhs.noarch
samba-glusterfs-3.6.509-169.1.el6rhs.x86_64
glusterfs-3.6.0.33-1.el6rhs.x86_64
glusterfs-rdma-3.6.0.33-1.el6rhs.x86_64
glusterfs-cli-3.6.0.33-1.el6rhs.x86_64
glusterfs-libs-3.6.0.33-1.el6rhs.x86_64
glusterfs-api-3.6.0.33-1.el6rhs.x86_64
glusterfs-server-3.6.0.33-1.el6rhs.x86_64
vdsm-gluster-4.14.7.2-1.el6rhs.noarch
gluster-nagios-addons-0.1.10-2.el6rhs.x86_64
glusterfs-geo-replication-3.6.0.33-1.el6rhs.x86_64
glusterfs-fuse-3.6.0.33-1.el6rhs.x86_64
[root at dhcp42-244 ~]# 

[root at dhcp42-244 ~]# gluster volume info testvol1

Volume Name: testvol1
Type: Distributed-Replicate
Volume ID: bcd90c32-e79d-4197-a5b2-b0ea1d52002d
Status: Started
Snap Volume: no
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.42.244:/rhs/brick2/testvol
Brick2: 10.70.43.6:/rhs/brick3/testvol
Brick3: 10.70.42.204:/rhs/brick4/testvol
Brick4: 10.70.42.10:/rhs/brick1/testvol
Options Reconfigured:
features.barrier: disable
features.uss: off
performance.readdir-ahead: on
snap-max-hard-limit: 256
snap-max-soft-limit: 90
auto-delete: disable
[root at dhcp42-244 ~]# 

[root at dhcp42-244 ~]# gluster peer status
Number of Peers: 3

Hostname: 10.70.43.6
Uuid: 2c0d5fe8-a014-4978-ace7-c663e4cc8d91
State: Peer in Cluster (Connected)

Hostname: 10.70.42.204
Uuid: 2a2a1b36-37e3-4336-b82a-b09dcc2f745e
State: Peer in Cluster (Connected)

Hostname: 10.70.42.10
Uuid: 77c49bfc-6cb4-44f3-be12-41447a3a452e
State: Peer in Cluster (Connected)
[root at dhcp42-244 ~]# 

[root at dhcp43-190 testvol1]# mount | grep testvol1
10.70.42.244:/testvol1 on /mnt/testvol1 type fuse.glusterfs
(rw,default_permissions,allow_other,max_read=131072)
[root at dhcp43-190 testvol1]# 

Verify there is no snapshot with testvol1
=============================
[root at dhcp42-244 ~]# gluster snapshot info 
Snapshot                  : snap1
Snap UUID                 : 78cc0645-31f7-4b9c-8d4b-c0565247f84e
Created                   : 2014-11-24 00:39:05
Snap Volumes:

    Snap Volume Name          : 623c4bb66e584122830e27bb9e512519
    Origin Volume name        : testvol
    Snaps taken for testvol      : 2
    Snaps available for testvol  : 254
    Status                    : Started

Snapshot                  : snap2
Snap UUID                 : 3febe842-d07c-4b54-8e5c-d17c60c8e845
Created                   : 2014-11-24 00:39:15
Snap Volumes:

    Snap Volume Name          : 95b63de2c6af4c0d995b0012ffc5b60e
    Origin Volume name        : testvol
    Snaps taken for testvol      : 2
    Snaps available for testvol  : 254
    Status                    : Started

[root at dhcp42-244 ~]#

Verify that no snapd process is active as uss is off:

[root at dhcp42-244 ~]# gluster volume status testvol1 | grep -i "snapshot daemon"
[root at dhcp42-244 ~]# 

root at dhcp42-244 ~]# gluster snapshot info

Snapshot                  : snap3
Snap UUID                 : 495bc611-9a6c-4687-b42b-a7119317f2fc
Created                   : 2014-11-25 01:10:48
Snap Volumes:

    Snap Volume Name          : 57bc479aa9d84b39a4b0ba6ca85345dd
    Origin Volume name        : testvol1
    Snaps taken for testvol1      : 2
    Snaps available for testvol1  : 254
    Status                    : Stopped

Snapshot                  : snap4
Snap UUID                 : d889db48-3eec-4892-aaf4-b0ef289bb143
Created                   : 2014-11-25 01:11:12
Snap Volumes:

    Snap Volume Name          : 0ad7e481585c44f7838bccca108a0531
    Origin Volume name        : testvol1
    Snaps taken for testvol1      : 2
    Snaps available for testvol1  : 254
    Status                    : Stopped

[root at dhcp42-244 ~]# 

Fuse Mount
=========

[root at dhcp43-190 testvol1]# ls -lart
total 5
drwxr-xr-x. 6 root root 4096 Nov 24 07:37 ..
-rwxr-xr-x. 1 root root  901 Nov 24 08:22 lookup_readdirp.sh
-rw-r--r--. 1 root root    0 Nov 24 08:23 file.0
drwxr-xr-x. 2 root root   12 Nov 25 00:35 testdir
drwxr-xr-x. 2 root root   12 Nov 25 01:04 .snaps
drwxr-xr-x. 5 root root  138 Nov 25 01:04 .
[root at dhcp43-190 testvol1]# 

After enabling USS and activate the .snaps access to .snaps shows snapshot
contents:

[root at dhcp43-190 .snaps]# ls
snap3  snap4
[root at dhcp43-190 .snaps]# 

[root at dhcp43-190 snap3]# ls
file.0  lookup_readdirp.sh  testdir
[root at dhcp43-190 snap3]# cd ..
[root at dhcp43-190 .snaps]# cd snap4
[root at dhcp43-190 snap4]# ls
file.0  lookup_readdirp.sh  testdir
[root at dhcp43-190 snap4]# 

Create file with name as .snaps:
==============================

[root at dhcp43-190 testvol1]# touch .snaps
[root at dhcp43-190 testvol1]# ls
file.0  lookup_readdirp.sh  testdir
[root at dhcp43-190 testvol1]# ls -lart
total 5
drwxr-xr-x. 6 root root 4096 Nov 24 07:37 ..
-rwxr-xr-x. 1 root root  901 Nov 24 08:22 lookup_readdirp.sh
-rw-r--r--. 1 root root    0 Nov 24 08:23 file.0
drwxr-xr-x. 2 root root   12 Nov 25 00:35 testdir
drwxr-xr-x. 4 root root  125 Nov 25 01:21 .
-rw-r--r--. 1 root root    0 Nov 25 01:21 .snaps
[root at dhcp43-190 testvol1]# 

[root at dhcp42-244 ~]# gluster snapshot create snap5 testvol1
snapshot create: success: Snap snap5 created successfully
[root at dhcp42-244 ~]# gluster snapshot list
snap1
snap2
snap3
snap4
snap5
[root at dhcp42-244 ~]# 

Enable USS:
========

[root at dhcp42-244 ~]# gluster volume info testvol1

Volume Name: testvol1
Type: Distributed-Replicate
Volume ID: bcd90c32-e79d-4197-a5b2-b0ea1d52002d
Status: Started
Snap Volume: no
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.42.244:/rhs/brick2/testvol
Brick2: 10.70.43.6:/rhs/brick3/testvol
Brick3: 10.70.42.204:/rhs/brick4/testvol
Brick4: 10.70.42.10:/rhs/brick1/testvol
Options Reconfigured:
features.barrier: disable
features.uss: enable
performance.readdir-ahead: on
snap-max-hard-limit: 256
snap-max-soft-limit: 90
auto-delete: disable
[root at dhcp42-244 ~]# 

[root at dhcp43-190 .snaps]# cd snap5
[root at dhcp43-190 snap5]# ls
file.0  lookup_readdirp.sh  testdir
[root at dhcp43-190 snap5]# ls -lart
total 5
-rwxr-xr-x. 1 root root  901 Nov 24 08:22 lookup_readdirp.sh
-rw-r--r--. 1 root root    0 Nov 24 08:23 file.0
drwxr-xr-x. 2 root root    6 Nov 25 00:35 testdir
-rw-r--r--. 1 root root    0 Nov 25 01:21 .snaps
drwxr-xr-x. 4 root root  125 Nov 25 01:21 .
drwxr-xr-x. 2 root root 4096 Nov 25  2014 ..
[root at dhcp43-190 snap5]# 

[root at dhcp43-190 testvol1]# ls -al
total 9
drwxr-xr-x. 5 root root  138 Nov 25 01:59 .
drwxr-xr-x. 8 root root 4096 Nov 25 01:34 ..
-rw-r--r--. 1 root root    0 Nov 24 08:23 file.0
-rwxr-xr-x. 1 root root  901 Nov 24 08:22 lookup_readdirp.sh
drwxr-xr-x. 2 root root 4096 Nov 25  2014 .snaps
drwxr-xr-x. 2 root root   12 Nov 25 00:35 testdir
[root at dhcp43-190 testvol1]# cd .snaps
[root at dhcp43-190 .snaps]# ls
snap3  snap4  snap5  snap6  snap7
[root at dhcp43-190 .snaps]# 

NFS Mount:
==========
1.Disable the USS if enabled
2.Create .snaps dir/file from NFS mount
3.Create a snapshot and activate it
4.Enable USS 
5. Browse the .snaps at NFS mount.
[root at dhcp43-190 nfsmount]# ls -lalrt
total 5
-rwxr-xr-x. 1 root root  901 Nov 24 08:22 lookup_readdirp.sh
-rw-r--r--. 1 root root    0 Nov 24 08:23 file.0
drwxr-xr-x. 2 root root   12 Nov 25 00:35 testdir
-rw-r--r--. 1 root root    0 Nov 25 01:21 .snaps
drwxr-xr-x. 4 root root  125 Nov 25 01:32 .
drwxr-xr-x. 8 root root 4096 Nov 25 01:34 ..
[root at dhcp43-190 nfsmount]# cd .snaps
-bash: cd: .snaps: Not a directory
[root at dhcp43-190 nfsmount]# echo 3 > /proc/sys/vm/drop_caches 
[root at dhcp43-190 nfsmount]# cd .snaps
-bash: cd: .snaps: Input/output error
[root at dhcp43-190 nfsmount]


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1159283
[Bug 1159283] [USS]: if .snaps pre-exist and it contains files, than on
enabling uss from nfs should show snaps under .snaps not files
https://bugzilla.redhat.com/show_bug.cgi?id=1159302
[Bug 1159302] [USS]: Unable to go to .snaps directory from any directories
other than root after enabling uss
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=sRJG4l3FUc&a=cc_unsubscribe


More information about the Bugs mailing list