Linux replace HBA card after re-scan instructions

Source: Internet
Author: User

Here's how to view the HBA card WWN number:


[Email protected] ~]# Cat/sys/class/fc_host/host*/port_name

0x10000090fa4849fe

0x10000090fa4849ff

You can also see the WWN number under Linux.


Once the WWN number is changed, the system cannot directly update the mounted back-end storage disk. To re-scan the disk, you can use the following methods to perform the sweep operation:


# cd/sys/class/scsi_host/host4/

# echo '---' > Scan

Or

echo "1" >/sys/class/fc_host/host/issue_lip//Some storage or system does not have scan file, can pass Issue_lip file recognition

Note:


You can run fdisk-l before scanning and compare the results of fdisk-l after scanning. If the change succeeds, the latter will see more results than the former. So before this kind of operation, it is best to make a backup of DF, Fdisk, Mount, fstab, etc. and disk-related information, after the scan is completed, and the original data to make a comparison is the most insured.

It doesn't matter if you can't remember the scanning instructions above, you can achieve the same result by restarting the host.

Before and after scanning, you can confirm storage mount information by viewing/PROC/SCSI/SCSI


[Email protected] ~]# 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

Do not have a separate LSSCSI command under SuSE to view detailed information, as follows:


# LSSCSI

[0:0:0:0] Disk SEAGATE st300mm0006 B001-

[0:0:1:0] Disk SEAGATE st9300605ss B002-

[0:1:0:0] Disk lsilogic Logical Volume 3000/DEV/SDA

[5:0:0:0] Disk HUAWEI s2300e 1-

[5:0:0:1] Disk HUAWEI s2300e 1-

[5:0:0:2] Disk HUAWEI s2300e 1-

[5:0:1:0] Disk HUAWEI s6900-m100 2102-

[5:0:2:0] Disk HUAWEI s2300e 1-

[6:0:0:0] Disk HUAWEI s2300e 1-

[6:0:0:1] Disk HUAWEI s2300e 1-

[6:0:0:2] Disk HUAWEI s2300e 1-

[6:0:1:0] Disk HUAWEI s2300e 1-

[6:0:2:0] Disk HUAWEI s6900-m100 2102-

[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


Linux replace HBA card after re-scan instructions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.