Skip to content

Instantly share code, notes, and snippets.

@ernstae
Last active September 27, 2015 11:44
Show Gist options
  • Save ernstae/23aa66f87b839bd1c7bd to your computer and use it in GitHub Desktop.
Save ernstae/23aa66f87b839bd1c7bd to your computer and use it in GitHub Desktop.
#!/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