>>> On 9/17/2015 at 07:14 AM, Christer Solskogen <[email protected]>
wrote: 
> Is there a simple way of matching /dev/sdX to the correct FCP lun?

lszfcp -HDP > tempfile

lsscsi | while read hcd ibm model something devname; do base=$(echo $hcd | cut 
-c2-17) ; echo $devname $(grep $base tempfile | cut -f1 -d" " | tr "/" " "); 
done

rm tempfile


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to