Linux system view wwn number trick

  

In the Linux system, when the PC server host and FC storage connection, need to involve the wwn number, then how to view the wwn number? The following small series introduces you to the method of viewing the wwn number under Linux systems.

When the PC server to connect hosts and FC storage, generally require the installation of HBA card, the interface between the two is an important parameter is the number wwn.

View Method:

1. SuSE Linux 9

View /proc/scsi/qla2xxx/* and filter with the adapter-port keyword to view the FC HBA Card WWN information:

# cat /proc/scsi/qla2xxx/* |  Grep adapter-port

scsi-qla0-adapter-port=21000018822c8a2c;

scsi-qla1-adapter-port=21000018822c8a2d;

Second, SuSE Linux 10

View the contents of the /sys/class/fc_host/host*/port_name file to see the WWN information for the corresponding FC HBA card:

# cat /sys/class/fc_host/host*/port_name< Br>

0x210000e08b907955

0x210000e08b902856

Third, 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;

IV, suse11, redhat5, redhat6< Br>

The above are some of the old version of the system under the viewing method, in suse11, redhat5, redhat6, generally can be accessed to view /sys/class/fc_host/host*/port_n The ame file is obtained (host* is generally viewed as host4 and host5), and the execution result is as follows:

# cat /sys/class/fc_host/host*/port_name

0x10000090fa2a6b98

0x10000090fa2a6b99

Due to the connection storage, in order to avoid the fault condition under single path, it is generally necessary to configure multipath, and the HBA cards are also paired in pairs. Here, the wwwn number is also in pairs. of.

The above is a description of the methods for viewing the wwn number in Linux systems. This article only introduces the SuSE and RedHat systems. Other systems can be used as a reference.

Copyright © Windows knowledge All Rights Reserved