I'm currently in the process of increasing the scale of my yearly RRA. Consequently I'll have to resize all of my existing RRDs. This process is very well documented on this forum and has been a fantastic help to me. Unfortunately I am getting an error with the resize.pl script and am stuck.
I run resize.pl against an rrd. It creates the scratch files, but then dies when it tries to put the resized file into the target directory. I have kglob commented out in resize.pl but I don't think that could be causing the issue.
I'm running it as root to bypass any permissions issues. I've tried it on two different cacti servers, and on different RRD files. The result is always the same.
Command with Info/Dry run is:
Code: Select all
./resize.pl -f "/cacti/rra/resized_95thcisco_traffic_in_4356.rrd" -s 797 -o /home/joan/resized/ -g 3883 -i
-- RRDTOOL INFO resized_95thcisco_traffic_in_4356.rrd ...
ds[traffic_in].type = "COUNTER"
ds[traffic_out].type = "COUNTER"
rra[0].cf = "AVERAGE"
rra[0].rows = 500
rra[1].cf = "AVERAGE"
rra[1].rows = 600
rra[2].cf = "AVERAGE"
rra[2].rows = 700
rra[3].cf = "AVERAGE"
rra[3].rows = 775
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[5].cf = "MAX"
rra[5].rows = 500
rra[6].cf = "MAX"
rra[6].rows = 600
rra[7].cf = "MAX"
rra[7].rows = 700
rra[8].cf = "MAX"
rra[8].rows = 775
rra[9].cf = "MAX"
rra[9].rows = 797
user time: 0.00 system time: 0.00 real time: 0.00
Code: Select all
./resize.pl -f "/cacti/rra/resized_95thcisco_traffic_in_4356.rrd" -s 797 -o /home/joan/resized/ -g 3883 -d 2
function make_output_dir called, parms: /home/joan/resized/
function make_output_dir for /home/joan/resized/ returns: File exists
function get_rras called, parms: /cacti/rra/resized_95thcisco_traffic_in_4356.rrd 797
function resize called, parms: /cacti/rra/resized_95thcisco_traffic_in_4356.rrd 4 9 3883 /home/joan/resized/
-- RRDTOOL RESIZE resized_95thcisco_traffic_in_4356.rrd RRA (4 9 ) growing 3883function file_size called, parms: orig.rrd
ERROR: attempting to write beyond end of file at ./resize.pl line 160
-rw-r--r-- 1 root root 173340 Jul 30 12:04 orig.rrd
-rw-r--r-- 1 root root 235468 Jul 30 12:04 resize.rrd
I'm running cacti 0.8.7e and rrdtool 1.4.1-1.
I've found only one other post online with this error -
http://osdir.com/ml/debian-bugs-dist/20 ... 05757.html
and noone ever replied to that dude
My OS is CentOS 5.4 and I have perl v5.8.8. Has anyone any ideas? This script looks perfect for what I need to do..
Regards,
Joan