How do I set a different storage path and move the whisper database ?

Asked by Tom on 2017-02-14

I added a new virtual disk formatted with "ext4" and mounted on "/data". I modified the following settings:
File - /etc/carbon/carbon.conf:

LOCAL_DATA_DIR = /data/whisper/

File - /etc/graphite/

STORAGE_DIR = '/data/whisper'
WHISPER_DIR = '/data/whisper'

I'm running graphite on Ubuntu 14.04.05 LTS and I installed graphite-carbon version 10.9.12-3, graphite-web version 0.9.12 and apache2 version 2.4.7-1.

Question information

English Edit question
Graphite Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Denis Zhdanov (deniszhdanov) said :

STORAGE_DIR should be the same for both configs. E.g. set it to /data.
Rest is fine - set LOCAL_DATA_DIR and WHISPER_DIR to same location. Do not forget to check permissions - that dir should be writable for carbon daemon, and readable by your webserver user (www-data)

Revision history for this message
Tom (cailan) said :

It works, thank you.

Revision history for this message
Sup3r1 (salient) said :

Hi, I'm having the same issue. Data is successfully being written to the new location however my web apps are still looking in the old location.

My STORAGE_DIR's in my carbon.conf for each machine matches and LOCAL_DATA_DIR and WHISPER_DIR point to the same spot as you mentioned. As my webapp is on a different machine I have set the whisper files to 755.

Is there anything else you did please?

Revision history for this message
Piotr Popieluch (piotr1212) said :

make sure the has the same settings.

ps. the webapp needs to access the files from disk or through another webapp. (so configure the on the webapp which runs on the same system as carbon).

Revision history for this message
Sup3r1 (salient) said :

Correct, I completely forgot about the webapps on the cache machines. Thanks a lot!