Skip to content

Instantly share code, notes, and snippets.

@jcantrill
Last active July 24, 2018 20:28
Show Gist options
  • Save jcantrill/18aefc9741326ec55e0c3b7f9df5e175 to your computer and use it in GitHub Desktop.
Save jcantrill/18aefc9741326ec55e0c3b7f9df5e175 to your computer and use it in GitHub Desktop.
Unassiged shards
#!/bin/bash
pod=$1
oc exec -c elasticsearch $pod -- es_util --query=_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment