Bug 1029778
Summary: | AFR : Hardlinks of a file are not self-healed after resolving the split-brain on the file | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | spandura |
Component: | replicate | Assignee: | Pranith Kumar K <pkarampu> |
Status: | CLOSED NOTABUG | QA Contact: | Sudhir D <sdharane> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.1 | CC: | pkarampu, rhs-bugs, spandura, storage-qa-internal, vbellur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-30 09:34:11 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: |
Description
spandura
2013-11-13 08:01:49 UTC
SOS Reports: http://rhsqe-repo.lab.eng.blr.redhat.com/bugs_necessary_info/1029778/ root@rhs-client11 [Nov-13-2013- 8:03:35] >gluster v info Volume Name: vol_rep Type: Replicate Volume ID: d75d19c8-fb2f-475e-915c-d24d4dede1e3 Status: Started Number of Bricks: 1 x 3 = 3 Transport-type: tcp Bricks: Brick1: rhs-client11:/rhs/bricks/b1 Brick2: rhs-client12:/rhs/bricks/b1-rep1 Brick3: rhs-client13:/rhs/bricks/b1-rep2 Options Reconfigured: nfs.disable: on cluster.self-heal-daemon: off root@rhs-client11 [Nov-13-2013- 8:27:22] > Shwetha, I followed the steps and was seeing the expected behavior instead of the bug. How was the resolution of split-brain performed in the setup? After the file, its hardlink + gfid-link are removed, we need to access both file, its hardlink from the mount point to make sure both the files are healed. 'ls -l' may not show this file until this is performed because, afr does not know that 'brick3' is the source at the time because there are no extended attributes to say so. You can see the following output: Initially find . | xargs stat only shows the softlink, no files at all. but once both 'test_fil1, h_test_file' are accessed both the files are re-created. And further 'ls -l' shows all the files as expected. root@pranithk-laptop - /mnt/r2 15:04:21 :) ⚡ find . | xargs stat File: ‘.’ Size: 42 Blocks: 1 IO Block: 131072 directory Device: 24h/36d Inode: 1 Links: 3 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:fusefs_t:s0 Access: 2013-12-27 15:06:17.378897044 +0530 Modify: 2013-12-27 15:06:11.103890634 +0530 Change: 2013-12-27 15:06:11.103890634 +0530 Birth: - File: ‘./s_test_file1’ -> ‘test_fil1’ Size: 9 Blocks: 0 IO Block: 131072 symbolic link Device: 24h/36d Inode: 9866554501010886634 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:fusefs_t:s0 Access: 2013-12-27 15:06:17.378897044 +0530 Modify: 2013-12-27 15:04:21.226778369 +0530 Change: 2013-12-27 15:04:21.226778369 +0530 Birth: - root@pranithk-laptop - /mnt/r2 15:07:33 :) ⚡ ls -l test_fil1 -rw-r--r--. 2 root root 2097152 Dec 27 14:58 test_fil1 root@pranithk-laptop - /mnt/r2 15:08:08 :) ⚡ ls -l h_test_file -rw-r--r--. 2 root root 2097152 Dec 27 14:58 h_test_file root@pranithk-laptop - /mnt/r2 15:08:14 :) ⚡ ls -l total 4096 -rw-r--r--. 2 root root 2097152 Dec 27 14:58 h_test_file lrwxrwxrwx. 1 root root 9 Dec 27 15:04 s_test_file1 -> test_fil1 -rw-r--r--. 2 root root 2097152 Dec 27 14:58 test_fil1 Pranith. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |