Bug 1086145
Summary: | [SNAPSHOT]: Stale entries of snapshots needs to be cleaned from /var/run/gluster/snaps/ | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Rahul Hinduja <rhinduja> | |
Component: | snapshot | Assignee: | Avra Sengupta <asengupt> | |
Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | rhgs-3.0 | CC: | asengupt, josferna, rhs-bugs, rjoseph, ssamanta, storage-qa-internal | |
Target Milestone: | --- | |||
Target Release: | RHGS 3.0.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | SNAPSHOT | |||
Fixed In Version: | glusterfs-3.6.0.17-1.el6rhs | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1101463 (view as bug list) | Environment: | ||
Last Closed: | 2014-09-22 19:35:25 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: | 1101463, 1104635 |
Description
Rahul Hinduja
2014-04-10 08:41:13 UTC
Marking snapshot BZs to RHS 3.0. Fixed with http://review.gluster.org/7128 Hitting the same issue with build: glusterfs-3.6.0.7-1.el6rhs.x86_64 . Steps remain exactly the same. [root@snapshot13 ~]# rpm -qa | grep glusterfs-3.6.0.7-1.el6rhs glusterfs-3.6.0.7-1.el6rhs.x86_64 [root@snapshot13 ~]# Currently 20 snaps are present in the system ============================================ [root@snapshot13 ~]# gluster snapshot list | wc 20 20 60 [root@snapshot13 ~]# ls /var/run/gluster/snaps/ | wc 20 20 660 [root@snapshot13 ~]# Delete 3 snaps ============== [root@snapshot13 ~]# for i in {1..3} ; do gluster --mode=script snapshot delete a$i ; done snapshot delete: a1: snap removed successfully snapshot delete: a2: snap removed successfully snapshot delete: a3: snap removed successfully List the number of entries again: ================================= [root@snapshot13 ~]# gluster snapshot list | wc 17 17 51 [root@snapshot13 ~]# ls /var/run/gluster/snaps/ | wc 20 20 660 [root@snapshot13 ~]# Snaps are deleted but the entries remain in /var/run/gluster/snaps/ Moving the bug to assigned state Removing the blocker after discussing with Engineering Leads. Verified with build: glusterfs-3.6.0.17-1.el6rhs.x86_64 Creation: ========== [root@snapshot13 ~]# ls /var/run/gluster/snaps/ | wc 0 0 0 [root@snapshot13 ~]# [root@snapshot13 ~]# for i in {1..10}; do gluster snapshot create snap$i vol0 ; done snapshot create: success: Snap snap1 created successfully snapshot create: success: Snap snap2 created successfully snapshot create: success: Snap snap3 created successfully snapshot create: success: Snap snap4 created successfully snapshot create: success: Snap snap5 created successfully snapshot create: success: Snap snap6 created successfully snapshot create: success: Snap snap7 created successfully snapshot create: success: Snap snap8 created successfully snapshot create: success: Snap snap9 created successfully snapshot create: success: Snap snap10 created successfully [root@snapshot13 ~]# df -h | grep /var/run | wc 10 50 1070 [root@snapshot13 ~]# ls /var/run/gluster/snaps/ | wc 10 10 330 [root@snapshot13 ~]# Deletion: ========== [root@snapshot13 ~]# for i in {1..10}; do gluster --mode=script snapshot delete snap$i ; done snapshot delete: snap1: snap removed successfully snapshot delete: snap2: snap removed successfully snapshot delete: snap3: snap removed successfully snapshot delete: snap4: snap removed successfully snapshot delete: snap5: snap removed successfully snapshot delete: snap6: snap removed successfully snapshot delete: snap7: snap removed successfully snapshot delete: snap8: snap removed successfully snapshot delete: snap9: snap removed successfully snapshot delete: snap10: snap removed successfully [root@snapshot13 ~]# [root@snapshot13 ~]# df -h | grep /var/run | wc 0 0 0 [root@snapshot13 ~]# ls /var/run/gluster/snaps/ | wc 0 0 0 [root@snapshot13 ~]# Moving the bug to verified state. 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. http://rhn.redhat.com/errata/RHEA-2014-1278.html |