Skip to content

Instantly share code, notes, and snippets.

@dfarrell-bloom
Last active January 2, 2016 03:18
Show Gist options
  • Save dfarrell-bloom/8242613 to your computer and use it in GitHub Desktop.
Save dfarrell-bloom/8242613 to your computer and use it in GitHub Desktop.
stop splunk, move data to ephemeral storage on /mnt, then symlink in and restart.
#
#
echo "This Script is deprecated. Please use the script from noctools/maintenance/splunk/ instead"
exit -1
#
#
#/opt/splunk/bin/splunk stop;
#mkdir /mnt/splunkvar;
#mv -v /opt/splunk/var/* /mnt/splunkvar;
#mount -o bind /mnt/splunkvar /opt/splunk/var;
#mv -v /volr/splunk/ /mnt/ && ln -s /mnt/splunk /volr/splunk
#/opt/splunk/bin/splunk start
#true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment