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

发布于 2022-10-15 07:41:11 字数 544 浏览 49 评论 0

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被锁定上。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

━╋う一瞬間旳綻放 2022-10-22 07:41:11

解锁即可
可参考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.

复制代码

醉生梦死 2022-10-22 07:41:11

一般是在HA环境下才有这种情况吧?

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

坚持沉默 2022-10-22 07:41:11

回复 1# 永恒之恋幻雪

     需要综合考虑一下,最好有IBM驻厂的工程师来解决!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文