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 !
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
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
Hello, Any news regarding this issue ? Thank you very much ! Best regards, AZ
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 ***