On Wed, 11 Jul 2007, Ofer Inbar wrote:

> With Matthias' method, you could add some more lines to the portion
> of /etc/init.d/gmetad that creates /dev/shm/rrds, to then rsync your
> RRDs from disk.  That shouldn't interface with later restarts because
> if the directory already exists, it won't rsync.  If you've done this,
> have you run into any problems?
> 
Right, so before you start gematd you need to restore the RRD archive
from disk to /dev/shm/rrds, and after you stop gmetad you need to save
data away.

So for save you can simply go ahead and tar everything under 
/dev/shm/rrds and put it somewhere on disk, say under 
/var/lib/ganglia/snapshots.  Then before you start gmetad in the init
script you simply untar the snap shot back to /dev/shm/rrds/. 

I hope this adds the last piece to the puzzle.

Regards,
Matthias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to