gdha / upgrade-ux

upgrade-ux is a framework for smooth patch installation or update-ux on HP-UX 11i, SunOS and Linux
https://it3.be/projects/upgrade-ux/
GNU General Public License v3.0
4 stars 1 forks source link

system did not boot after patching #92

Closed gdha closed 5 years ago

gdha commented 6 years ago

The server is down at the moment. On console I can see the below message , Let me try to boot the system

Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ==> boot vmunix
Seconds left till autoboot -   0
AUTOBOOTING...Could not open file vmunix to check for a directory
Could not open vmunix

loading failed

HPUX>
- - - - - - - - - - - - Live Console - - - - - - - - - - - -

No checks are done yet with lifls etc...

gdha commented 6 years ago

On the 1st boot disk the quorum is not set, which might have caused the issue:

#-> efi_cp -d /dev/disk/disk2_p1 -u /EFI/HPUX/AUTO /tmp/x
#-> cat /tmp/x
boot vmunix
#-> efi_cp -d /dev/disk/disk14_p1 -u /EFI/HPUX/AUTO /tmp/x
#-> cat /tmp/x
boot vmunix -lq

#-> setboot
Primary bootpath : 0/0/0/2/0/0/0.0x0.0x1010000c0000000 (/dev/rdisk/disk2)
HA Alternate bootpath : 0/0/0/2/0/0/0.0x0.0x1000000c0000000 (/dev/rdisk/disk14)
Alternate bootpath : 0/0/0/2/0/0/0.0x0.0x1000000c0000000 (/dev/rdisk/disk14)

Autoboot is ON (enabled)
Hyperthreading : ON
               : ON (next boot)

Let make the first disk bootable with quorum enabled:

#-> mkboot -a "boot vmunix -lq" /dev/disk/disk2

A good read is https://www.helixstorm.com/blog/hp-ux-mirror-root-volume-group-script/