Chinaunix首页 | 论坛 | 博客
  • 博客访问: 82255
  • 博文数量: 25
  • 博客积分: 1630
  • 博客等级: 上尉
  • 技术积分: 280
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-20 16:50
文章分类

全部博文(25)

文章存档

2014年(1)

2012年(8)

2007年(7)

2006年(9)

我的朋友

分类: 服务器与存储

2012-04-29 16:02:42

昨天做了EMC的东西 结果遇到了 dead path的问题,查询了文档,解决了
特别书写下啊

参考  





1。    
 

在EMC系统中,如果你频繁的增减磁盘,重新分配规划磁盘组,那么主机可能无法正确检测到磁盘,这是后我们可以使用powermt来检测配置,
解决问题.

 

1.你可以会遇到如下问题

你已经分配磁盘给主机系统,但是在format时无法发现:

# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1t0d0 /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0106d9781,0 1. c1t1d0 /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0106ef871,0 Specify disk (enter its number): 1 selecting c1t1d0 [disk formatted] Warning: Current Disk has mounted partitions. FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name ! - execute , then return quit format> q

2.此时可以使用powermt来检测PowerPath连接状态

Powermt means:PowerPath 4.x Management Utility

 

  # powermt display dev=all Pseudo name=emcpower4a CLARiiON ID=CK200041200044 Logical device ID=6006016028A610000AF03A428708D911 state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP B, current=Unknown ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 2304 pci@8/fibre-channel@4 c2t0d3s0 SP B0 active dead 0 0 2304 pci@8/fibre-channel@4 c2t1d3s0 SP A0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t0d3s0 SP B0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t1d3s0 SP A0 active dead 0 0 Pseudo name=emcpower5a CLARiiON ID=CK200041200044 Logical device ID=6006016028A610005ABD62655B08D911 state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP A, current=Unknown ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 2304 pci@8/fibre-channel@4 c2t0d2s0 SP B0 active dead 0 0 2304 pci@8/fibre-channel@4 c2t1d2s0 SP A0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t0d2s0 SP B0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t1d2s0 SP A0 active dead 0 0 Pseudo name=emcpower0a CLARiiON ID=CK200041200044 Logical device ID=6006016028A61000C65024C992D4D811 state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP B, current=Unknown ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 2304 pci@8/fibre-channel@4 c2t0d0s0 SP B0 active dead 0 0 2304 pci@8/fibre-channel@4 c2t1d0s0 SP A0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t0d0s0 SP B0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t1d0s0 SP A0 active dead 0 0 Pseudo name=emcpower1a CLARiiON ID=CK200041200044 Logical device ID=6006016028A61000F075BD4E93D4D811 state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP A, current=Unknown ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 2304 pci@8/fibre-channel@4 c2t0d1s0 SP B0 active dead 0 0 2304 pci@8/fibre-channel@4 c2t1d1s0 SP A0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t0d1s0 SP B0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t1d1s0 SP A0 active dead 0 0 Pseudo name=emcpower6a CLARiiON ID=CK200041200044 Logical device ID=6006016028A61000FC68E575620CD911 state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP B, current=Unknown ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 2304 pci@8/fibre-channel@4 c2t0d4s0 SP B0 active dead 0 0 2304 pci@8/fibre-channel@4 c2t1d4s0 SP A0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t0d4s0 SP B0 active dead 0 0 2305 pci@8/fibre-channel@5 c3t1d4s0 SP A0 active dead 0 0

 

这些active dead的状态都是错误的.

3.执行重新配置

# powermt check Warning: CLARiiON device path c2t0d0s0 is currently dead. Do you want to remove it (y/n/a/q)? y Warning: CLARiiON device path c2t0d1s0 is currently dead. Do you want to remove it (y/n/a/q)? y Warning: CLARiiON device path c2t0d2s0 is currently dead. Do you want to remove it (y/n/a/q)? a Warning: CLARiiON device path c2t0d3s0 is currently dead. Warning: CLARiiON device path c2t0d4s0 is currently dead. Warning: CLARiiON device path c2t1d0s0 is currently dead. Warning: CLARiiON device path c2t1d1s0 is currently dead. Warning: CLARiiON device path c2t1d2s0 is currently dead. Warning: CLARiiON device path c2t1d3s0 is currently dead. Warning: CLARiiON device path c2t1d4s0 is currently dead. Warning: CLARiiON device path c3t0d0s0 is currently dead. Warning: CLARiiON device path c3t0d1s0 is currently dead. Warning: CLARiiON device path c3t0d2s0 is currently dead. Warning: CLARiiON device path c3t0d3s0 is currently dead. Warning: CLARiiON device path c3t0d4s0 is currently dead. Warning: CLARiiON device path c3t1d0s0 is currently dead. Warning: CLARiiON device path c3t1d1s0 is currently dead. Warning: CLARiiON device path c3t1d2s0 is currently dead. Warning: CLARiiON device path c3t1d3s0 is currently dead. Warning: CLARiiON device path c3t1d4s0 is currently dead. # powermt config # powermt restore # powermt save # powermt display dev=all Pseudo name=emcpower7a CLARiiON ID=CK200041200044 [Storage Group 2] Logical device ID=6006016028A61000482F2BA9720CD911 [LUN 1] state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP B, current=SP B ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 2304 pci@8/fibre-channel@4 c2t0d0s0 SP B0 active alive 0 0 2304 pci@8/fibre-channel@4 c2t1d0s0 SP A0 active alive 0 0 2305 pci@8/fibre-channel@5 c3t0d0s0 SP B0 active alive 0 0 2305 pci@8/fibre-channel@5 c3t1d0s0 SP A0 active alive 0 0

 

此时的active alive状态正常.

4.此时执行format可以看到正确的磁盘

# format Searching for disks...done c2t0d0: configured with capacity of 40.00GB c2t1d0: configured with capacity of 40.00GB c3t0d0: configured with capacity of 40.00GB c3t1d0: configured with capacity of 40.00GB emcpower7a: configured with capacity of 40.00GB AVAILABLE DISK SELECTIONS: 0. c1t0d0 /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0106d9781,0 1. c1t1d0 /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0106ef871,0 2. c2t0d0 /pci@8,700000/fibre-channel@4/sd@0,0 3. c2t1d0 /pci@8,700000/fibre-channel@4/sd@1,0 4. c3t0d0 /pci@8,700000/fibre-channel@5/sd@0,0 5. c3t1d0 /pci@8,700000/fibre-channel@5/sd@1,0 6. emcpower7a /pseudo/emcp@7 Specify disk (enter its number): ^D

具体Powermt命令参考:

http://blog.csdn.net/eygle/archive/2004/09/23/113881.aspx

如欲转载,请注明作者与出处.并请保留本文的连接.

 2.

Removing dead paths on EMC PowerPath

Posted by  on April 6, 2010

Check the HBA paths with powermt display and check if there are any failed path.

root@solaris:~ # powermt display
Symmetrix logical device count=12
CLARiiON logical device count=24
Hitachi logical device count=0
Invista logical device count=0
HP xp logical device count=0
Ess logical device count=0
HP HSx logical device count=0
==============================================================================
—– Host Bus Adapters ——— —— I/O Paths —– —— Stats ——
### HW Path Summary Total Dead IO/Sec Q-IOs Errors
==============================================================================
2304 ssm@0,0/pci@1c,700000/pci@3/lpfc@4 failed 12 12 – 0 12
2305 ssm@0,0/pci@1c,700000/pci@3/lpfc@5 optimal 12 0 – 0 0
2306 ssm@0,0/pci@1c,600000/lpfc@1 failed 24 24 – 0 24
2307 ssm@0,0/pci@1d,700000/pci@1/lpfc@4 failed 12 12 – 0 12
2308 ssm@0,0/pci@1d,700000/pci@1/lpfc@5 optimal 12 0 – 0 0
2309 ssm@0,0/pci@1d,600000/lpfc@1 optimal 24 0 – 1 0

To remove the failed paths, run powermt check

root@solaris:~ # powermt check
Warning: Symmetrix device path c5t18d10s0 is currently dead.
Do you want to remove it (y/n/a/q)? a
Warning: Symmetrix device path c5t18d11s0 is currently dead.
Warning: Symmetrix device path c5t18d12s0 is currently dead.
Warning: Symmetrix device path c5t18d1s0 is currently dead.
Warning: Symmetrix device path c5t18d2s0 is currently dead.
Warning: Symmetrix device path c5t18d3s0 is currently dead.
Warning: Symmetrix device path c5t18d4s0 is currently dead.
Warning: Symmetrix device path c5t18d5s0 is currently dead.
Warning: Symmetrix device path c5t18d6s0 is currently dead.
Warning: Symmetrix device path c5t18d7s0 is currently dead.
Warning: Symmetrix device path c5t18d8s0 is currently dead.
Warning: Symmetrix device path c5t18d9s0 is currently dead.
Warning: Symmetrix device path c7t19d10s0 is currently dead.
Warning: Symmetrix device path c7t19d11s0 is currently dead.
Warning: Symmetrix device path c7t19d12s0 is currently dead.
Warning: Symmetrix device path c7t19d1s0 is currently dead.
Warning: Symmetrix device path c7t19d2s0 is currently dead.
Warning: Symmetrix device path c7t19d3s0 is currently dead.
Warning: Symmetrix device path c7t19d4s0 is currently dead.
Warning: Symmetrix device path c7t19d5s0 is currently dead.
Warning: Symmetrix device path c7t19d6s0 is currently dead.
Warning: Symmetrix device path c7t19d7s0 is currently dead.
Warning: Symmetrix device path c7t19d8s0 is currently dead.
Warning: Symmetrix device path c7t19d9s0 is currently dead.
Warning: CLARiiON device path c1t16d0s0 is currently dead.
Warning: CLARiiON device path c1t16d10s0 is currently dead.
Warning: CLARiiON device path c1t16d11s0 is currently dead.
Warning: CLARiiON device path c1t16d12s0 is currently dead.
Warning: CLARiiON device path c1t16d13s0 is currently dead.
Warning: CLARiiON device path c1t16d14s0 is currently dead.
Warning: CLARiiON device path c1t16d15s0 is currently dead.
Warning: CLARiiON device path c1t16d16s0 is currently dead.
Warning: CLARiiON device path c1t16d17s0 is currently dead.
Warning: CLARiiON device path c1t16d18s0 is currently dead.
Warning: CLARiiON device path c1t16d19s0 is currently dead.
Warning: CLARiiON device path c1t16d1s0 is currently dead.
Warning: CLARiiON device path c1t16d20s0 is currently dead.
Warning: CLARiiON device path c1t16d21s0 is currently dead.
Warning: CLARiiON device path c1t16d22s0 is currently dead.
Warning: CLARiiON device path c1t16d23s0 is currently dead.
Warning: CLARiiON device path c1t16d2s0 is currently dead.
Warning: CLARiiON device path c1t16d3s0 is currently dead.
Warning: CLARiiON device path c1t16d4s0 is currently dead.
Warning: CLARiiON device path c1t16d5s0 is currently dead.
Warning: CLARiiON device path c1t16d6s0 is currently dead.
Warning: CLARiiON device path c1t16d7s0 is currently dead.
Warning: CLARiiON device path c1t16d8s0 is currently dead.
Warning: CLARiiON device path c1t16d9s0 is currently dead.
Warning: CLARiiON device path c2t17d0s0 is currently dead.
Warning: CLARiiON device path c2t17d10s0 is currently dead.
Warning: CLARiiON device path c2t17d11s0 is currently dead.
Warning: CLARiiON device path c2t17d12s0 is currently dead.
Warning: CLARiiON device path c2t17d13s0 is currently dead.
Warning: CLARiiON device path c2t17d14s0 is currently dead.
Warning: CLARiiON device path c2t17d15s0 is currently dead.
Warning: CLARiiON device path c2t17d16s0 is currently dead.
Warning: CLARiiON device path c2t17d17s0 is currently dead.
Warning: CLARiiON device path c2t17d18s0 is currently dead.
Warning: CLARiiON device path c2t17d19s0 is currently dead.
Warning: CLARiiON device path c2t17d1s0 is currently dead.
Warning: CLARiiON device path c2t17d20s0 is currently dead.
Warning: CLARiiON device path c2t17d21s0 is currently dead.
Warning: CLARiiON device path c2t17d22s0 is currently dead.
Warning: CLARiiON device path c2t17d23s0 is currently dead.
Warning: CLARiiON device path c2t17d2s0 is currently dead.
Warning: CLARiiON device path c2t17d3s0 is currently dead.
Warning: CLARiiON device path c2t17d4s0 is currently dead.
Warning: CLARiiON device path c2t17d5s0 is currently dead.
Warning: CLARiiON device path c2t17d6s0 is currently dead.
Warning: CLARiiON device path c2t17d7s0 is currently dead.
Warning: CLARiiON device path c2t17d8s0 is currently dead.
Warning: CLARiiON device path c2t17d9s0 is currently dead.

After clearing the dead paths it will show only the active paths

root@solaris:~ # powermt display
Symmetrix logical device count=12
CLARiiON logical device count=0
Hitachi logical device count=0
Invista logical device count=0
HP xp logical device count=0
Ess logical device count=0
HP HSx logical device count=0
==============================================================================
—– Host Bus Adapters ——— —— I/O Paths —– —— Stats ——
### HW Path Summary Total Dead IO/Sec Q-IOs Errors
==============================================================================
2305 ssm@0,0/pci@1c,700000/pci@3/lpfc@5 optimal 12 0 – 0 0
2308 ssm@0,0/pci@1d,700000/pci@1/lpfc@5 optimal 12 0 – 0 0


阅读(785) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~