Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the WWN number and connection status of HBA card under redhat linux6.5

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to check the WWN number and connection status of HBA card under redhat linux6.5. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

There are different ways to view FC HBA card information in different operating systems. This paper introduces how to view FC HBA card information under REDHAT LINUX6.5 system for reference when implementing related projects.

Generally, when configuring disk arrays, virtual tape libraries and other devices with FC HBA cards, it is often necessary to check the WWN information of FC HBA cards for port addition, ZONE division and other operations. correctly checking the information of FC HBA cards is the premise to ensure smooth construction.

FC HBA, also known as Fibre Channel Host Bus Adapter, fibre Channel host adapter, referred to as optical fiber adapter. In FC network environment, hosts need to use an interface card when they need to connect with FC network and FC storage devices (SAN disk array), just as Ethernet card is needed to connect Ethernet. This interface card is called FC HBA, or FC HBA card for short.

Like the MAC address of the Ethernet card, there is a unique logo on HBA: WWN (World Wide Name), and there are two kinds of WWN on FC HBA:

① Node WWN (WWNN): each HBA has its own unique Node WWN

② Port WWN (WWPN): each port on each HBA card has its own unique Port WWN.

Because communication is done through port, you need to use WWPN instead of WWNN in most cases. The length of WWN is 8bytes, expressed in hexadecimal and separated by colons, for example: 50:06:04:81:D6:F3:45:42:23

View HBA card information in REDHAT LINUX6.5

You need to enter the following directory / sys/class/fc_host/host*

Check the contents of the port_name file to see the WWN information of the corresponding FC HBA card:

# cat / sys/class/fc_host/host5/port_name

0x210000e08b907955

0x210000e08b902856

# cat / sys/class/fc_host/host7/port_name

0x210000e08c907925

0x210000e08c902826

How do you know the status of HBA card?

# cat / sys/class/fc_host/host5/port_state

Online is online normally.

# cat / sys/class/fc_host/host7/port_state

Linkdown is abnormal or not connected

The above content is how to check the WWN number and connection status of HBA card under redhat linux6.5. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report