Problem
I'm using a separate storage for my graph data that is generated by RRDCached to minimize the usage of the local disk. The problem is that rrdcached won't start and fails with this message:
Base directory (-b) resolved via file system links! Please consult rrdcached '-b' documentation! Consider specifying the real directory (/mnt/externalstorage/var/rrdtool/rrdcached) |
Solution
RRDcached has a built in symbolic link check that checks if the basedir (-b) is or contains a symbolic link, as this is not supported by the application.
For further information, consult the rrdcached manual:
# man rrdcached -b dir The daemon will change into a specific directory at startup. All files passed to the daemon, that are specified by a relative path, will be interpreted to be relative to this directory. If not given the default , "/tmp" , will be used. +------------------------+------------------------+ ! Command line ! File updated ! +------------------------+------------------------+ ! foo.rrd ! /tmp/foo.rrd ! ! foo/bar.rrd ! /tmp/foo/bar.rrd ! ! /var/lib/rrd/foo.rrd ! /var/lib/rrd/foo.rrd ! +------------------------+------------------------+ Paths given on the command line and paths actually updated by the daemon, assuming the base directory "/tmp" . WARNING: The paths up to and including the base directory MUST NOT BE symbolic links. In other words, if the base directory is specified as: -b /base/dir/somewhere ... then NONE of the following should be symbolic links: /base /base/dir /base/dir/somewhere |
If you need to have the basedir on a separate disk, consider using a bind mount instead of a symbolic link. See mount(8) man page for bind mount options. e.g.
$ man mount
.
.
The bind mounts.
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
mount --bind olddir newdir
or shortoption
mount -B olddir newdir
or fstab entry is:
/olddir /newdir none bind
.
.
-
Tags:
- rrdcached
- graphs
- OP5 Monitor
Comments
0 comments
Please sign in to leave a comment.