I have a freshly installed Ubuntu-server which is ought to be the new backup-server for our VM-storage. The server has 4 nics, 2 of them 10Gbit (in fact an intel x540-T2 with the newest driver available) which are used to connect to the SAN. I have the nfs-share mounted locally and compared speed-differences while copying a directory with ~30 files, around 15 vm-images and corresponding log files. The Images are between 8 GB and 600 GB in size.
Using:
cp -rf /mnt/nfs-share /backup-storage/
bmon shows consequently around 600 MiB/s.
Using
rsync -av /mnt/nfs-share /backup-storage/
bmon shows some packets in the first seconds, halts for about 30 seconds and than builds up to about 60-75 MiB/s. CPU is around 60%.
What should/could I change to use rsync
with the same performance as cp
?
I've not finished testing yet. The backup with rsync would be more convinient, but I can also write a script using cp, dd or whatever comes to mind. Now I want to test various possibilities on different filesystems to evaluate what suits best.
– soulpath Sep 19 '13 at 11:11Thanks for your advice!
– soulpath Sep 19 '13 at 11:45rsync
does not read the target file when copying unless you explicitly enable this counterproductive operation with--whole-file
. In this situation it's just like a very slowcp
. – Chris Davies Mar 07 '18 at 17:22