How to mirror filesystems with millions of hardlinks?

Posted by Thomas Berger on Server Fault See other posts from Server Fault or by Thomas Berger
Published on 2011-06-28T08:10:50Z Indexed on 2011/06/28 8:24 UTC
Read the original article Hit count: 351

Filed under:
|
|
|

We have one big problem at the moment: We need to mirror a filesystem for one of our customers. Thats usual not really a problem, but here it is:

On this filesystem there is one folder with millions of hardlinks (yes! MILLIONS!). rsync requires more then 4 days to just build the filelist.

We use the following rsync options:

rsync -Havz --progress serverA:/data/cms /data/

Has anyone a idea how to speed up this rsync, or use alternatives? We could not use dd as the target disk is smaller then the source.

© Server Fault or respective owner

Related posts about linux

Related posts about Performance