One way is to look at /sys/class/fc_host/hostX/node_name for WWNN
and port_name for WWPN. With multiple HBAs (including non-fibre
HBAs), some of which might not be used for the drives (or even for
fibre), you might have to match PCI locations to the hostX links.
(E.g., I've got a DL360 G7; host0 is the on-board SAS adapter and
the QLogic HBAs are host1 and host2.)
You can also use "systool" to format all the /sys/... stuff more
nicely. E.g. "systool -c fc_host -v -d host1"
Depending on your HBA model, there may be vendor-specific tools to
provide the info, as well, such as QLogic's scli (SANSurfer CLI).
Of course, if you know which SAN switch ports your servers are
connected to, you can get the WWNs from the switches, too.
=Dave
Lee, Gary wrote:
>
> RHEL v 6. Hp dl585 server.
>
> I need to get some rezoning done to allow our new intel based tsm
> servers to see the ts1120 drives in our computer room.
>
> How do I determine the wwpn for the hbas connected to the drives?
>
> Looked through udev and its associated things, and just haven't found
> what I need.
> Thanks for any assistance.
>
--
Hello World. David Bronder - Systems Architect
Segmentation Fault ITS-EI, Univ. of Iowa
Core dumped, disk trashed, quota filled, soda warm. david-bronder AT uiowa
DOT edu
|