Code

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