keep elkbase.tgz

In some rare occasions the .kibana index might be corrupted
(IOException) resulting in missing translogs and thus preventing
.kibana index from getting indexed (happens during a power failure). A
quick fix is to delete the contents in
“/data/elk/data/elasticsearch/nodes/0/indices/.kibana/*“, extract
elkbase.tgz to a temp folder (tar xvfz elkbase.tgz /tmp/) and copy “cp
-R /tmp/data/elk/data/elasticsearch/nodes/0/indices/.kibana/*
/data/elk/data/elasticsearch/nodes/0/indices/.kibana/“.
Make sure to stop service checks (“/etc/crontab”) and stop elk (service
elk stop) before doing this.
This commit is contained in:
t3chn0m4g3 2016-03-09 22:10:44 +01:00
parent f9e67c897c
commit c7516ae1f8

View file

@ -307,7 +307,7 @@ chmod 644 /root/tpot/data/upstart/*
# Let's copy some files
tar xvfz /root/tpot/data/elkbase.tgz -C /
rm /root/tpot/data/elkbase.tgz
cp /root/tpot/data/elkbase.tgz /data/
cp -R /root/tpot/bin/* /usr/bin/
cp -R /root/tpot/data/* /data/
cp -R /root/tpot/etc/issue /etc/