[rrd-users] Re: Help! Resize difficulties.
we decided that we wanted the 5minave area to be huge (6 months) so that we could search back to a specific time to get exact readings, not averages. The only way to do that without losing current data was to resize it. I tried just resizing to the final size but it graphed a large gap where the new empty records were. I will modify the script to check the size before it resizes so it won't grow after the 6 month mark. -Original Message- From: Clifton Royston [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2000 18:42 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Help! Resize difficulties. On Fri, Dec 08, 2000 at 11:52:54AM -0500, [EMAIL PROTECTED] wrote: > > I resize RRA 0 of several RRDs every 5 minutes. > I run this script with cron. I'm curious - why would you want to do this? What is the advantage of constantly changing the RRA size, vs. figuring out the "right" size you would want and making it that size to start with? Just wondering, -- Clifton -- Clifton Royston -- LavaNet Systems Architect -- [EMAIL PROTECTED] The named which can be named is not the Eternal named. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
On Fri, Dec 08, 2000 at 11:52:54AM -0500, [EMAIL PROTECTED] wrote: > > I resize RRA 0 of several RRDs every 5 minutes. > I run this script with cron. I'm curious - why would you want to do this? What is the advantage of constantly changing the RRA size, vs. figuring out the "right" size you would want and making it that size to start with? Just wondering, -- Clifton -- Clifton Royston -- LavaNet Systems Architect -- [EMAIL PROTECTED] The named which can be named is not the Eternal named. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
I've never had a problem. I've been doing it for about 4 months. -Original Message- From: Alex van den Bogaerdt [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2000 17:58 To: [EMAIL PROTECTED] Cc: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Help! Resize difficulties. Frank Swasey wrote: > On Fri, 8 Dec 2000 [EMAIL PROTECTED] wrote: > > rm $rrdfile > > cp resize.rrd $rrdfile > > rm resize.rrd > > Why did you do those two commands instead of > mv resize.rrd $rrdfile Please be aware that a new RRD file has been created for a purpose. It should be checked and, if the file is OK, be moved/copied/whatever over the original RRD. This has been discussed way back in the past on the mail list. Also, the documentation has been adjusted, it will be included in the next release of RRDtool. cheers -- __ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +--+ | Technical questions sent directly to me will be nuked. Use the list. | +--+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
Frank Swasey wrote: > On Fri, 8 Dec 2000 [EMAIL PROTECTED] wrote: > > rm $rrdfile > > cp resize.rrd $rrdfile > > rm resize.rrd > > Why did you do those two commands instead of > mv resize.rrd $rrdfile Please be aware that a new RRD file has been created for a purpose. It should be checked and, if the file is OK, be moved/copied/whatever over the original RRD. This has been discussed way back in the past on the mail list. Also, the documentation has been adjusted, it will be included in the next release of RRDtool. cheers -- __ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +--+ | Technical questions sent directly to me will be nuked. Use the list. | +--+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
On Fri, 8 Dec 2000 [EMAIL PROTECTED] wrote: > #!/bin/bash > for rrdfile in $1/*.rrd ; do > echo Before > ls $rrdfile -s > rrdtool resize $rrdfile $2 $3 $4 > rm $rrdfile > cp resize.rrd $rrdfile > rm resize.rrd Why did you do those two commands instead of mv resize.rrd $rrdfile > echo After > ls $rrdfile -s > echo > done -- Frank Swasey |\ _,,,---,,_ Systems Programmer ZZZzz /,`.-'`'-. ;-;;,_ University of Vermont |,4- ) )-,_. ,\ ( `'-' http://www.uvm.edu/~fcs'---''(_/--' `-'\_) -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
I resize RRA 0 of several RRDs every 5 minutes. I run this script with cron. It resizes every rrd in a directory. To take care of several directories with one cron job, I actually run a script that calls this script several times but the directory is different each time. This script resizes, then deletes the original, then copies the resize.rrd to the originals name. It also lists the sizes before and after. the command line is: resize-rrd ./cricket-data/path-to-rrd-files 0 GROW 1 the params are Directory, RRA, GROW/SHRINK, Records here's the script: #!/bin/bash for rrdfile in $1/*.rrd ; do echo Before ls $rrdfile -s rrdtool resize $rrdfile $2 $3 $4 rm $rrdfile cp resize.rrd $rrdfile rm resize.rrd echo After ls $rrdfile -s echo done -Original Message- From: Sean R McNamara [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2000 15:57 To: [EMAIL PROTECTED] Cc: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Help! Resize difficulties. Mike Fisher wrote: > > I ran into this earlier in the week. The resize does not modify the > existing RRD file, it creates a new one in the current directory called > resize.rrd with the new size and the old data. Just move this over your > old on and you should be ok. This should probably be dealt with in the > manual. > > Mike Thank you Mike, that was the problem; and it seems to be working at this point. Now it's just a matter of waiting while my script updates all of the rrds. I'm not sure if you'd happen to know -- but, is there a convenient way to merge a backup of the the overwritten data with the current database? There is no overlapping between the two, and unfortunately there is a missing gap of about 2 weeks, but there's nothing to be done about that now. Thanks again Mike, ..Sean. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
Mike Fisher wrote: > > I ran into this earlier in the week. The resize does not modify the > existing RRD file, it creates a new one in the current directory called > resize.rrd with the new size and the old data. Just move this over your > old on and you should be ok. This should probably be dealt with in the > manual. > > Mike Thank you Mike, that was the problem; and it seems to be working at this point. Now it's just a matter of waiting while my script updates all of the rrds. I'm not sure if you'd happen to know -- but, is there a convenient way to merge a backup of the the overwritten data with the current database? There is no overlapping between the two, and unfortunately there is a missing gap of about 2 weeks, but there's nothing to be done about that now. Thanks again Mike, ..Sean. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi