Documentation:
3.0.2
You can move your Splunk index from one location to another.
Please note: do not try to break up and move parts of an index filesystem manually. If you need to subdivide an existing index, contact Splunk Support for assistance.
We'll use the example destination /foo/bar in the instructions below.
# mkdir /foo/bar # chown splunk /foo/bar/ # chmod 755 /foo/bar/
# ./splunk stop
# cp -r $SPLUNK_DB/* /foo/bar/
# vi $SPLUNK_HOME/bin/setSplunkEnv
SPLUNK_DB=/foo/bar
Please note: ensure that the path $SPLUNK_HOME/var/lib/splunk/searches exists. Splunk will save a small amount of index data here and without it your index will appear to vanish. This issue will be addressed in 3.0.2.
# ./splunk start
The Splunk Server should pick up where it left off, reading from and writing to the new copy of its old index filesystem.
Comments
Please note: ensure that the path $SPLUNK_HOME/var/lib/splunk/searches exists. Splunk will save a small amount of index data here and without it your index will appear to vanish. This issue will be addressed in 3.0.2. --> I'm guessing this a typo or an old comment.
Posted by gfoden on Nov 26 2007, 8:28am