No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade
Knowledge Base

How to check the LUN relation of the host and the array

Publication Date:  2012-10-18  |   Views:  281  |   Downloads:  0  |   Author:  SU1000864011  |   Document ID:  EKB1000017501

Contents

Issue Description

Operation system: SUSE10 SP2
Storage device: S2300E
Problem: in the field sometimes we cannot confirm the LUN relation of the host and the array.

Alarm Information

none

Handling Process

1. On the host we can confirm the host LUN ID by lsscsi or cat /proc/scsi/scsi.
fs2:~ # lsscsi -l
……
[3:0:0:7] disk up updisk 1 /dev/sdb
state=running queue_depth=28 scsi_level=5 type=0 device_blocked=0 timeout=60
[3:0:0:7] stands for A C S L, which is for adapter, channel, SCSI and LUN number.
Or
fs2:~ # cat /proc/scsi/scsi
Attached devices:
…………
Host: scsi3 Channel: 00 Id: 00 Lun: 07(主机LUN ID)
Vendor: up Model: updisk Rev: 1
Type: Direct-Access ANSI SCSI revision: 04
2. On the storage we can login on OSM, ‘map>>host group>>host’ to check host LUN ID, or use showmap -gi X and showmap -hi X to check HOST LUN.
(A) Use showhost to check the host and the host group:
OceanStor: admin> showhost
Host ID Host Group ID Host Name
0 1 fs01
1 1 fs02
2 2 rac1
3 2 rac2
4 3 billing-181
5 3 billing-183
6 4 slot12
7 4 slot14
8 3 184
9 5 mdsp_156
10 6 zcy_163
11 7 hje
12 7 aaaa2
OceanStor: admin> showhost -i 1
Host ID Host Group ID Host Name
0 1 fs01
1 1 fs02
(B) Use showmap -gi X to check LUN information of the host group and use showmap -hi X to check LUN information of the host:
(C) OceanStor: admin> showmap -gi 1
Map ID Ctrler Dev LUN ID Host LUN Mapped to RAID ID Dev LUN Cap(MB)
0x10001 A 4 1 Group: 1 0 50000
OceanStor: admin> showmap -hi 0
Map ID Ctrler Dev LUN ID Host LUN Mapped to RAID ID Dev LUN Cap(MB)
0x10001 A 4 1 Group: 1 0 50000

Root Cause

Array ID contains host LUN ID and device LUN ID. Host LUN ID is mapped from array to host. Device LUN ID is the number of array inner. We can examine LUN ID of the host and host LUN ID of the array to confirm the LUN relation.

Suggestions

1. Showhost using method
OceanStor: admin> clihelp -h showhost
SHOWHOST(1) User Commands SHOWHOST(1)
NAME
showhost -query the host list
SYNOPSIS
showhost [-i host group ID]
DESCRIPTION
You can query the list of the hosts in a host group on the CLI.
OPTIONS
-i host group ID
Query the list of the hosts in a specified host group. Host
group ID ranges from 0 to 127.
AUTHOR
Written by Qiao Lina.
COPYRIGHT
All right reserved (C), 2006, Huawei Technologies Co., Ltd.
SEPTEMBER 2006 SHOWHOST(1)
2. Showmap using method
OceanStor: admin> clihelp -h showmap
SHOWMAP(1) User Commands SHOWMAP(1)
NAME
showmap -query the detailed information on host LUN mapping
SYNOPSIS
showmap -gi host group ID | -hi host ID | -i LUN map ID
DESCRIPTION
You can query the detailed information on host LUN mapping.
OPTIONS
-gi host group ID
Host group ID, ranges from 0 to 127.
-hi host ID
Host ID, ranges from 0 to 255.
-i LUN map ID
Host LUN mapping ID.
AUTHOR
Written by Qiao Lina.
COPYRIGHT
All right reserved (C), 2006, Huawei Technologies Co., Ltd.
SEPTEMBER 2006 SHOWMAP(1)