1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>rrdresize</title>
5 <link rev="made" href="mailto:root@localhost" />
6 </head>
8 <body style="background-color: white">
10 <p><a name="__index__"></a></p>
11 <!-- INDEX BEGIN -->
12 <!--
14 <ul>
16 <li><a href="#name">NAME</a></li>
17 <li><a href="#synopsis">SYNOPSIS</a></li>
18 <li><a href="#description">DESCRIPTION</a></li>
19 <li><a href="#notes">NOTES</a></li>
20 <li><a href="#author">AUTHOR</a></li>
21 </ul>
22 -->
23 <!-- INDEX END -->
25 <p>
26 </p>
27 <h1><a name="name">NAME</a></h1>
28 <p>rrdresize - alters the size of an RRA and creates a new .rrd file</p>
29 <p>
30 </p>
31 <hr />
32 <h1><a name="synopsis">SYNOPSIS</a></h1>
33 <p><strong>rrdtool</strong> <strong>resize</strong> <em>filename</em> <em>rra-num</em> <strong>GROW</strong><em>|</em><strong>SHRINK</strong> <em>rows</em></p>
34 <p>
35 </p>
36 <hr />
37 <h1><a name="description">DESCRIPTION</a></h1>
38 <p>The <strong>resize</strong> function is used to modify the number of rows in
39 an <strong>RRA</strong>.</p>
40 <dl>
41 <dt><strong><a name="item_filename"><em>filename</em></a></strong><br />
42 </dt>
43 <dd>
44 the name of the <strong>RRD</strong> you want to alter.
45 </dd>
46 <p></p>
47 <dt><strong><a name="item_rra_2dnum"><em>rra-num</em></a></strong><br />
48 </dt>
49 <dd>
50 the <strong>RRA</strong> you want to alter. You can find the number using <strong>rrdtool info</strong>.
51 </dd>
52 <p></p>
53 <dt><strong><a name="item_grow"><strong>GROW</strong></a></strong><br />
54 </dt>
55 <dd>
56 used if you want to add extra rows to an RRA. The extra rows will be inserted
57 as the rows that are oldest.
58 </dd>
59 <p></p>
60 <dt><strong><a name="item_shrink"><strong>SHRINK</strong></a></strong><br />
61 </dt>
62 <dd>
63 used if you want to remove rows from an RRA. The rows that will be removed
64 are the oldest rows.
65 </dd>
66 <p></p>
67 <dt><strong><a name="item_rows"><em>rows</em></a></strong><br />
68 </dt>
69 <dd>
70 the number of rows you want to add or remove.
71 </dd>
72 <p></p></dl>
73 <p>
74 </p>
75 <hr />
76 <h1><a name="notes">NOTES</a></h1>
77 <p>The new .rrd file, with the modified RRAs, is written to the file
78 <strong>resize.rrd</strong> in the current directory. <strong>The original .rrd file is not
79 modified</strong>.</p>
80 <p>It is possible to abuse this tool and get strange results
81 by first removing some rows and then reinserting the same amount (effectively
82 clearing them to be Unknown). You may thus end up with unknown data in one
83 RRA while at the same timestamp this data is available in another RRA.</p>
84 <p>
85 </p>
86 <hr />
87 <h1><a name="author">AUTHOR</a></h1>
88 <p>Alex van den Bogaerdt <<a href="mailto:alex@vandenbogaerdt.nl">alex@vandenbogaerdt.nl</a>></p>
90 </body>
92 </html>