I know this seems to be a recurrent question but it's been troubling for a while now, so if anyone has a brilliant idea please let me know.
My Setup
OS
- Debian Wheezy
HDDs
- 2 x 240GB SSD for system (sda & sdb in RAID1 - md0=/boot md1=/ md2=/tmp md3=swap)
- 2 x 2TB SATA for storage (sdc & sdd in RAID1 - md4=/home)
Scheduler Settings
- [cfq] for drives sda sdb sdc sdd (from my understanding ionice only works with cfq)
- cat /sys/block/md*/queue/scheduler returns
none
as the only option for all arrays
Remote Storage
- Simple remote storage space with no rsync server/deamon running on it (hence not using --rsync-path)
What I'm doing
- I am providing a backup service to a few users using a simple script (triggered by cron).
- The remote storage is automounted using automount & sshfs when the script runs.
- The rsync cmd I use is
nice -n 19 ionice -c2 -n7 rsync -rtvuczhq --delete --log-file=$LOG $SRC $DEST
The issue
While this works, there is a significant impact on the IO (cpu is fine) and simple music streams originating from the server are delayed/lagged along with any cmds requiring disk access.
The questions
Is there something obviously wrong in the rsync cmd I am using?
Is there anything I can do to reduce rsync's IO usage or prioritise other processes over it?
Merry Xmas, Happy New Year and Many thanks in advance..