I run openfiler as a NAS and recently noticed significant performance degradation of my rynsc backups.
I have 2x1.5TB drives in RAID-1, backed up to a 2TB drive using rsync, on the same server. The 2TB drive is 96% full, and the raid is 83% full
Whilst I have been able to get 40MB/s throughput (samba to windows) to both the RAID and backup drive, I recently noticed that my backups were taking longer and longer each day, and that although a reboot restores the backup speed, perforamnce starts to degrade again day by day. SAMBA throughput has now dropped to 1MB/s on the 2TB drive.
After trying to umount the 2TB drive, I discovered that there are multiple 'updatedb' processes running, and I assume this might be because cron starts another job, before the prior job had finished. At the moment, I have 11 updatedb jobs running.
Here's the slocate.cron file
renice +19 -p $$ >/dev/null 2>&1
/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net"
Has anyone got any suggestions as to how to solve the problem (other than making more space available on the 2TB drive)?
Should I run updatedb weekly instead? Or not at all? I have never really bother using 'locate' before, so does it matter if I run updatedb?
Should I test to see if an updatedb process is already running, before starting updatedb? My shell scripting writing ability is limited, so hints are welcome.
How long does updatedb take to update 2TB of files?