La restauración de mksysb falla con el error 0301-165 bosboot failed

Summary: Este artículo se basa en un artículo similar de IBM que se modificó aquí para un contexto de PowerPath. Cuando se crea una imagen mksysb con PowerPath instalado, la restauración de la imagen en un disco con múltiples rutas puede fallar. Esto se debe a que varios discos duros mantienen rootvg, lo que impide que bosboot tenga éxito. En este artículo, se proporcionan todos los pasos solicitados para solucionar el problema. ...

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

La restauración de mksysb falla con el error 0301-165 bosboot failed.
Cuando se intenta restaurar mksysb, cuando se configuran varias rutas a los dispositivos utilizados para restaurar la imagen, se puede producir un error similar al siguiente:
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 existe en un disco SAN con varias rutas configuradas y servidas por PowerPath. En tal caso, se crean varios discos duros con el mismo PVID, lo que provoca que el comando bosboot falle.

Resolution

Enumere los dispositivos que soportan rootvg.
Busque el pseudodispositivo que contiene estos discos duros.
Libere los dispositivos de PowerPath.
Quite los discos duros (todos menos uno).
Ejecute el comando bosboot en el disco duro restante.
Ejecute bosboot en el ipldevice.
Salga

Seleccione la opción 2 cuando falle la restauración de 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: 2

Compruebe los discos 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

Busque el pseudodispositivo correspondiente utilizando cualquier dispositivo de disco duro de esta lista:
# 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


Quite el pseudodispositivo para liberar los discos duros

# powermt remove dev=hdiskpower0

Elimine los discos rootvg duplicados:

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

Uno de los comandos rmdev anteriores falla según lo esperado y solo queda un disco rootvg:
# lspv |grep rootvg
hdisk12         00aabbccddeeffcc                    rootvg          active

Ejecute los comandos bosboot manualmente:
# bosboot -ad /dev/hdisk12
# bosboot -ad /dev/ipldevice

(Es posible que tenga que crear el ipldevice para que el comando "bosboot -ad /dev/ipldevice" se realice correctamente. En nuestro caso, haría esto con "ln /dev/rhdisk12 /dev/ipldevice)

Si los comandos bosboot funcionan, escriba "exit"

# exit

La restauración de mksysb continúa completándose.

Si los comandos bosboot fallan, trabaje con el administrador de almacenamiento para reducir la cantidad de rutas del disco rootvg a una antes de la restauración de mksysb.

Esta solución se deriva de la solución pública de 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.