免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3466 | 回复: 3
打印 上一主题 下一主题

[新手入门] 为什么会发生AIX系统里vpath设备打不开的情况? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-06 21:34 |只看该作者 |倒序浏览
DS8000, DS6000, AIX

为什么会发生AIX系统里vpath设备打不开的情况?

在AIX环境中如果不按正确的步骤对vpath设备进行操作,就会出现个别vpath设备无法打开的错误。
例如:不exportvg就删除构成该vg的vpath设备和hdisk。

下面我们给出一个范例:

例如当用某个vpath设备创建vg时,系统报错如下:

LABEL: vpath_PATH_OPEN
IDENTIFIER: F45CFAFB

如果察看sdd.log会看到如下的记录:

09:07:26 vpath_open: Get_ReservKey failed for vpath0 path 0. rc=5 a[0].inv=1
09:07:26 Get_ReservKey: Failed. status_val=0x1, bus_status=0x18, adapter_status=0x0

可见问题出在vpath被锁定上。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2011-05-06 22:38 |只看该作者
解锁即可
可参考hacmp的解锁脚本
还有参考如下:
  1. VPATHs inaccessible after AIX upgrade or server replacement.

  2. Technote
  3.   
  4. Problem
  5. VPATHs inaccessible after AIX upgrade or server replacement. Error log records VPATH_RESV_CFLICT errors. Please note that inaccessible vpaths can manifest numerous symptoms such as the inability to import or varyon a volume group.  
  6.   
  7. Cause  
  8. VPATHs inaccessible after AIX upgrade or server replacement. Error log records VPATH_RESV_CFLICT errors. All four of these criteria must be satisified in order for this document to apply:
  9. 1) vpath devices are inaccessible (see note below) after AIX upgrade or server replacement.
  10. 2) A version of SDD for nonconcurrent HACMP was installed prior to the upgrade or replacement.
  11. 3) A version of SDD for nonconcurrent HACMP is installed after the upgrade or replacement.
  12. 4) errpt shows VPATH_RESV_CFLICT errors.

  13. If all four of the above criteria have been satisfied, the problem is most likely caused by a persistent reservation set by the previous level or instance of AIX. Persistent reserves are set by the attached host but managed by the ESS and persist beyond the reboot or reinstall of the attached host.

  14. When AIX does a shutdown, it commits all pending writes to disk but does not varyoffvg the volume group or close its underlying devices. Since the vpath device in an on-line volume group is not closed on a normal shutdown, the persistent reserve is not cleared. Usually this does not present any problems because the same reservation key (stored in the ODM) is used once the host is powered back up.

  15. However, in the event of an AIX upgrade or server replacement, the reservation key is regenerated and may not be same as the reservation key generated by the previous OS. If the persistent reserve set by the previous OS is still in force when the new OS attempts to open the vpath, VPATH_RESV_CFLICT errors will be logged in the system error log and open will fail. This occurs because the new OS reserve key cannot be used to open a LUN previously reserved with the old reserve key.

  16.   
  17. Solution
  18. Verify that no other host has valid access to the affected LUNs. If the LUN is open or volume group is on-line on another host, DO NOT attempt to forcibly clear the reserves. Data corruption can occur.

  19. If no other host has access to the affected LUNs, forcibly clear the stuck persistent reserve by successively executing the following command on all affected vpaths:

  20. lquerypr -c -h /dev/vpath# (Where # is substituted with the vpath special file number)

  21. Then, verify resolution by executing the following on all affected vpaths:

  22. lquerypv -h /dev/vpath# (Where # is substituted with the vpath special file number)

  23. If the vpath is functioning properly, the lquerypv command will return a block of formatted hex. If the vpath is inaccessible for any reason (such as hardware or reservation issues), the lquerypv command will complete without returning anything. At this point, access to vpaths should be regained (i.e. lquerypv returned a blocks of formatted hex).

  24. This problem can be avoided by manually varying off all ESS volume groups prior to upgrading or reinstalling the OS or retiring/replacing the server.
复制代码

论坛徽章:
0
3 [报告]
发表于 2011-05-08 21:36 |只看该作者
一般是在HA环境下才有这种情况吧?

HACMP里用Fast disk takeover就没事了。。。

论坛徽章:
0
4 [报告]
发表于 2011-05-09 09:45 |只看该作者
回复 1# 永恒之恋幻雪


     需要综合考虑一下,最好有IBM驻厂的工程师来解决!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP