RHEL5 FCID 와 disk/LUN 정보 확인
RHEL 5에서 FC ID (WWN) 와 disk/LUN 정보를 확인할 수 있나?
ID: 19446 – Created on: May 22, 2009 10:54 AM – Last Modified: Sep 27, 2009 12:12
Found: Red Hat Enterprise
SAN들이 연결된 시스템에서는 , 어떤 디스크가 어떤 SAN인지, 어떤 포트 어떤 연결인지 확인하기 어렵니다.
Red Hat Enterprise Linux 5 에서는 모든 데이타가 /sys
에 저장되어 있고, Fibre Channel 별로 찾을 수 있다..
서버에서 HBA의 Fibre Channel 주소를 찾기위해서는 아래와 같이 실행해라:
서버에서, 현재 두개를 가지는 HBA가 현재 host8 와 host9로
동작하는 것을 알 수 있다. (please notice
that these numbers can change, they change every time the fibre channel driver
is unloaded, reloaded, and can change across reboots). 이 host숫자는 HBTL SCSI addressing 에서의 H-value 이다.
아래의 명령으로 또한 우리는 triplet HBT ( HBTL SCSI addressing) 에 대한
fibre channel target WWN을 확인할 수 있다..
node_name, is the FC WWN of the Storage System, and port_name is the FC WWID of
the Storage Processor Port.
With the following command, we can determine the mapping between SCSI HBTL addresses and the disks:
is part of sg3_utils, and before running sg_map, it is necessary to have the sg
module loaded on the system)
From commands on (1), (2) and (3) we have the mapping from disk to HBTL SCSI addresses, and the mapping of SCSI address to fibre
channel address. If, for instance, we want to see where the following multipath
device is hosted, we do:
We know already that it’s an EMC Clariion because the vendor is DGC,
but I could have LUNs from more than one Clariion on this system, so let’s pick
/dev/sdj as an example:
for sdj we have, H=9 and HBT=9:0:0. From (1) and (2) we have:
Doing for all disks:
ATTENTION: look carefully at the ‘Remote port’ values,
they normally differ only in a few bits.
this particular case, we see that both sdd and sdj are on the same remote port,
and sdg and sdm are on the same ports as well.
A storage system can have many ports. In most cases 2 or 4, but the Storage ID
should remain the same. In sysfs we have 0x50060160ba601693, which maps
perfectly to the storage WWN from the storage admin interface.