<div dir="ltr">could be aufs (on dest) I do some tests now.<div><br></div><div>source is identical:</div><div><br></div><div><div>root@mediapc:/mnt/foo/server_gen# stat /mnt/hotswapo/storebackup/server_gen/2013.07.26_03.08.38/\$sortin_linux/natty_lirc_work/etc/fuse.conf</div>
<div>  File: `/mnt/hotswapo/storebackup/server_gen/2013.07.26_03.08.38/$sortin_linux/natty_lirc_work/etc/fuse.conf'</div><div>  Size: 216             Blocks: 8          IO Block: 131072 regular file</div><div>Device: 17h/23d Inode: 219420238   Links: 124</div>
<div>Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (    0/    root)</div><div>Access: 2013-08-02 23:42:19.959015277 +0200</div><div>Modify: 2011-02-10 22:03:08.000000000 +0100</div><div>Change: 2013-08-02 03:19:01.487305400 +0200</div>
<div> Birth: -</div></div><div><br></div><div><div>root@mediapc:/mnt/foo/server_gen# stat /mnt/hotswapo/storebackup/server_gen/2013.07.27_03.08.46/\$sortin_linux/natty_lirc_work/etc/fuse.conf<br></div><div>  File: `/mnt/hotswapo/storebackup/server_gen/2013.07.27_03.08.46/$sortin_linux/natty_lirc_work/etc/fuse.conf'</div>
<div>  Size: 216             Blocks: 8          IO Block: 131072 regular file</div><div>Device: 17h/23d Inode: 219420238   Links: 124</div><div>Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (    0/    root)</div>
<div>Access: 2013-08-02 23:42:19.959015277 +0200</div><div>Modify: 2011-02-10 22:03:08.000000000 +0100</div><div>Change: 2013-08-02 03:19:01.487305400 +0200</div><div> Birth: -</div></div><div><br></div><div><br></div><div>
<div><div class="gmail_extra">Greetings<br><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 1:25 AM, Kevin Korb <span dir="ltr"><<a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>Can you do a stat on both of the source file and confirm that they<br>
have matching device numbers as well as inode numbers?<br>
<div><div class="h5"><br>
On 08/02/13 19:22, - wrote:<br>
> Hi,<br>
><br>
> no same mountpoints. And doing a "synthetic"  test (two new<br>
> directories) it works, even in the same simulated steps. (first<br>
> sync dir1, then ad link after that sync dir1 and dir2 to dest (dir2<br>
> is added to dest)<br>
><br>
> not so on my "real" data<br>
><br>
> Here is a file of "production" data::: src1:<br>
><br>
> ls -li<br>
> /mnt/hotswapo/storebackup/server_gen/2013.07.26_03.08.38/\$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
><br>
219420238 -rw-r----- 124 root root 216 Feb 10  2011<br>
> /mnt/hotswapo/storebackup/server_gen/2013.07.26_03.08.38/$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
>  src2: ls -li<br>
> /mnt/hotswapo/storebackup/server_gen/2013.07.27_03.08.46/\$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
><br>
219420238 -rw-r----- 124 root root 216 Feb 10  2011<br>
> /mnt/hotswapo/storebackup/server_gen/2013.07.27_03.08.46/$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
>  ->same inode (219420238)<br>
><br>
> doing the sync<br>
><br>
> rsync -RavhxSDHi --stats --progress server_gen/2013.07.27_03.08.46<br>
> server_gen/2013.07.26_03.08.38 /mnt/foo/<br>
><br>
> checking results:<br>
><br>
> lroot@mediapc:/mnt/foo/server_gen# ls -li<br>
> /mnt/foo/server_gen/2013.07.26_03.08.38/\$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
><br>
868354 -rw-r----- 1 root root 216 Feb 10  2011<br>
> /mnt/foo/server_gen/2013.07.26_03.08.38/$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
>  root@mediapc:/mnt/foo/server_gen# ls -li<br>
> /mnt/foo/server_gen/2013.07.27_03.08.46/\$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
><br>
6523 -rw-r----- 2 root root 216 Feb 10  2011<br>
> /mnt/foo/server_gen/2013.07.27_03.08.46/$sortin_linux/natty_lirc_work/etc/fuse.conf<br>
><br>
>  result: different inodes, not hardlinked<br>
><br>
> Greetings<br>
><br>
><br>
><br>
><br>
> On Sat, Aug 3, 2013 at 1:05 AM, Kevin Korb <<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a><br>
</div></div><div class="im">> <mailto:<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>>> wrote:<br>
><br>
> Oooops, I replied but I didn't reply to the list...<br>
><br>
> Are the two sources on different NFS mounts?  If they are are hard<br>
> links then obviously they are on the same file system on the<br>
> server but if the NFS client has them in 2 different mounts rsync<br>
> would probably not realize that they are linked together.<br>
><br>
> On 08/02/13 19:03, - wrote:<br>
><br>
>> Hi,<br>
><br>
>> ok did a sample test like your test and it worked. But using my<br>
>> real directories (roughly a million files) it does not work.<br>
>> Never had problems before with hardlinking.<br>
><br>
>> Is there anything I could do to narrow down the problem?<br>
>> (Version 3.0.9 on wheezy 64bit)<br>
><br>
>> source is on NFS, dest is on AUFS (could be problematic) but the<br>
>> small sample like you did was perfectly fine. I used same<br>
>> options and path scheme in both tests.<br>
><br>
>> Thanks<br>
><br>
>> lopiuh<br>
><br>
><br>
>> On Sat, Aug 3, 2013 at 12:14 AM, Kevin Korb <<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a><br>
> <mailto:<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>><br>
</div><div><div class="h5">>> <mailto:<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> <mailto:<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>>>> wrote:<br>
><br>
>> # ls -li /tmp/src?/testfile 3349750 -rw-r--r-- 2 root root 0 Aug<br>
>> 2 18:12 /tmp/src1/testfile 3349750 -rw-r--r-- 2 root root 0 Aug<br>
>> 2 18:12 /tmp/src2/testfile # rsync -RvaiH /tmp/src1 /tmp/src2<br>
>> /tmp/target sending incremental file list created directory<br>
>> /tmp/target cd+++++++++ /tmp/ cd+++++++++ /tmp/src1/ cd+++++++++<br>
>> /tmp/src2/<br>
>>> f+++++++++ /tmp/src2/testfile<br>
>> hf+++++++++ /tmp/src1/testfile => tmp/src2/testfile<br>
><br>
>> sent 192 bytes  received 68 bytes  520.00 bytes/sec total size is<br>
>> 0 speedup is 0.00 # ls -li /tmp/target/tmp/src?/testfile 3351917<br>
>> -rw-r--r-- 2 root root 0 Aug  2 18:12<br>
>> /tmp/target/tmp/src1/testfile 3351917 -rw-r--r-- 2 root root 0<br>
>> Aug 2 18:12 /tmp/target/tmp/src2/testfile<br>
><br>
><br>
>> On 08/02/13 18:11, Kevin Korb wrote:<br>
>>> It works for me in 3.0.9.  Are you on an older version?<br>
><br>
>>> On 08/02/13 18:08, - wrote:<br>
>>>> Hi,<br>
><br>
>>>> hardlinking (-H) works perfectly while using a syntax like<br>
>>>> -avhxSDH <SRC> <DEST><br>
><br>
>>>> Now I have to mirror multiple SRC directories which contain<br>
>>>> hardlinks. e. g: src1/a is a hardlink to src2/b<br>
><br>
>>>> -RavhxSDH SRC1 SRC2 DEST<br>
><br>
>>>> does not preserve hardlink a and b in DEST. Is there any<br>
>>>> chance to do that?<br>
><br>
>>>> Thanks<br>
><br>
>>>> lopiuh<br>
><br>
><br>
><br>
><br>
><br>
>> -- Please use reply-all for most replies to avoid omitting the<br>
>> mailing list. To unsubscribe or change options:<br>
>> <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a> Before posting,<br>
>> read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
> -- Please use reply-all for most replies to avoid omitting the<br>
> mailing list. To unsubscribe or change options:<br>
> <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a> Before posting,<br>
> read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
><br>
><br>
<br>
- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    <a href="tel:%28407%29%20252-6853" value="+14072526853">(407) 252-6853</a><br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)<br>
        Web page:                       <a href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br>
        PGP public key available on web site.<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.20 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
</div></div>iEYEARECAAYFAlH8P+MACgkQVKC1jlbQAQd5bgCghdn2lonMX6UB4vL2Y6T3xEzx<br>
GqwAoK1Lt3h6O6rNhcbCAHO+Ja7o0UzV<br>
=FFbQ<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div></div></div></div>