Created
October 2, 2018 05:45
-
-
Save georgegoh/7382364427d8e42695144abad0d23f20 to your computer and use it in GitHub Desktop.
Print all the gluster-block devices in OpenShift's OCS storage subsystem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| GLUSTER_PODS=`oc get po -l glusterfs=storage-pod -n app-storage -o name` | |
| for pod in $GLUSTER_PODS | |
| do | |
| echo $pod | |
| oc -n app-storage rsh $pod targetcli ls iscsi 1 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment