This question shows research effort; it is useful and clear
24
Save this question.
Show activity on this post.
[root@centos /]# rsync -av --exclude thumbs /storage root@xx.27.1.xx:/storage
root@xx.27.1.xx's password:
building file list ...
I've been sitting for about an hour... it's 135GB of images and folders
/storage is a mounted ext3 scsi drive.
Is it normal for rsync to be sitting this long calculating the files/directories?
2,5614 gold badges30 silver badges54 bronze badges
6
rsync 2.x does build a full file list up front.
Add the -P option and you'll see a progress indicator.
If you think it really is hanging, in another terminal find the pid of rsync and then
Run
strace -p PIDand see what it's doing. (Hit ^C to stop.)Run
ps -o wchan PIDto see where it is in the kernel.
4
You should upgrade to rsync 3.0.x where you will get the benefit of incremental file lists, explained here. I am rsyncing millions of images (~200GB total) and saw an enormous speedup when going from rsync 2.x to 3.x.
Even so, it will probably take a long time to go through all that data. In my case it still takes over an hour between two pretty powerful DL380 G5 servers.
2
You noted earlier that du was hanging as well. Something is up with this filesystem, and rsync is hitting whatever du was.
One quick thing you can check is for kernel error messages indicating a disk problem. Type dmesg and see what's at the bottom.
The hang after the message "building file list..." can be caused by MTU mismatch, e.g. if you've set up the network interfaces with MTU 9000 but not the switch in between, small packets (like connecting to the rsync server) will pass through but not bigger ones (like sending the file list).
1
You must log in to answer this question.
Explore related questions
See similar questions with these tags.