Bug 1289228
Summary: | [Tiering] + [DHT] - Detach tier fails to migrate the files when there are corrupted objects in hot tier. | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | RamaKasturi <knarra> | |
Component: | tier | Assignee: | Bug Updates Notification Mailing List <rhs-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | RamaKasturi <knarra> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.1 | CC: | asrivast, byarlaga, dlambrig, josferna, nbalacha, rhs-bugs, sankarshan, storage-qa-internal | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | RHGS 3.1.2 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.7.5-13 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1290965 (view as bug list) | Environment: | ||
Last Closed: | 2016-03-01 06:01:53 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: | 1290965, 1293300 |
Description
RamaKasturi
2015-12-07 17:04:33 UTC
gluster vol info ouput: =========================== [root@rhs-client2 ~]# gluster vol info vol1 Volume Name: vol1 Type: Tier Volume ID: 385fdb1e-1034-40ca-9a14-e892e68b500b Status: Started Number of Bricks: 8 Transport-type: tcp Hot Tier : Hot Tier Type : Distributed-Replicate Number of Bricks: 2 x 2 = 4 Brick1: rhs-client38:/bricks/brick3/h4 Brick2: rhs-client2:/bricks/brick3/h3 Brick3: rhs-client38:/bricks/brick2/h2 Brick4: rhs-client2:/bricks/brick2/h1 Cold Tier: Cold Tier Type : Distributed-Replicate Number of Bricks: 2 x 2 = 4 Brick5: rhs-client2:/bricks/brick0/c1 Brick6: rhs-client38:/bricks/brick0/c2 Brick7: rhs-client2:/bricks/brick1/c3 Brick8: rhs-client38:/bricks/brick1/c4 Options Reconfigured: cluster.tier-mode: cache features.ctr-enabled: on cluster.watermark-hi: 2 cluster.watermark-low: 1 features.scrub-freq: hourly features.scrub: Active features.bitrot: on performance.readdir-ahead: on Files inside the bricks before detach tier: ================================================= [root@rhs-client2 ~]# ls -l /bricks/brick*/h* /bricks/brick2/h1: total 4 -rw-r--r--. 2 root root 75 Dec 7 12:17 ff1 /bricks/brick3/h3: total 1361028 -rw-r--r--. 2 root root 76 Dec 7 12:17 ff2 -rw-r--r--. 2 root root 1393688576 Dec 7 12:18 rhgsc-appliance005 [root@rhs-client2 ~]# getfattr -d -m . -e hex /bricks/brick2/h1/ff1 getfattr: Removing leading '/' from absolute path names # file: bricks/brick2/h1/ff1 security.selinux=0x73797374656d5f753a6f626a6563745f723a676c7573746572645f627269636b5f743a733000 trusted.afr.dirty=0x000000000000000000000000 trusted.bit-rot.bad-file=0x3100 trusted.bit-rot.signature=0x0102000000000000006fde5302afacc9901c00de8ffc8c7aeaa4ea094d7edfe0e216b094d3877660da trusted.bit-rot.version=0x02000000000000005665763d00014924 trusted.gfid=0xc00e4e43eb5849618f0a0f37501f7613 [root@rhs-client2 ~]# getfattr -d -m . -e hex /bricks/brick3/h3/ff2 getfattr: Removing leading '/' from absolute path names # file: bricks/brick3/h3/ff2 security.selinux=0x73797374656d5f753a6f626a6563745f723a676c7573746572645f627269636b5f743a733000 trusted.afr.dirty=0x000000000000000000000000 trusted.bit-rot.bad-file=0x3100 trusted.bit-rot.signature=0x0102000000000000000afb51faf10aa5d634c55290d8a3b579d1935c80c3c1a3f7f92fd812239c5ef8 trusted.bit-rot.version=0x02000000000000005665763d0001f921 trusted.gfid=0x810ff1ae3dd84d1a8422afa1283d2a78 [root@rhs-client2 ~]# ls -l /bricks/brick*/c* /bricks/brick0/c1: total 2722064 ---------T. 2 root root 0 Dec 7 12:14 ff2 -rw-r--r--. 2 root root 21 Dec 4 12:21 file2_hot -rw-r--r--. 2 root root 8 Dec 4 07:42 file3 -rw-r--r--. 2 root root 8 Dec 4 07:42 file4 -rw-r--r--. 2 root root 67 Dec 7 11:40 file_demote1 -rw-r--r--. 2 root root 1393688576 Dec 7 09:36 rhgsc-appliance004 ---------T. 2 root root 0 Dec 7 12:14 rhgsc-appliance005 -rw-r--r--. 2 root root 1393688576 Dec 7 09:28 rhgsc-appliance-03 /bricks/brick1/c3: total 4083100 ---------T. 2 root root 0 Dec 7 12:14 ff1 -rw-r--r--. 2 root root 237 Dec 7 09:18 file1 -rw-r--r--. 2 root root 201 Dec 7 09:12 file2 -rw-r--r--. 2 root root 51 Dec 4 12:22 file2_hot1 -rw-r--r--. 2 root root 8 Dec 4 07:42 file5 -rw-r--r--. 2 root root 8 Dec 4 07:42 file6 -rw-r--r--. 2 root root 77 Dec 7 11:40 file_demote -rw-r--r--. 2 root root 19 Dec 7 10:58 file_demote2 -rw-r--r--. 2 root root 1393688576 Dec 7 09:31 rhgsc-appliance00 -rw-r--r--. 2 root root 1393688576 Dec 7 09:26 rhgsc-appliance-02 -rw-r--r--. 2 root root 1393688576 Dec 4 12:06 rhgsc-appliance03 gluster volume detach-tier status after starting it: ========================================================== [root@rhs-client2 ~]# gluster volume detach-tier vol1 status Node Rebalanced-files size scanned failures skipped status run time in secs --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- localhost 0 0Bytes 19 0 0 completed 0.00 10.70.36.62 3 1.3GB 3 0 0 completed 42.00 Once the status says migration is completed, still bricks are seen in hot tier: =============================================================================== [root@rhs-client2 ~]# ls -l /bricks/brick*/c* /bricks/brick0/c1: total 4083088 ---------T. 2 root root 0 Dec 7 16:53 ff2 -rw-r--r--. 2 root root 21 Dec 4 12:21 file2_hot -rw-r--r--. 2 root root 8 Dec 4 07:42 file3 -rw-r--r--. 2 root root 8 Dec 4 07:42 file4 -rw-r--r--. 2 root root 67 Dec 7 11:40 file_demote1 -rw-r--r--. 2 root root 1393688576 Dec 7 09:36 rhgsc-appliance004 -rw-r--r--. 2 root root 1393688576 Dec 7 12:17 rhgsc-appliance005 -rw-r--r--. 2 root root 1393688576 Dec 7 09:28 rhgsc-appliance-03 /bricks/brick1/c3: total 4083100 ---------T. 2 root root 0 Dec 7 16:53 ff1 -rw-r--r--. 2 root root 237 Dec 7 09:18 file1 -rw-r--r--. 2 root root 201 Dec 7 09:12 file2 -rw-r--r--. 2 root root 51 Dec 4 12:22 file2_hot1 -rw-r--r--. 2 root root 8 Dec 4 07:42 file5 -rw-r--r--. 2 root root 8 Dec 4 07:42 file6 -rw-r--r--. 2 root root 77 Dec 7 11:40 file_demote -rw-r--r--. 2 root root 19 Dec 7 10:58 file_demote2 -rw-r--r--. 2 root root 1393688576 Dec 7 09:31 rhgsc-appliance00 -rw-r--r--. 2 root root 1393688576 Dec 7 09:26 rhgsc-appliance-02 -rw-r--r--. 2 root root 1393688576 Dec 4 12:06 rhgsc-appliance03 sos reports can be found at the link below: http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/1289228/ Verified and works fine with build glusterfs-3.7.5-13.el7rhgs.x86_64. Good files gets migrated to cold tier when there are corrupted files in hot tier and when user performs a deatch tier on the volume. 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/RHBA-2016-0193.html |