Skip to content

Instantly share code, notes, and snippets.

@georgegoh
Created October 2, 2018 05:45
Show Gist options
  • Select an option

  • Save georgegoh/7382364427d8e42695144abad0d23f20 to your computer and use it in GitHub Desktop.

Select an option

Save georgegoh/7382364427d8e42695144abad0d23f20 to your computer and use it in GitHub Desktop.
Print all the gluster-block devices in OpenShift's OCS storage subsystem
#!/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