mksysb 还原失败,并显示错误 0301-165 bosboot 失败

Summary: 本文基于类似的 IBM 文章,此处已针对 PowerPath 上下文进行了修改。在安装 PowerPath 的情况下创建 mksysb 映像时,在多路径磁盘上还原映像可能会失败。这是因为多个 hdisk 持有 rootvg,导致 bosboot无法成功。本文提供了解决该问题所需的所有步骤。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

mksysb 还原失败,并显示错误 0301-165 bosboot failed。
当尝试恢复 mksysb 时,当配置了多个路径到用于恢复映像的设备时,可能会出现类似于以下内容的错误:
0301-165 bosboot: WARNING! bosboot failed - do not attempt to boot device.
BOS Install: Could not create boot image.
   ID#        OPTION
     1        Continue
     2        Perform System Maintenance and Then Continue
   Enter ID number:

Cause

Rootvg 存在于具有多个路径的 SAN 磁盘上,并由 PowerPath 提供服务。在这种情况下,会使用相同的 PVID 创建多个 hdisk,从而导致 bosboot命令失败。

Resolution

列出支持 rootvg 的设备。
找到持有这些 hdisk 的伪设备。
从 PowerPath 释放设备。
删除 hdisk(除了一个
之外的所有)。针对剩余的 hdisk 运行 bosboot命令。
针对 ipldevice 运行 bosboot。
mksysb 恢复失败时退出

选择选项 2:
0301-165 bosboot: WARNING! bosboot failed - do not attempt to boot device.
BOS Install: Could not create boot image.
   ID#        OPTION
     1        Continue
     2        Perform System Maintenance and Then Continue
   Enter ID number: 2

检查 rootvg 磁盘:
# lspv |grep rootvg
hdisk0          00aabbccddeeffcc                    rootvg          active
hdisk2          00aabbccddeeffcc                    rootvg          active
hdisk4          00aabbccddeeffcc                    rootvg          active
hdisk6          00aabbccddeeffcc                    rootvg          active
hdisk8          00aabbccddeeffcc                    rootvg          active
hdisk10         00aabbccddeeffcc                    rootvg          active
hdisk12         00aabbccddeeffcc                    rootvg          active
hdisk14         00aabbccddeeffcc                    rootvg          active

使用此列表中的任何 hdisk 设备查找相应的伪设备:
# powermt display dev=hdisk0

Pseudo name=hdiskpower0
Symmetrix ID=000297000000
Logical device ID=0000013C
Device WWN=60000970000297000000533030313343
state=alive; policy=SymmOpt; queued-IOs=0
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   3 fscsi7                 hdisk0     FA  3d:04 active   alive      0      0
   3 fscsi7                 hdisk2     FA  1d:04 active   alive      0      0
   2 fscsi6                 hdisk4     FA  4d:04 active   alive      0      0
   2 fscsi6                 hdisk6     FA  6d:04 active   alive      0      0
   2 fscsi6                 hdisk8     FA  2d:08 active   alive      0      0
   1 fscsi5                 hdisk10    FA  3d:04 active   alive      0      0
   1 fscsi5                 hdisk12    FA  1d:04 active   alive      0      0
   0 fscsi4                 hdisk14    FA  4d:04 active   alive      0      0


删除伪设备以释放 hdisk

# powermt remove dev=hdiskpower0

删除重复的 rootvg 磁盘:

# rmdev -dl hdisk0
# rmdev -dl hdisk2
# rmdev -dl hdisk4
# rmdev -dl hdisk6
# rmdev -dl hdisk8
# rmdev -dl hdisk10
# rmdev -dl hdisk12
# rmdev -dl hdisk14

上述某个 rmdev 命令按预期失败,并且仅保留一个 rootvg 磁盘:
# lspv |grep rootvg
hdisk12         00aabbccddeeffcc                    rootvg          active

手动执行 bosboot 命令:
# bosboot -ad /dev/hdisk12
# bosboot -ad /dev/ipldevice

(您可能必须创建 ipldevice,才能使“bosboot -ad /dev/ipldevice”命令成功。在我们的例子中,你可以使用“ln /dev/rhdisk12 /dev/ipldevice”来执行此操作

如果 bosboot 命令起作用,则键入“exit”

# exit

mksysb 恢复继续完成。

如果 bosboot命令失败,请与您的存储管理员合作,在 mksysb 还原之前将 rootvg磁盘的路径数减少到 1。

此解决方案源自公共 IBM 解决方案 https://www.ibm.com/support/pages/mksysb-restore-fails-error-0301-165-bosboot-failed

Affected Products

PowerPath for AIX
Article Properties
Article Number: 000219423
Article Type: Solution
Last Modified: 15 Nov 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.