|
@@ -151,11 +151,12 @@ date; salt caasp-splunk-sh system.reboot --async
|
|
|
watch "salt caasp-splunk-sh status.uptime --out=txt"
|
|
|
|
|
|
# Reboot one indexer at a time (ping optional)
|
|
|
-salt caasp-splunk-idx-i-<IDHERE> test.ping --out=txt
|
|
|
-date; salt caasp-splunk-idx-i-<IDHERE> system.reboot --async
|
|
|
+salt 'caasp-splunk-idx-i-<IDHERE>' test.ping --out=txt
|
|
|
+salt 'caasp-splunk-idx-i-<IDHERE>' cmd.run 'df -h | egrep "[890][0-9]\%"'
|
|
|
+date; 'salt caasp-splunk-idx-i-<IDHERE>' system.reboot --async
|
|
|
|
|
|
# Indexers take a while to restart
|
|
|
-watch "salt caasp-splunk-idx-i-<IDHERE> status.uptime --out=txt"
|
|
|
+watch "salt 'caasp-splunk-idx-i-<IDHERE>' status.uptime --out=txt"
|
|
|
```
|
|
|
|
|
|
#### Wait for the Splunk indexing cluster to have four green checkmarks
|
|
@@ -170,24 +171,24 @@ Repeat the above patching steps for the additional indexers, waiting for `four`
|
|
|
|
|
|
```shell
|
|
|
# Do the second indexer
|
|
|
-salt caasp-splunk-idx-i-<IDHERE> test.ping --out=txt
|
|
|
-salt caasp-splunk-idx-i-<IDHERE> cmd.run 'df -h | egrep "[890][0-9]\%"'
|
|
|
-date; salt caasp-splunk-idx-i-<IDHERE> system.reboot --async
|
|
|
+salt 'caasp-splunk-idx-i-<IDHERE>' test.ping --out=txt
|
|
|
+salt 'caasp-splunk-idx-i-<IDHERE>' cmd.run 'df -h | egrep "[890][0-9]\%"'
|
|
|
+date; salt 'caasp-splunk-idx-i-<IDHERE>' system.reboot --async
|
|
|
|
|
|
# Indexers take a while to restart
|
|
|
-watch "salt caasp-splunk-idx-i-<IDHERE> status.uptime --out=txt"
|
|
|
+watch "salt 'caasp-splunk-idx-i-<IDHERE>' status.uptime --out=txt"
|
|
|
```
|
|
|
|
|
|
#### Wait for the Splunk cluster to have four green checkmarks
|
|
|
|
|
|
```shell
|
|
|
# Do the third indexer
|
|
|
-salt caasp-splunk-idx-i-<IDHERE> test.ping --out=txt
|
|
|
-salt caasp-splunk-idx-i-<IDHERE> cmd.run 'df -h | egrep "[890][0-9]\%"'
|
|
|
-date; salt caasp-splunk-idx-i-<IDHERE> system.reboot --async
|
|
|
+salt 'caasp-splunk-idx-i-<IDHERE>' test.ping --out=txt
|
|
|
+salt 'caasp-splunk-idx-i-<IDHERE>' cmd.run 'df -h | egrep "[890][0-9]\%"'
|
|
|
+date; salt 'caasp-splunk-idx-i-<IDHERE>' system.reboot --async
|
|
|
|
|
|
# Indexers take a while to restart
|
|
|
-watch "salt caasp-splunk-idx-i-<IDHERE> status.uptime --out=txt"
|
|
|
+watch "salt 'caasp-splunk-idx-i-<IDHERE>' status.uptime --out=txt"
|
|
|
|
|
|
# Verify all indexers rebooted (check for seconds less than a few thousand):
|
|
|
salt 'caasp-splunk-idx-i-*' status.uptime --out=txt
|