[Bugs] [Bug 1160280] [USS] : don't display the snapshots which are not activated

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 24 13:37:17 UTC 2014


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

ssamanta at redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ON_QA                       |VERIFIED
                 CC|                            |ssamanta at redhat.com



--- Comment #6 from ssamanta at redhat.com ---
Verified the Bug and did not find the issue. Marking the BZ as VERIFIED.
Below is the Verification information.


[root at dhcp42-244 ~]# rpm -qa | grep glusterfs
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
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 set testvol1 features.uss on
volume set: success
[root at dhcp42-244 ~]# 

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

Volume Name: testvol
Type: Distributed-Replicate
Volume ID: 60c63773-39e8-4145-9985-5bcedf59cd1b
Status: Started
Snap Volume: no
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.42.244:/rhs/brick1/testvol
Brick2: 10.70.43.6:/rhs/brick2/testvol
Brick3: 10.70.42.204:/rhs/brick3/testvol
Brick4: 10.70.42.10:/rhs/brick4/testvol
Options Reconfigured:
performance.readdir-ahead: on
features.barrier: disable
features.uss: on
snap-max-hard-limit: 256
snap-max-soft-limit: 90
auto-delete: disable

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:
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 snapshot status

Snap Name : snapvol1
Snap UUID : a9faa535-3042-4e37-86f5-7c9f5414ad28

    Brick Path        :  
10.70.42.244:/var/run/gluster/snaps/b2351e5801e24bf8b2631e6af771ff62/brick1/testvol
    Volume Group      :   RHS_vg2
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


    Brick Path        :  
10.70.43.6:/var/run/gluster/snaps/b2351e5801e24bf8b2631e6af771ff62/brick2/testvol
    Volume Group      :   RHS_vg3
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


    Brick Path        :  
10.70.42.204:/var/run/gluster/snaps/b2351e5801e24bf8b2631e6af771ff62/brick3/testvol
    Volume Group      :   RHS_vg4
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


    Brick Path        :  
10.70.42.10:/var/run/gluster/snaps/b2351e5801e24bf8b2631e6af771ff62/brick4/testvol
    Volume Group      :   RHS_vg1
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


Snap Name : snap2vol1
Snap UUID : e8403043-9ad7-4b69-a94c-07e916a56248

    Brick Path        :  
10.70.42.244:/var/run/gluster/snaps/63f86f1174134d8c8053bce73397041a/brick1/testvol
    Volume Group      :   RHS_vg2
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


    Brick Path        :  
10.70.43.6:/var/run/gluster/snaps/63f86f1174134d8c8053bce73397041a/brick2/testvol
    Volume Group      :   RHS_vg3
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


    Brick Path        :  
10.70.42.204:/var/run/gluster/snaps/63f86f1174134d8c8053bce73397041a/brick3/testvol
    Volume Group      :   RHS_vg4
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g


    Brick Path        :  
10.70.42.10:/var/run/gluster/snaps/63f86f1174134d8c8053bce73397041a/brick4/testvol
    Volume Group      :   RHS_vg1
    Brick Running     :   No
    Brick PID         :   N/A
    Data Percentage   :   0.20
    LV Size           :   13.47g

[root at dhcp42-244 ~]# 



Verify the Deactivated snaps doesnot showup in .snaps at the client

[root at dhcp42-244 ~]# gluster snapshot activate snapvol1
Snapshot activate: snapvol1: Snap activated successfully
[root at dhcp42-244 ~]# gluster snapshot activate snap2vol1
Snapshot activate: snap2vol1: Snap activated successfully
[root at dhcp42-244 ~]#

[root at dhcp42-244 ~]# gluster volume status testvol1 | grep -i "snapshot daemon"
Snapshot Daemon on localhost                49160    Y    4313
Snapshot Daemon on 10.70.43.6                49160    Y    3547
Snapshot Daemon on 10.70.42.204                49160    Y    3640
Snapshot Daemon on 10.70.42.10                49160    Y    317
[root at dhcp42-244 ~]# 


Client:
=======
[root at dhcp43-190 ~]# mount -t glusterfs 10.70.42.244:/testvol1 /mnt/testvol1
[root at dhcp43-190 ~]# 

[root at dhcp43-190 testvol1]# cd .snaps
[root at dhcp43-190 .snaps]# ls
[root at dhcp43-190 .snaps]# 

2. Performed lookup on .snaps directory in a loop and see there is no hang.


3. After activating the snaps for the volume:

[root at dhcp43-190 .snaps]# ls
snap2vol1  snapvol1
[root at dhcp43-190 .snaps]# 


TC2:

1. Deactivate the snaps and perform ls on the .snaps

[root at dhcp43-190 .snaps]# ls -l
total 0
[root at dhcp43-190 .snaps]# 

After activating the snaps again the snashots are visible at the client:

[root at dhcp43-190 .snaps]# ls
snap2vol1  snapvol1
[root at dhcp43-190 .snaps]#

-- 
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=xL4CN93DKW&a=cc_unsubscribe


More information about the Bugs mailing list