Help with new setup and data location

Hello,

Just installed on a newly built server Oracle 4.18.0-240.15.1.el8_3.x86_64.
Have installed and got it working but need to have the store etc on a specific drive, can anyone help with this - at the moment its not fully up and running so would like to move or recreate this in the data drive so the usr drive does not fill up and kill the server.

Is it just a case of editing the config.toml file to the new location? moving the influxdb folder to new location then restarting influxdb?

These are the settings in config.toml

bolt-path = “/var/lib/influxdb/influxd.bolt”
engine-path = “/var/lib/influxdb/engine”

Any help would be appreciated

Stu

Ok what I have done so far:

Stopped influxdb service

Moved the data with Rsync
rsync -a /var/lib/influxdb/ /data/influxdb/

change the locations in config.toml

bolt-path = “/data/influxdb/influxd.bolt”
engine-path = “/data/influxdb/engine”

Started Influxdb service

all seems to work but i renamed the original folder to bak and no data when pulling up the front end.

Could someone help with what I am missing please?

Currently restored it back to what it was, any help would be appreciated

Thanks in advance