In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Lspci # to see if there is a HBA,linux6 that can be viewed through lspci
First confirm what kind of optical fiber card it is:
Lspci | grep-I fibre
Basically, there are two types of optical fiber cards:
Emulex: lsmod | grep lpfc
Qlogic: lsmod | grep qla
Lsmod # View the information of loaded driver modules
If FC HBA loads the correct driver, there is a lot of information about HBA under / sys/class/fc_host/hostx
# # replace HBA card #
The way to check the HBA card WWN number is as follows:
[root@361way ~] # cat / sys/class/fc_host/host*/port_name
0x10000090fa4849fe
0x10000090fa4849ff
You can also see the wwn section under linux.
After changing the WWN number, the system cannot directly update the mounted backend storage disk. If you need to re-scan the next disk, you can use the following methods to do so:
# cd / sys/class/scsi_host/host4/
# echo'-'> scan
Or
Echo "1" > / sys/class/fc_host/host/issue_lip / / some storage or systems do not have scan files, which can be identified by issue_lip files
Note:
You can run fdisk-l before scanning and compare the results of fdisk-l after scanning. If the replacement is successful, you will find that the latter will see more results than the former. Therefore, before this kind of operation, it is best to make a backup of df, fdisk, mount, fstab and other information related to the disk. After the scan is completed, it is the safest to make a comparison with the original data.
It doesn't matter if you can't remember the scan instructions above, the same effect can be achieved by rebooting the host.
Before and after the disk sweep, you can confirm the storage mount information by viewing / proc/scsi/scsi
[root@361way ~] # cat / proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: hp Model: DVD D DS8D3SH Rev: HHE8
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi3 Channel: 03 Id: 00 Lun: 00
Vendor: HP Model: P410i Rev: 6.62
Type: RAID ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: HP Model: LOGICAL VOLUME Rev: 6.62
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 01
Vendor: HP Model: LOGICAL VOLUME Rev: 6.62
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 02
Vendor: HP Model: LOGICAL VOLUME Rev: 6.62
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: EMC Model: SYMMETRIX Rev: 5874
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 01
Vendor: EMC Model: SYMMETRIX Rev: 5874
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 02
Vendor: EMC Model: SYMMETRIX Rev: 5874
In addition, there is a separate lsscsi command under SuSE to view detailed information, as follows:
# lsscsi
[0 disk SEAGATE ST300MM0006 0] B001-
Disk SEAGATE ST9300605SS B002-
[0:1:0:0] disk LSILOGIC Logical Volume 3000 / dev/sda
Disk HUAWEI S2300E 1-
Disk HUAWEI S2300E 1-
Disk HUAWEI S2300E 1-
[5-disk HUAWEI S6900-M100 0-- 1-1]
Disk HUAWEI S2300E 1-
Disk HUAWEI S2300E 1-
Disk HUAWEI S2300E 1-
Disk HUAWEI S2300E 1-
Disk HUAWEI S2300E 1-
[6-disk HUAWEI S6900-M100 0--
[7:0:0:0] disk up updisk 1 / dev/sdb
[7:0:0:1] disk up updisk 1 / dev/sdc
[7:0:0:2] disk up updisk 1 / dev/sdd
# # add HBA card #
The installation sequence of the HBA card and the operating system determines the operation steps of the host external storage. If HBA is installed before the operating system, it is relatively easy to connect to the disk. Setup detects the discovered hardware and prepares the required modules. If the adapter is installed after the operating system, or if it changes after the operating system installation, the user needs to install it manually. This article uses Emulex 1000 as an example HBA.
HBA is installed before the operating system: the installer discovers the hardware and prepares the module
HBA installed or changed after the operating system: manually installed by the user
Add HBA card to HP DL380
View HBA:
Lspci (Linux command)
[root@sandboxlinux etc] # lspci
00RV 00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev c4)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
00Inc 04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:04.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06
00Inc 04.2 USB Controller: VIA Technologies, Inc. USB (rev 16)
00Inc 04.3 USB Controller: VIA Technologies, Inc. USB (rev 16)
00Rom 04.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00Rom 09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0a.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
00:0c.0 Fibre Channel: Emulex Corporation: Unknown device fa00 (rev 01)
00:0c.1 Fibre Channel: Emulex Corporation: Unknown device fa00 (rev 01)
01rev 00.0 VGA compatible controller: ATI Technologies Inc Rage XL AGP 2X (rev 27)
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.