Got it

Some LUNs Fail to Be Found During a LUN Scan Using Multipath Software

119 0 0 0 0

Fault Description

After the LUN scan command is executed on a host to scan for newly mapped LUNs, and the multipath software of Linux operating systems such as Red Hat is used to scan for mapped LUNs, only a part of LUNs are identified. However, after the lsscsi or df –l command is executed, all disks are displayed.

LUN scan command: echo "- - -" > /sys/class/scsi_host/${tmpHost}/scan

Symptom

No alarm is reported.

Cause

The multipath software cannot delete LUNs that have no mappings. During the scan, the host continuously delivers the read commands to LUNs that have been deleted. After the storage system returns a message indicating that no mapping exists, the multipath software identifies the path as invalid. Consequently, normal LUNs cannot be identified later.

Identification Method

  1. Confirm that the host uses the multipath software.

  2. Confirm that all disks are displayed after the df –l or lsscsi command is executed.

  3. Confirm that all LUNs have reported related information by searching for the key word "scsiReportLunsExecute" in storage logs.

    Example: [Report 69 LUN to host 0x10000090fae65d57,actual 69 LUN.][SCSI][scsiReportLunsExecute,458][CSD_5]

Solutions

Solution 1: Delete LUNs whose mappings have been deleted on the host. For details, visit http://www.linuxquestions.org/questions/linux-distributions-5/finding-luns-928777/.

  1. deleted mpath device with multipath -f mpath<number>

  2. cd into /sys/class/scsi_device

  3. then echo 1 > device/delete for each device (based on scsi id)

    Example:

    multipath -f mpath2

    echo 1 > /sys/class/scsi_device/5\:0\:0\:2/device/delete

    echo 1 > /sys/class/scsi_device/6\:0\:0\:2/device/delete

    echo 1 > /sys/class/scsi_device/5\:0\:1\:2/device/delete

    echo 1 > /sys/class/scsi_device/6\:0\:1\:2/device/delete

Solution 2: If too many LUNs whose mappings have been deleted exist, it is risky to manually delete the LUNs. It is a good practice to stop services and restart the host.

Check After Recovery

Use the multipath software to scan for disks. All disks can be found.

Application Scope

  • OceanStor 18000 series:

    All V100R001 versions

  • OceanStor V3 series:

    All V3 versions

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.