In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
AIX:
1. Obtain the fiber optic devices connected to the AIX host:
# lsdev-Cc adapter-S a | grep fcs
Fcs0 Available 09-08 FC Adapter
Fcs1 Available 09-09 FC Adapter
Among them, there are two fiber optic cards .fcs0 and fcs1.
2. Check the WWN number of the fiber card.
# lscfg-vpl fcs0
Fcs0 U787B.001.DNWG664-P1-C1-T1 FC Adapter
Part Number.10N8620
SerialNumber.1B74404468
Manufacturer.001B
EC Level.A
Customer Card ID Number.5759
FRU Number. 10N8620
Device Specific. (ZM) .3
NetworkAddress.10000000C96E2898
ROS Level and ID.02C82138
Device Specific. (Z0) .1036406D
Device Specific. (Z1). 00000000
Device Specific. (Z2). 00000000
The part marked red is the WWN number of the optical fiber card.
HP-Unix:
1. List the fiber card devices connected to the HP computer:
# ioscan-fnC fc
Class I H/W Path Driver S/W State H/WType Description
=
Fc 00 / 3-1-0 fcd CLAIMED INTERFACE HP A6826-600012Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/ dev/fcd0
Fc 1 0Accord 3 Compact 1 fcdCLAIMED INTERFACE HP A6826-60001 2GbDual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)
/ dev/fcd1
As you can see from this figure, / dev/fcd0 and / dev/fcd1 are two optical fiber cards
2. Check the WWN number of the fiber card.
# fcmsutil / dev/fcd0
Vendor ID is = 0x001077
Device ID is = 0x002312
PCISub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x0012ba
PCI Mode = PCI-X 133 MHz
ISP Code version = 3.3.18
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0xa10500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b00001db241
N_Port PortWorld Wide Name = 0x50060b00001db240
Switch PortWorld Wide Name = 0x205e000dec0e2e00
Switch NodeWorld Wide Name = 0x2001000dec0e2e01
Driver state = ONLINE
Hardware Path is = 0Action3Compact 1Universe 0
Maximum Frame Size = 2048
Driver-Firmware Dump Available= NO
Driver-Firmware Dump Timestamp= N/A
Driver Version = @ (#) libfcd.a HP Fibre Channel ISP 23xx & 24xx DriverB.11.23.04 / ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Oct 18 2005 Audio 08 purl 21 purl 11
The red part shows the WWNN and WWPN numbers of the HBA card, as well as the WWN number of the fiber switch port to which the HBA card is connected.
Solaris:
Luxadm commands are used on solaris to manage storage devices and fiber optic related devices.
1. If you query existing storage devices and fiber optic devices, you can read the WWN number including disk devices.
# luxadm probe
2. Check the prot of HBA to get the port value and connection properties of HBA card:
# luxadm-e port
/ devices/pci@0,0/pci1022,7450@2/pci1077101@1/fp@0,0:devctl NOT CONNECTED
/ devices/pci@0,0/pci1022,7450@2/pci1077101@1,1/fp@0,0:devctl CONNECTED
You can see that only one optical fiber card is connected to the storage device.
3. Select the connected HBA card and check its WWN number
Format: # luxadm-edump_map device port. The port value can be obtained from step 2. The following figure is shown:
# luxadm-e dump_map/devices/pci@0,0/pci1022,7450@2/pci1077101@1/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
000 210000e08b19827a 200000e08b19827a 0x1f (Unknown Type,Host Bus Adapter)
Redhat:
In Redhat, device management information is stored in the kernel, the / proc directory. So we generally query CPU, memory, disk and other information, also in this directory. The HBA card-related information is stored in the / proc/scsi/qla2300/ directory, and different devices correspond to different file names, such as
# grep scsi/ proc/scsi/qla2300/1
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0scissors retrycles Q = 0
Scsi-qla0-adapter-node=200000e08b9cf661
Scsi-qla0-adapter-port=210000e08b9cf661
You can find the WWNN and WWPN numbers of the first HBA card in the system.
Node WWN and Port WWN in HBA card
HBA, literally means host bus adapter. I think it is now called FC HBA in a narrow sense, and the HBA is Fibre Channel HostBus Adapter, because the network card can also be called NETWORK HBA. In FC networks, hosts (such as servers) need to use an interface card when they need to connect with FC networks and FC storage devices (such as SAN), just as Ethernet cards are needed to connect to Ethernet. This kind of interface card is called FC HBA, or HBA for short.
Like the MAC address of the Ethernet card, there is a unique identity on the HBA, which is WWN (World Wide Name). There are two types of WWN on HBA:
Node WWN (WWNN): each HBA has its own unique Node WWN
It is usually used in solaris
# luxadm probe
All the results are NODE WWN. Based on how many NODE WWN you have, you will know how many FC HBA cards you have.
Port WWN (WWPN): each port on a 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 the WWN is 8bytes, represented in hexadecimal and separated by colons. For example: 50:06:04:81:D6:F3:45:42
The method of viewing FC HBA Card Information
When configuring disk array or virtual tape library, it is often connected with the host through FC interface, so it involves the viewing of FC HBA card. This paper summarizes and collates this problem.
I. Windows system
In the Windows system, you can use the management software provided by the FC HBA card manufacturer to view the WWN number of the optical adapter, as follows:
Qlogic:SANsurfer
Emulex:HBAnyware
II. SuSE Linux 9
Look at the contents of the / proc/scsi/qla2xxxport_name file to see the WWN information of the corresponding FC HBA card:
# cat/sys/class/fc_host/host*/port_name
0x210000e08b907955
0x210000e08b902856
IV. RedHat Linux AS4
# grep scsi/ proc/scsi/qla2xxx/3
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Scsi-qla0-adapter-node=20000018822d7834
Scsi-qla0-adapter-port=21000018822d7834
Scsi-qla0-target-0=202900a0b8423858
Scsi-qla0-port-0=200800a0b8423858:202900a0b8423858:0000e8:1
5. RedHat Linux AS5
# cat/sys/class/fc_host/hostx/port_name
VI. Solaris 10
The fcinfo command is provided to view the WWN information of FC HBA using fcinfohba-port:
# fcinfo hba-port
View the path and connection status of the fiber card port:
# luxadm-e port
View the WWN of the port:
# luxadm-e dump_mapfibre_channel_HBA_port / / output of the previous command
# prtconf-vp | grep-I wwn
# prtpicl-v | grep-I wwn (prtpicl-print PICL tree)
VI. HP-UX
# ioscan-funCfc / / find HBA card, and then use fcmsutil to view HBA card information
# fcmsutil / dev/fcd0 (1)
7. AIX
# lsdev-Ccadapter / / find the HBA card
# lscfg-vpl fcs0 | grep network address
Note:
The first number of Emulex's HBA's WWN is 1.
The first number of Qlogic's HBA's WWN is 2.
The first number of HP Tachyon HBA's WWN is 5
Qlogic parameter
Connection Options
0-Loop only
1-Point-to-point only
2-Loop preferred,otherwise point-to-point.
As recommended by the server, select loop only when DAS is directly connected to storage and point-to-point only when connecting storage through a fibre switch
Data Rate
This configuration item defines the FC port rate
0-1Gb/s
1-2Gb/s
2-Auto
From: http://blog.chinaunix.net/uid-561779-id-3080758.html
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.