
Originally Posted by
verdon
Hi,
I've been having server and load troubles slowly increasing for a few weeks and am preparing to move to another server. I believe my 6 year old server is just getting tired, but that's another story.
One problem I am having is that I haven't had a successful backup in about a week now. Pretty much all I am getting is 'Waiting for load to go down...' My load is avg is about 2-4 all the time and spiking to 5 minute avg's of 5-10 seven or eight times a day.
Is there someway I can get cpbackup to run regardless of load avg? I know I can run /scripts/cpbackup --force & but that still respects load. I've looked through the script and wonder if I should just change..
POSIX::nice(19);
.. but I'm unsure, and unsure what would be appropriate.
Any advice?
Thanks,
verdon
Disclaimer:
This is not advised as it will place tremendous load upon your server
With that said:
1. open /scripts/cpbackup in your favorite text editor.
2. find 'sub cpusystem' (without the quotes)
3. Change the nested if/elsif/else block to resemble:
Code:
else {
#if ( -e "$CPCONF{'root'}/bin/cpuwatch" ) {
# exec( "$CPCONF{'root'}/bin/cpuwatch", "$cpunum.0", @_ );
#}
#elsif ( -e "$CPCONF{'root'}/bin/logrunner" ) {
# exec( "$CPCONF{'root'}/bin/logrunner", "$cpunum.0", @_ );
#}
#else {
exec(@_);
#}
exit 1;
}
4. Save the file and exit the editor
5. execute /scripts/cpbackup --force
The code changes disable the use of the process load monitors (cpuwatch and logrunner).