[pve-devel] [RFC OPTIONAL pve-cluster 1/1] add arcsize to rrd
alexandre.derumier at groupe-cyllene.com
Thu Mar 16 07:53:47 CET 2023
> > > +++ b/debian/pve-cluster.postinst
> > > @@ -0,0 +1,6 @@
> > > +#!/bin/bash
> > > +
> > > +RRD_DB="/var/lib/rrdcached/db/pve2-node/`hostname`"
> > > +if [ -f $RRD_DB ] && [ `rrdtool info $RRD_DB | grep -q arcsize`
> > > ]; then
> > > + rrdtool tune $RRD_DB 'DS:arcsize:GAUGE:120:0:U'
> > > +fi
I totally miss it, but since rrdtool 1.5, indeed, it's possible to add
new datasource in existing rrd with "rrdtool tune" like in your patch
It was not possible in the past, that's why a new rrd was needed :)
More information about the pve-devel