EMC Storage Device 정보 조회를 위한 Powerpath 및 SymCLI 예제

System Story/CentOS 5,6 2013. 12. 13. 17:53

※ powermt 및 symcli 사용을 위해 필요한 패키지 확인

 

[root@Test01 ~]#
[root@Test01 ~]#
[root@Test01 ~]# rpm -qa | grep EMC
OB2-EMCP-A.06.11-1
EMCpower.LINUX-5.6.0.00.00-143
[root@Test01 ~]#
[root@Test01 ~]#
[root@Test01 ~]# rpm -qi EMCpower.LINUX-5.6.0.00.00-143
Name : EMCpower.LINUX Relocations: /
Version : 5.6.0.00.00 Vendor: EMC, Inc.
Release : 143 Build Date: 2011년 03월 26일 (토) 오전 02시 14분 11초
Install Date: 2010년 08월 28일 (토) 오후 06시 25분 03초 Build Host: lppc111
Group : System Environment/Kernel Source RPM: EMCpower.LINUX-5.6.0.00.00-143.src.rpm
Size : 60151108 License: Copyright (c) 2002-2011, EMC Corporation. All Rights Reserved.
Signature : (none)
Summary : EMC PowerPath
Description :
Multi-path software providing fail-over and load-sharing for SCSI disks.
[root@Test01 ~]#


[root@Test01 ~]#
[root@Test01 ~]# rpm -qf /usr/symcli/bin/symdev
symcli-symcli-V7.3.0-1
[root@Test01 ~]#
[root@Test01 ~]# rpm -qi symcli-symcli-V7.3.0-1
Name : symcli-symcli Relocations: (not relocatable)
Version : V7.3.0 Vendor: EMC Corporation
Release : 1 Build Date: 2011년 05월 31일 (화) 오전 02시 19분 21초
Install Date: 2010년 08월 28일 (토) 오후 06시 16분 18초 Build Host: api1056.lss.emc.com
Group : SYMAPI Source RPM: symcli-symcli-V7.3.0-1.src.rpm
Size : 61939597 License: Copyright 2010, EMC Corporation
Signature : DSA/SHA1, 2011년 05월 31일 (화) 오전 02시 20분 01초, Key ID d4dd55f9c4e34013
Packager : EMC Corporation
Summary : Symmetrix Command Line Interface (SYMCLI)
Description :
Full EMC Solutions Enabler containing SYMCLI
[root@Test01 ~]#

 

 

 

1. EMC Storage로 할당된 전체 Symmetrix Device 조회

 

[root@Test01 ~]#
[root@Test01 ~]# powermt display
Symmetrix logical device count=163
CLARiiON logical device count=0
Invista logical device count=0
==============================================================================
----- Host Bus Adapters --------- ------ I/O Paths ----- ------ Stats ------
### HW Path Summary Total Dead IO/Sec Q-IOs Errors
==============================================================================
2 lpfc optimal 163 0 - 0 0
3 lpfc optimal 163 0 - 0 0
4 lpfc optimal 163 0 - 0 0
5 lpfc optimal 163 0 - 0 0
6 lpfc optimal 163 0 - 0 0
7 lpfc optimal 163 0 - 0 0
8 lpfc optimal 163 0 - 0 0
9 lpfc optimal 163 0 - 0 0
10 lpfc optimal 163 0 - 0 0
11 lpfc optimal 163 0 - 0 0
12 lpfc optimal 163 0 - 0 0
13 lpfc optimal 163 0 - 0 0

[root@Test01 ~]#

 


2. 상기에서 조회한 Device에 대한 LUN 정보 확인

 

[root@Test01 ~]#
[root@Test01 ~]# powermt display dev=all
Pseudo name=emcpoweriv
Symmetrix ID=000492600113
Logical device ID=05C5
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
6 lpfc sdaen FA 9fA active alive 0 0
7 lpfc sdakv FA 9fB active alive 0 0
8 lpfc sdard FA 8eA active alive 0 0
9 lpfc sdaxl FA 8eB active alive 0 0
10 lpfc sdbdt FA 9eA active alive 0 0
11 lpfc sdbkb FA 9eB active alive 0 0
12 lpfc sdbqj FA 8fA active alive 0 0
13 lpfc sdbwr FA 8fB active alive 0 0
2 lpfc sdfh FA 10fA active alive 0 0
3 lpfc sdlp FA 10fB active alive 0 0
4 lpfc sdrx FA 10eA active alive 0 0
5 lpfc sdyf FA 10eB active alive 0 0

.
.
.
생략
[root@Test01 ~]#
[root@Test01 ~]#

 

 

3. 신규로 추가된 Disk에 대한 확인

 

[root@Test01 ~]#
[root@Test01 ~]# powermt check dev=all
[root@Test01 ~]#
[root@Test01 ~]# powermt check hba=all
[root@Test01 ~]#
[root@Test01 ~]# powermt update lun_names
[root@Test01 ~]#  

 

 

 

4. EMC Storage Device lock 상태 확인

 

[root@Test01 ~]#
[root@Test01 ~]#
[root@Test01 ~]# /usr/symcli/bin/symdev -lock list

Symmetrix ID: 000492600113

No devices are locked

[root@Test01 ~]#

 

 


5. EMC Device Name에 대한 Sym ID(Logical device ID) 조회 및 전체 리스트 확인

 

[root@Test01 ~]#
[root@Test01 ~]# /usr/symcli/bin/symdev list | head -9 && /usr/symcli/bin/symdev list | grep "emcpower" | grep -v "Not Visible"

Symmetrix ID: 000492600113

Device Name Directors Device
--------------------------- ------------- -------------------------------------
Cap
Sym Physical SA :P DA :IT Config Attribute Sts (MB)
--------------------------- ------------- -------------------------------------

0055 /dev/emcpowera 08F:1 07A:C8 2-Way Mir N/Grp'd RW 3
0056 /dev/emcpowerb 08F:1 08B:C8 2-Way Mir N/Grp'd RW 3
0057 /dev/emcpowerc 08F:1 07C:C8 2-Way Mir N/Grp'd RW 3
0058 /dev/emcpowerd 08F:1 08D:C8 2-Way Mir N/Grp'd RW 3
007D /dev/emcpowere 08F:1 07A:C8 2-Way Mir N/Grp'd (M) RW 355500
0085 /dev/emcpowerg 08F:1 08A:C5 2-Way Mir N/Grp'd (M) RW 355500
008D /dev/emcpoweri 08F:1 07A:CA 2-Way Mir N/Grp'd (M) RW 355500
0095 /dev/emcpowerk 08F:1 08A:C7 2-Way Mir N/Grp'd (M) RW 355500
009D /dev/emcpowerm 08F:1 07A:CC 2-Way Mir N/Grp'd (M) RW 355500
00A5 /dev/emcpowero 08F:1 08A:C9 2-Way Mir N/Grp'd (M) RW 355500
00AD /dev/emcpowerq 08F:1 07A:C10 2-Way Mir N/Grp'd (M) RW 355500
00B5 /dev/emcpowers 08F:1 08A:CB 2-Way Mir N/Grp'd (M) RW 355500
00BD /dev/emcpoweru 08F:1 07A:C12 2-Way Mir N/Grp'd (M) RW 355500
00C5 /dev/emcpowerw 08F:1 08A:CD 2-Way Mir N/Grp'd (M) RW 355500
00CD /dev/emcpowery 08F:1 07A:C14 2-Way Mir N/Grp'd (M) RW 355500
00D5 /dev/emcpoweraa 08F:1 08A:CF 2-Way Mir N/Grp'd (M) RW 355500
00DD /dev/emcpowerac 08F:1 07A:C16 2-Way Mir N/Grp'd (M) RW 355500
00E5 /dev/emcpowerae 08F:1 08A:C11 2-Way Mir N/Grp'd (M) RW 355500
00ED /dev/emcpowerag 08F:1 07A:C18 2-Way Mir N/Grp'd (M) RW 355500
00F5 /dev/emcpowerai 08F:1 08A:C13 2-Way Mir N/Grp'd (M) RW 355500
00FD /dev/emcpowerak 08F:1 07A:C1A 2-Way Mir N/Grp'd (M) RW 355500
0105 /dev/emcpoweram 08F:1 08A:C15 2-Way Mir N/Grp'd (M) RW 355500
010D /dev/emcpowerao 08F:1 07A:C1C 2-Way Mir N/Grp'd (M) RW 355500
0115 /dev/emcpoweraq 08F:1 08A:C17 2-Way Mir N/Grp'd (M) RW 355500
011D /dev/emcpoweras 08F:1 09A:C0 2-Way Mir N/Grp'd (M) RW 355500
0125 /dev/emcpowerau 08F:1 08A:C19 2-Way Mir N/Grp'd (M) RW 355500
.
.
.
생략

 

 

6. SYM ID와 맵핑된 Physical Device NAME 내역 조회 및 확인

[root@Test01 ~]# /usr/symcli/bin/sympd list

Symmetrix ID: 000492600113

Device Name Directors Device
--------------------------- ------------- -------------------------------------
Cap
Physical Sym SA :P DA :IT Config Attribute Sts (MB)
--------------------------- ------------- -------------------------------------

/dev/sda 0054 10F:0 08A:C9 2-Way Mir N/Grp'd ACLX RW 2
/dev/sdb 0055 10F:0 07A:C8 2-Way Mir N/Grp'd RW 3
/dev/sdc 0056 10F:0 08B:C8 2-Way Mir N/Grp'd RW 3
/dev/sdd 0057 10F:0 07C:C8 2-Way Mir N/Grp'd RW 3
/dev/sde 0058 10F:0 08D:C8 2-Way Mir N/Grp'd RW 3
/dev/sdf 007D 10F:0 07A:C8 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdg 0085 10F:0 08A:C5 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdh 008D 10F:0 07A:CA 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdi 0095 10F:0 08A:C7 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdj 009D 10F:0 07A:CC 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdk 00A5 10F:0 08A:C9 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdl 00AD 10F:0 07A:C10 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdm 00B5 10F:0 08A:CB 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdn 00BD 10F:0 07A:C12 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdo 00C5 10F:0 08A:CD 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdp 00CD 10F:0 07A:C14 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdq 00D5 10F:0 08A:CF 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdr 00DD 10F:0 07A:C16 2-Way Mir N/Grp'd (M) RW 355500
/dev/sds 00E5 10F:0 08A:C11 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdt 00ED 10F:0 07A:C18 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdu 00F5 10F:0 08A:C13 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdv 00FD 10F:0 07A:C1A 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdw 0105 10F:0 08A:C15 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdx 010D 10F:0 07A:C1C 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdy 0115 10F:0 08A:C17 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdz 011D 10F:0 09A:C0 2-Way Mir N/Grp'd (M) RW 355500
/dev/sdaa 0125 10F:0 08A:C19 2-Way Mir N/Grp'd (M) RW 355500

.

.

.

생략 

 

Trackbacks 0 : Comments 0

Write a comment