<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get WWN for SAS attached storage in RHEL 6 in BladeSystem - General</title>
    <link>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5835379#M28004</link>
    <description>&lt;P&gt;Install the sg3_utils RPM ("yum install sg3_utils") and then run "sg_inq -i &amp;lt;disk_device&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use dm-multipath, the "multipath -ll" command will display the WWN too.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2012 15:51:09 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2012-10-16T15:51:09Z</dc:date>
    <item>
      <title>Get WWN for SAS attached storage in RHEL 6</title>
      <link>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5835153#M28003</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some BL460C G7's with a P700 attaching to an MSA2324sa.&amp;nbsp; The MSA2324 storage management utility is displaying the hosts with the WWN number presented from the SAS interface.&amp;nbsp; Does anyone know how to get this value from the host OS (Red Hat Enterprise Linux 6) so that I can correlate blades and host id's in the storage management utility?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 12:50:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5835153#M28003</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2012-10-16T12:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get WWN for SAS attached storage in RHEL 6</title>
      <link>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5835379#M28004</link>
      <description>&lt;P&gt;Install the sg3_utils RPM ("yum install sg3_utils") and then run "sg_inq -i &amp;lt;disk_device&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use dm-multipath, the "multipath -ll" command will display the WWN too.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5835379#M28004</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-10-16T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get WWN for SAS attached storage in RHEL 6</title>
      <link>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5836257#M28005</link>
      <description>&lt;P&gt;Thanks for the suggestion.&amp;nbsp; The problem with that is that it requires a volume to be presented to the host already.&amp;nbsp; My problem is that I have 6 new blades and thus 12 new host id's showing up in the storage management utility.&amp;nbsp; I don't have any way of knowing which host id corresponds to which blade.&amp;nbsp; I have similar setups, but they are using fibre channel.&amp;nbsp; On those, to determine the WWPN, I can do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;for f in 0 1; do
   echo "The WWPN for host port ${f} is:  `cat /sys/class/scsi_host/host${f}/device/fc_host/host${f}/port_name`"
done&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I would assume a similar setup is available for SAS, but I haven't found it yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I might have to present a volume to one of the host ids and just start trying to see which blade it shows up on and keep repeating until I figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 10:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5836257#M28005</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2012-10-17T10:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get WWN for SAS attached storage in RHEL 6</title>
      <link>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5839249#M28006</link>
      <description>&lt;P&gt;Sorry, I misunderstood and thought you were looking for disk WWIDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But... when you have a SAS mezzanine card, isn't the corresponding I/O module a SAS switch? Then the configuration of the switch module might be the place to look. (I admit I haven't ever configured a SAS switch. The documentation says the configuration tool is called VSM for Virtual SAS Manager, and it's accessible through the OA.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, the pathname&lt;/P&gt;&lt;PRE&gt;/sys/class/scsi_host/host${f}/device/fc_host/host${f}/port_name&lt;/PRE&gt;&lt;P&gt;in your script is more complex than necessary. You can shorten it to:&lt;/P&gt;&lt;PRE&gt;/sys/class/fc_host/host${f}/port_name&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2012 18:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5839249#M28006</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-10-19T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get WWN for SAS attached storage in RHEL 6</title>
      <link>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5842091#M28007</link>
      <description>&lt;P&gt;Ahh yes, I was getting lost in the soft links.&amp;nbsp; :)&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wound up going in to the Onboard Administrator and then to the interconnect bays.&amp;nbsp; I then just displayed the port mapping under the SAS switch.&amp;nbsp; That displayed the WWN for each SAS card (repeat on each switch to get the second connector WWN).&amp;nbsp; Armed with the number, I've been trying to search through the /sys file system to find the location, but haven't had any luck.&amp;nbsp; I've asked Red Hat if they know the location, but so far no answer.&amp;nbsp; Maybe SAS just doesn't get recorded?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I get an answer, I'll post it.&amp;nbsp; :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad V&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/bladesystem-general/get-wwn-for-sas-attached-storage-in-rhel-6/m-p/5842091#M28007</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2012-10-23T12:07:09Z</dc:date>
    </item>
  </channel>
</rss>

