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 失敗。
嘗試還原 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 的裝置。
找到持有這些硬碟的偽設備。
從 PowerPath 釋放裝置。
卸下硬碟 (除了一個
以外)。針對剩餘的 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

使用此清單中的任何硬碟設備尋找相應的偽設備:
# 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


移除虛擬裝置以釋放硬碟

# 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 磁碟的路徑數減少至一個。

此解決方案派生自公共 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.