Bug 1163561
| Summary: | A restarted child can not clean files/directories which were deleted while down | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | jiademing.dd <iesool> | |
| Component: | disperse | Assignee: | bugs <bugs> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | mainline | CC: | bugs, gluster-bugs, jdarcy, lidi, pkarampu | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1165143 (view as bug list) | Environment: | ||
| Last Closed: | 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: | 1165143 | |||
|
Description
jiademing.dd
2014-11-13 02:53:56 UTC
For fixing this bug, we had to bring in some version incompatible changes and directory self-heal implementation, so it can't be backported to 3.6.x. Please feel free to upgrade to 3.7.x where this bug is fixed:
root@pranithk-laptop - ~
22:38:45 :( ⚡ glusterd && gluster volume create ec2 disperse-data 2 redundancy 1 `hostname`:/home/gfs/ec_{0..2} force && gluster volume start ec2 && mount -t glusterfs `hostname`:/ec2 /mnt/ec2
volume create: ec2: success: please start the volume to access data
volume start: ec2: success
root@pranithk-laptop - ~
22:41:01 :) ⚡ cd /mnt/ec2/
root@pranithk-laptop - /mnt/ec2
22:41:23 :) ⚡ for i in {1..10}; do echo abc > a; done
root@pranithk-laptop - /mnt/ec2
22:41:42 :) ⚡ ls -l /home/gfs/ec_?
/home/gfs/ec_0:
total 8
-rw-r--r--. 2 root root 512 May 9 22:41 a
/home/gfs/ec_1:
total 8
-rw-r--r--. 2 root root 512 May 9 22:41 a
/home/gfs/ec_2:
total 8
-rw-r--r--. 2 root root 512 May 9 22:41 a
root@pranithk-laptop - /mnt/ec2
22:41:47 :) ⚡ for i in {1..10}; do echo abc > $i; done
root@pranithk-laptop - /mnt/ec2
22:41:52 :) ⚡ ls -l /home/gfs/ec_?
/home/gfs/ec_0:
total 88
-rw-r--r--. 2 root root 512 May 9 22:41 1
-rw-r--r--. 2 root root 512 May 9 22:41 10
-rw-r--r--. 2 root root 512 May 9 22:41 2
-rw-r--r--. 2 root root 512 May 9 22:41 3
-rw-r--r--. 2 root root 512 May 9 22:41 4
-rw-r--r--. 2 root root 512 May 9 22:41 5
-rw-r--r--. 2 root root 512 May 9 22:41 6
-rw-r--r--. 2 root root 512 May 9 22:41 7
-rw-r--r--. 2 root root 512 May 9 22:41 8
-rw-r--r--. 2 root root 512 May 9 22:41 9
-rw-r--r--. 2 root root 512 May 9 22:41 a
/home/gfs/ec_1:
total 88
-rw-r--r--. 2 root root 512 May 9 22:41 1
-rw-r--r--. 2 root root 512 May 9 22:41 10
-rw-r--r--. 2 root root 512 May 9 22:41 2
-rw-r--r--. 2 root root 512 May 9 22:41 3
-rw-r--r--. 2 root root 512 May 9 22:41 4
-rw-r--r--. 2 root root 512 May 9 22:41 5
-rw-r--r--. 2 root root 512 May 9 22:41 6
-rw-r--r--. 2 root root 512 May 9 22:41 7
-rw-r--r--. 2 root root 512 May 9 22:41 8
-rw-r--r--. 2 root root 512 May 9 22:41 9
-rw-r--r--. 2 root root 512 May 9 22:41 a
/home/gfs/ec_2:
total 88
-rw-r--r--. 2 root root 512 May 9 22:41 1
-rw-r--r--. 2 root root 512 May 9 22:41 10
-rw-r--r--. 2 root root 512 May 9 22:41 2
-rw-r--r--. 2 root root 512 May 9 22:41 3
-rw-r--r--. 2 root root 512 May 9 22:41 4
-rw-r--r--. 2 root root 512 May 9 22:41 5
-rw-r--r--. 2 root root 512 May 9 22:41 6
-rw-r--r--. 2 root root 512 May 9 22:41 7
-rw-r--r--. 2 root root 512 May 9 22:41 8
-rw-r--r--. 2 root root 512 May 9 22:41 9
-rw-r--r--. 2 root root 512 May 9 22:41 a
root@pranithk-laptop - /mnt/ec2
22:41:54 :) ⚡ /home/pk1/.scripts/gfs -c k -v ec2 -k 0
Dir: /var/lib/glusterd/vols/ec2/run/
kill -9 14851
root@pranithk-laptop - /mnt/ec2
22:41:58 :) ⚡ rm -rf *
root@pranithk-laptop - /mnt/ec2
22:42:01 :) ⚡ ls -l /home/gfs/ec_?
/home/gfs/ec_0:
total 88
-rw-r--r--. 2 root root 512 May 9 22:41 1
-rw-r--r--. 2 root root 512 May 9 22:41 10
-rw-r--r--. 2 root root 512 May 9 22:41 2
-rw-r--r--. 2 root root 512 May 9 22:41 3
-rw-r--r--. 2 root root 512 May 9 22:41 4
-rw-r--r--. 2 root root 512 May 9 22:41 5
-rw-r--r--. 2 root root 512 May 9 22:41 6
-rw-r--r--. 2 root root 512 May 9 22:41 7
-rw-r--r--. 2 root root 512 May 9 22:41 8
-rw-r--r--. 2 root root 512 May 9 22:41 9
-rw-r--r--. 2 root root 512 May 9 22:41 a
/home/gfs/ec_1:
total 0
/home/gfs/ec_2:
total 0
root@pranithk-laptop - /mnt/ec2
22:42:05 :) ⚡ gluster v start ec2 force
volume start: ec2: success
root@pranithk-laptop - /mnt/ec2
22:42:12 :) ⚡ gluster v heal ec2 info
Brick pranithk-laptop:/home/gfs/ec_0/
Number of entries: 0
Brick pranithk-laptop:/home/gfs/ec_1/
Number of entries: 0
Brick pranithk-laptop:/home/gfs/ec_2/
Number of entries: 0
root@pranithk-laptop - /mnt/ec2
22:42:23 :) ⚡ ls -l /home/gfs/ec_?
/home/gfs/ec_0:
total 0
/home/gfs/ec_1:
total 0
/home/gfs/ec_2:
total 0
root@pranithk-laptop - /mnt/ec2
22:42:29 :) ⚡
Fix for this bug is already made in a GlusterFS release. The cloned BZ has details of the fix and the release. Hence closing this mainline BZ. Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well. |