Hello everyone, today I'm going to introduce how to configure FC-SAN with Huawei 5300 V3. Let's learn about it together.
1 FC-SAN networking mode
Divided into the following three types:
Direct
Single exchange
Double exchange
2 HBA card for WWN type
WWNN node name
WWPN port name
To query the WWPN number on Linux:
cat /sys/class/fc_host/host3/node_name
Specifically, the common operating system FC HBA card port WWN view method such as under Windows,
In Windows system, you can use the management software provided by the FC HBA card manufacturer to view the WWN number of the fiber adapter, as follows:
Qlogic:SANsurfer
Emulex:HBAnyware
For other operating systems, refer to the following information [1].
3 Fiber Optic Switch
3.1 Port types of optical fiber switches
The F_Port: F port is also known as the fiber-optic network port and is used to connect servers and storage devices to switches.
The E_Port: E port is also known as the extension port and is used for connections between switches.
FL_PORT: A switch port of an FC switch can be used as part of a loop, and data can be transferred from the switch to the ring. A switch port that works well in a loop environment is called "FL_port";
G_Port: universal port G;
A device that is connected to port F of the switch is a node, which in fibre channel terminology is considered to be an N port or, in the case of an arbitrator loop topology, an NL port. The switch identifies these Fibre Channel nodes by a specific N port or NL port name;
3.2 The concept of Zone and the principle of Zone division
Zone is similar to VLAN; A Zone is a collection of port or device names that can be interchanged; Devices in a Zone can only communicate with devices in a Zone; A device can be in more than one Zone at a time.
When the switch plans the zones, it divides them into small zones, that is, each Zone contains only one starter and one target.
A ZONE contains only one storage port, one storage port, one storage port Principle of mainframe side ports.
3.3 Log in to the switch using the console port
Switch default user name: admin password: Huawei12#$
View the admin IP address: iPaddrShow
Configuration management IP address: ipaddrset
Eg: IPADDRSET - IPv4-Add-Ethip X.X.X.X-Ethmask 255.255.255.0 - GWYIP X.X.X.X
Note: You can use IE browser to access the IP properly configured. You need to install Java plugin
3.4 Configure SAN on storage
To create a host group, select the initiator type "FC" and do the same as in iSCSI.
4 LUN
In SAN (Storage Area Network), the Logical Unit Number (LUN) is the Number used to identify a Logical Unit that is a device addressed by SCSI. In other words, the storage system partitions the physical hard disk into logical addresses that allow access by the host. Such a partition is called a LUN. The term LUN is also commonly used to refer to logical disks created on SAN storage. [3]
5 mount the LUN on Windows and Linux
5.1 Windows
Open Device Manager - Disk Management and scan the disk.
5.2 Linux
5.2.1 Scan the disk first
hot_add Fdisk -l # View the disk
5.2.2 mount the LUN
Fdisk /dev/sde # partition the disk Mkfs.ext3 /dev/sde1 # Create a file system Mkdir test # Create a directory Mount /dev/sde1 / MNT /test # mount disk to test directory
At the same time, users can also query the corresponding relationship between the storage LUN and the disk on the Linux host.
References
[1]EKB1000056458.FAQ-Checking the WWN of FC HBA Ports in Common Operating Systems[EB/OL].https://support.huawei.com/enterprise/zh/knowledge/EKB1000056458#contentDesc,2014-10-17.
[2]EKB1000056593.FAQ-Querying the Mapping Between Storage LUNs and Disks on Linux Hosts[EB/OL].https://support.huawei.com/enterprise/zh/knowledge/EKB1000056593,2014-10-17
Thank you for your patience in reading this article. Thank you.





