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:
Denis Zhdanov (deniszhdanov) said : #1

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)

Tom (cailan) said : #2

It works, thank you.

Sup3r1 (salient) said : #3

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?

Piotr Popieluch (piotr1212) said : #4

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).

Sup3r1 (salient) said : #5

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