Last active
September 27, 2015 11:44
-
-
Save ernstae/23aa66f87b839bd1c7bd to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
# author: ernstae@github.com | |
# purpose: for all the StorNext LUNs, find the dm- device name based on the output of the multipath command | |
for x in $(cvlabel -L | grep meta | awk {'print $1'}); do multipath -ll $x | sed -n 1p | awk {'print $3'} ; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment