Bug 764393 (GLUSTER-2661) - Replication of hard links does not work with AFR
Summary: Replication of hard links does not work with AFR
Keywords:
Status: CLOSED DUPLICATE of bug 765391
Alias: GLUSTER-2661
Product: GlusterFS
Classification: Community
Component: replicate
Version: 3.1.3
Hardware: x86_64
OS: Linux
high
low
Target Milestone: ---
Assignee: Pranith Kumar K
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-03 10:17 UTC by AZ
Modified: 2011-12-20 05:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-20 05:25:18 UTC
Regression: ---
Mount Type: ---
Documentation: DP
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description AZ 2011-04-03 10:17:32 UTC
Hello,


Hard links replication does not work using AFR.

If some hard links are on brick1 but not on brick2, AFR will duplicate hard links with new files instead of hard links.

This bug / limitation is "dangerous" for me as I use a lot of hard links on my repositories.


Here is the demo :

root@srv0-1:/home/gluster# ls -l
total 4
-rw-r--r-- 1 root root 0 Apr  2 13:10 test
root@srv0-1:/home/gluster# ln test testlink1
root@srv0-1:/home/gluster# ln test testlink2
root@srv0-1:/home/gluster# ln test testlink3
root@srv0-1:/home/gluster# ls -l
total 16
-rw-r--r-- 4 root root 0 Apr  2 13:10 test
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink1
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink2
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink3
root@srv0-1:/home/gluster# ls -l /home/export/export1
total 16
-rw-r--r-- 4 root root 0 Apr  2 13:10 test
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink1
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink2
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink3
root@srv0-1:/home/gluster# ls -l /home/export/export2
total 0
-rw-r--r-- 4 root root 0 Apr  2 16:30 test
-rw-r--r-- 4 root root 0 Apr  2 16:30 testlink1
-rw-r--r-- 4 root root 0 Apr  2 16:30 testlink2
-rw-r--r-- 4 root root 0 Apr  2 16:30 testlink3
root@srv0-1:/home/gluster# rm /home/export/export2/*
root@srv0-1:/home/gluster# ls -l
total 16
-rw-r--r-- 4 root root 0 Apr  2 13:10 test
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink1
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink2
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink3
root@srv0-1:/home/gluster# ls -l /home/export/export1/
total 16
-rw-r--r-- 4 root root 0 Apr  2 13:10 test
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink1
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink2
-rw-r--r-- 4 root root 0 Apr  2 13:10 testlink3
root@srv0-1:/home/gluster# ls -l /home/export/export2/
total 16
-rw-r--r-- 1 root root 0 Apr  2 13:10 test
-rw-r--r-- 1 root root 0 Apr  2 13:10 testlink1
-rw-r--r-- 1 root root 0 Apr  2 13:10 testlink2
-rw-r--r-- 1 root root 0 Apr  2 13:10 testlink3
root@srv0-1:/home/gluster# 


Thank you very much for your support !

Comment 1 Amar Tumballi 2011-04-03 10:47:45 UTC
Hi AZ,

This is a known issue at the moment. Will make sure its added in FAQ section of documentation.

We will work on this feature of self-heal with future releases. 

Regards,
Amar

Comment 2 AZ 2011-04-04 04:37:20 UTC
Hi Amar,

Thank you very much for your answer !
So I will wait for future releases and support of hard links :-)

Thank you !

Best regards,

AZ

Comment 3 AZ 2011-06-27 03:11:00 UTC
Hello,

Any news regarding this issue ?

Thank you very much !

Best regards,

AZ

Comment 4 Pranith Kumar K 2011-12-20 05:25:18 UTC
Ideally I should have duplicated 765391 to this but lot of discussion happened on the bug 765391.

*** This bug has been marked as a duplicate of bug 765391 ***


Note You need to log in before you can comment on or make changes to this bug.