On 12/09/2013 07:57 PM, Karl Kingston wrote:
We have an XIV connected to 2 switches which in turn is connected to our
z10 through 4 adapters.
We have defined 5 luns for use under SLES11SP2.
Right now, we are using YaST to define all of the connections. This
seems to be cumbersome.
Is there a way for us to to scan and define each lun without having to do
this manually?
If your FCP devices are NPIV-enabled and you use strict zoning
(single-intiator zoning in the best case) with strict LUN masking, you
can make use of zfcp auto LUN scanning:
http://www.mail-archive.com/[email protected]/msg64017.html
(NPIV is a hard requirement for auto LUN scan, the other requirements
are best practice because otherwise you would attach everything visible
in your fabric which might cause competition for the same LUNs in
different Linux images which is dangerous because of potential data
corruption (unless one uses a cluster file system intentionally).)
In all cases you can use lsluns from s390-tools to discover LUNs
available on your storage target(s) and use SLES' command line tools
(zfcp_host_configure and) zfcp_disk_configure (also s390-tools) to
configure the LUNs both dynamically and persistently. The two latter
tools are actually the backend of "yast zfcp" and can be used directly
on the command line.
I've heard users crafting their own scripting around lsluns and
zfcp_*_configure, but I would only recommend to do so with perfect
zoning and LUN masking (especially if not using NPIV).
--
Mit freundlichen Grüßen / Kind regards
Steffen Maier
Linux on System z Development
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------
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/