DS8K LUN ID 확인하는 방법
# lsdev -Cc disk | grep 2107 | awk '{ print "lscfg -vl " $1 }' | sh -x | grep -E "hdisk|Serial"
Raid10의 경우 LUN ID가 1xxx이며,
Raid5의 경우 LUN ID는 4xxx입니다.
DS8K에서는 최소단위가 1GB
***********************************************************************************************
Red Hat Linux에서 LUN ID 확인하는 방법(SDD 툴 사용)
Usage: datapath query adapter [n]
datapath query device [n [m]] [-d <device_model>] [-i x [y]] [-l]
datapath query adaptstats [n]
datapath query devstats [n [m]] [-d <device_model>] [-i x [y]]
datapath query wwpn
datapath query version
datapath query essmap
datapath query portmap
datapath set adapter <n> online/offline
datapath set device <n> path <m> online/offline
datapath set device <n> [m] policy rr/rrs/fo/lb/lbs/df
datapath open device <n> path <m>
datapath clear device <n> [m] count error/all
datapath disable/enable ports <connection> ess <essid>
Supported connection format:
single port = R1-Bx-Hy-Zz
all ports on card = R1-Bx-Hy
all ports on bay = R1-Bx
refer portmap output for the connection string and ESS serial number
SDD 커맨드(datapath)를 사용하여 LUN S/N(시리얼 넘버)을 확인할 수 있다.
아래 SERIAL의 뒤 4자리.
스토리지에서 할당받은 LUN을 반납하기 위해서 해당 LUN S/N 정보를 확인하면 된다.
# datapath query
DEV#: 0 DEVICE NAME: vpathf TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11A54
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sda OPEN NORMAL 1903908 0
1 Host1Channel0/sdm OPEN NORMAL 1901011 0
DEV#: 1 DEVICE NAME: vpatha TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11846
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdb OPEN NORMAL 1682584 0
1 Host1Channel0/sdn OPEN NORMAL 1685261 0
DEV#: 2 DEVICE NAME: vpathb TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11645
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdc OPEN NORMAL 6490459 0
1 Host1Channel0/sdo OPEN NORMAL 6550465 0
DEV#: 3 DEVICE NAME: vpathc TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH1154A
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdd OPEN NORMAL 2512162 0
1 Host1Channel0/sdp OPEN NORMAL 2507011 0
DEV#: 4 DEVICE NAME: vpathd TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11447
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sde OPEN NORMAL 1820393 0
1 Host1Channel0/sdq OPEN NORMAL 1832601 0
DEV#: 5 DEVICE NAME: vpathe TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11348
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdf OPEN NORMAL 1883132 0
1 Host1Channel0/sdr OPEN NORMAL 1897181 0
DEV#: 6 DEVICE NAME: vpathg TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11241
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdg CLOSE_DEAD NORMAL 28382300 0
1 Host1Channel0/sds CLOSE_DEAD NORMAL 28306636 0
DEV#: 7 DEVICE NAME: vpathh TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH1124E
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdh CLOSE_DEAD NORMAL 5548742 0
1 Host1Channel0/sdt CLOSE_DEAD NORMAL 5530635 0
DEV#: 8 DEVICE NAME: vpathi TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH1191E
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdi CLOSE_DEAD NORMAL 6694452 0
1 Host1Channel0/sdu CLOSE_DEAD NORMAL 6697211 0
DEV#: 9 DEVICE NAME: vpathj TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH1191F
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdj CLOSE_DEAD NORMAL 20947728 0
1 Host1Channel0/sdv CLOSE_DEAD NORMAL 20897813 0
DEV#: 10 DEVICE NAME: vpathk TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11922
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdk CLOSE_DEAD NORMAL 12092715 0
1 Host1Channel0/sdw CLOSE_DEAD NORMAL 12050040 0
DEV#: 11 DEVICE NAME: vpathl TYPE: 2107900 POLICY: Optimized Sequential
SERIAL: 75BAVH11923
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host0Channel0/sdl CLOSE_DEAD NORMAL 4247356 0
1 Host1Channel0/sdx CLOSE_DEAD NORMAL 4248073 0
# datapath query essmap
Disk Path P Adapter LUN SN Type Size LSS Vol Rank C/A S Connection Port RaidMode
------- ----- - ------------- ----------- ----------- ---- --- --- ---- --- - ----------- ---- --------
vpathf sda Host0Channel0 75BAVH11A54 IBM 2107900 12.9GB 26 84 0000 1d Y R1-B4-H2-ZA 310 RAID10
vpathf sdm Host1Channel0 75BAVH11A54 IBM 2107900 12.9GB 26 84 0000 1d Y R1-B3-H2-ZA 210 RAID10
vpatha sdb Host0Channel0 75BAVH11846 IBM 2107900 12.9GB 24 70 0000 29 Y R1-B4-H2-ZA 310 RAID10
vpatha sdn Host1Channel0 75BAVH11846 IBM 2107900 12.9GB 24 70 0000 29 Y R1-B3-H2-ZA 210 RAID10
vpathb sdc Host0Channel0 75BAVH11645 IBM 2107900 12.9GB 22 69 0000 1a Y R1-B4-H2-ZA 310 RAID10
vpathb sdo Host1Channel0 75BAVH11645 IBM 2107900 12.9GB 22 69 0000 1a Y R1-B3-H2-ZA 210 RAID10
vpathc sdd Host0Channel0 75BAVH1154A IBM 2107900 12.9GB 21 74 0000 2f Y R1-B4-H2-ZA 310 RAID10
vpathc sdp Host1Channel0 75BAVH1154A IBM 2107900 12.9GB 21 74 0000 2f Y R1-B3-H2-ZA 210 RAID10
vpathd sde Host0Channel0 75BAVH11447 IBM 2107900 12.9GB 20 71 0000 26 Y R1-B4-H2-ZA 310 RAID10
vpathd sdq Host1Channel0 75BAVH11447 IBM 2107900 12.9GB 20 71 0000 26 Y R1-B3-H2-ZA 210 RAID10
vpathe sdf Host0Channel0 75BAVH11348 IBM 2107900 12.9GB 19 72 0000 0b Y R1-B4-H2-ZA 310 RAID10
vpathe sdr Host1Channel0 75BAVH11348 IBM 2107900 12.9GB 19 72 0000 0b Y R1-B3-H2-ZA 210 RAID10
vpathg sdg Host0Channel0 75BAVH11241 IBM 2107900 12.9GB 18 65 0000 02 Y R1-B4-H2-ZA 310 RAID10
vpathg sds Host1Channel0 75BAVH11241 IBM 2107900 12.9GB 18 65 0000 02 Y R1-B3-H2-ZA 210 RAID10
vpathh sdh Host0Channel0 75BAVH1124E IBM 2107900 12.9GB 18 78 0000 02 Y R1-B4-H2-ZA 310 RAID10
vpathh sdt Host1Channel0 75BAVH1124E IBM 2107900 12.9GB 18 78 0000 02 Y R1-B3-H2-ZA 210 RAID10
vpathi sdi Host0Channel0 75BAVH1191E IBM 2107900 12.9GB 25 30 0000 2c Y R1-B4-H2-ZA 310 RAID10
vpathi sdu Host1Channel0 75BAVH1191E IBM 2107900 12.9GB 25 30 0000 2c Y R1-B3-H2-ZA 210 RAID10
vpathj sdj Host0Channel0 75BAVH1191F IBM 2107900 12.9GB 25 31 0000 2c Y R1-B4-H2-ZA 310 RAID10
vpathj sdv Host1Channel0 75BAVH1191F IBM 2107900 12.9GB 25 31 0000 2c Y R1-B3-H2-ZA 210 RAID10
vpathk sdk Host0Channel0 75BAVH11922 IBM 2107900 12.9GB 25 34 0000 2c Y R1-B4-H2-ZA 310 RAID10
vpathk sdw Host1Channel0 75BAVH11922 IBM 2107900 12.9GB 25 34 0000 2c Y R1-B3-H2-ZA 210 RAID10
vpathl sdl Host0Channel0 75BAVH11923 IBM 2107900 12.9GB 25 35 0000 2c Y R1-B4-H2-ZA 310 RAID10
vpathl sdx Host1Channel0 75BAVH11923 IBM 2107900 12.9GB 25 35 0000 2c Y R1-B3-H2-ZA 210 RAID10
# datapath query portmap
BAY-1(B1) BAY-2(B2) BAY-3(B3) BAY-4(B4)
ESSID DISK H1 H2 H3 H4 H1 H2 H3 H4 H1 H2 H3 H4 H1 H2 H3 H4
ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD
BAY-5(B5) BAY-6(B6) BAY-7(B7) BAY-8(B8)
H1 H2 H3 H4 H1 H2 H3 H4 H1 H2 H3 H4 H1 H2 H3 H4
ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD
75BAVH1 vpathf ---- ---- ---- ---- ---- ---- ---- ---- ---- Y--- ---- ---- ---- Y--- ---- ----
75BAVH1 vpatha ---- ---- ---- ---- ---- ---- ---- ---- ---- Y--- ---- ---- ---- Y--- ---- ----
75BAVH1 vpathb ---- ---- ---- ---- ---- ---- ---- ---- ---- Y--- ---- ---- ---- Y--- ---- ----
75BAVH1 vpathc ---- ---- ---- ---- ---- ---- ---- ---- ---- Y--- ---- ---- ---- Y--- ---- ----
75BAVH1 vpathd ---- ---- ---- ---- ---- ---- ---- ---- ---- Y--- ---- ---- ---- Y--- ---- ----
75BAVH1 vpathe ---- ---- ---- ---- ---- ---- ---- ---- ---- Y--- ---- ---- ---- Y--- ---- ----
75BAVH1 vpathg ---- ---- ---- ---- ---- ---- ---- ---- ---- N--- ---- ---- ---- N--- ---- ---- PD
75BAVH1 vpathh ---- ---- ---- ---- ---- ---- ---- ---- ---- N--- ---- ---- ---- N--- ---- ---- PD
75BAVH1 vpathi ---- ---- ---- ---- ---- ---- ---- ---- ---- N--- ---- ---- ---- N--- ---- ---- PD
75BAVH1 vpathj ---- ---- ---- ---- ---- ---- ---- ---- ---- N--- ---- ---- ---- N--- ---- ---- PD
75BAVH1 vpathk ---- ---- ---- ---- ---- ---- ---- ---- ---- N--- ---- ---- ---- N--- ---- ---- PD
75BAVH1 vpathl ---- ---- ---- ---- ---- ---- ---- ---- ---- N--- ---- ---- ---- N--- ---- ---- PD
Y = online/open y = (alternate path) online/open
O = online/closed o = (alternate path) online/close
N = offline n = (alternate path) offline
- = path not configured
? = path information not available
PD = path down
Note: 2105 devices' essid has 5 digits, while 1750/2107 device's essid has 7 digits.
'OS > Linux' 카테고리의 다른 글
[Linux] core dump (0) | 2009.02.11 |
---|---|
[Linux] Using Linux Logical Volume Manager with SDD (0) | 2009.01.08 |
[Linux] Red Hat Virtualization (Xen) (0) | 2008.12.26 |
[Linux] Red Hat Enterprise Linux 4 보안 가이드 (0) | 2008.12.26 |
[Linux] Red Hat Enterprise Linux 4 .6 Release Notes (0) | 2008.12.26 |
[Linux] Red Hat Enterprise Linux 4 Update 2 Release Notes (0) | 2008.12.26 |
[Linux] 디스크 덤프 유틸리티를 사용하여 vmcore 파일 만드는 방법 (1) | 2008.12.26 |
[Linux] Red Hat 표준시간(Time zone) 설정 (0) | 2008.11.03 |
[Linux] 리눅스 root로 TELNET 로그인하는 방법 (0) | 2008.10.07 |
[Linux] 프롬프트에 전체 경로를 표시하고 싶은 경우 (0) | 2008.10.07 |