02-21-2008
6,876,
694
Join Date: Sep 2005
Last Activity: 10 February 2021, 3:50 AM EST
Location: Switzerland - GE
Posts: 6,876
Thanks Given: 594
Thanked 694 Times in 627 Posts
Here is something for you! From HP Technical knowledge base:
How do I fix the HPUX boot message panic: init died?
How do I fix the HPUX boot message panic: init died?
DocId:
KBRC00001547
Updated:
6/24/00 7:48:09 AM
PROBLEM
A system panics on boot with a message init died:
init died with return value 256.
Please check for init's execute permission,
init's location and the root partition's location.
panic: (display==0xb800, flags==0x0) init died
RESOLUTION
Their are various causes and possible fixes for panic "init died".
Below is a summary of possible causes:
o Corrupt LVM Boot Data Reserved Area (BDRA)
o Corrupt Root filesystem
o Corrupt Autoboot file
o Missing LIF
o Corrupt /stand/vmunix
o Corrupt /etc/inittab
o Corrupt /sbin/init
Here is a list of other documents in the ITRC you might need to help with
this recovery.
How do I fix the boot message IPL error bad LIF magic at 10.X? (KBRC00001074)
How do I fix the boot message IPL error bad LIF magic at 11.X? (KBRC00001355)
How do I boot my system from Support Media on 10.X ? (OZBEKBRC00000581)
How do I boot my system from Support Media on 11.00 ? (OZBEKBRC00000582)
How do I boot my system in single user mode or other mode ? (OZBEKBRC00000607)
1.0 We know the system panics when booting /stand/vmunix. We must
be able to boot an alternate way.
If you need specific help on booting please refer to:
How do I boot my system in single user mode or other mode ?
1.1 First try booting into Maintenance mode on the primary disk.
Boot primary disk and interact with ISL.
At the ISL prompt enter "hpux -lm"
If this works you will get a prompt.
Perform steps 2.0, 2.1, 2.3, 2.6 and 2.7
1.2 If you were unable to boot the system from step 1.1 then try booting
the alternate kernel on the primary disk.
Boot primary disk and interact with ISL.
At the ISL prompt enter "hpux /stand/vmunix.prev"
If this works the system will boot the previous kernel.
Perform steps 2.3 and 2.5
1.3 If you were unable to boot the system from step 1.2 then try
booting the alternate kernel in Maintenance mode
Boot primary disk and interact with ISL.
At the ISL prompt enter "hpux -lm /stand/vmunix.prev"
If this works you will get a prompt.
Perform steps 2.0, 2.1, 2.3, 2.5, 2.6 and 2.7
1.4 If you were unable to boot the system from step 1.3 then try booting
from the mirror (if configured) disk and do not interact with ISL.
If this works the system will boot and sync the primary disk.
Perform steps 2.1 and 2.3
1.5 If you were unable to boot the system from step 1.4 then try booting
from the mirror (if configured) disk and interact with ISL
At the ISL prompt enter "hpux -lm"
If this works you will get a prompt.
Perform steps 2.0, 2.1, 2.3, 2.6 and 2.7
1.6 If you were unable to boot the system from step 1.5 then try booting
from the alternate kernel off the mirror disk (if configured).
Boot the mirror disk and interact with ISL.
At the ISL prompt enter "hpux /stand/vmunix.prev"
If this works the system will boot the previous kernel.
Perform steps 2.3 and 2.5
1.7 If you were unable to boot the system from step 1.6 then try booting
from the alternate kernel in Maintenance mode off the mirror disk
(if configured).
Boot the mirror disk and interact with ISL.
At the ISL prompt enter "hpux -lm /stand/vmunix.prev"
If this works you will get a prompt.
Perform steps 2.0, 2.1, 2.3, 2.5, 2.6 and 2.7
1.8 If you were unable to boot the system from the above steps then
boot the "SUPPORT MEDIA" to make the corrections.
Follow the instructions on how to boot the SUPPORT media, activate
VG00 and mount the required lvols from:
How do I boot my system from Support Media on 10.X ?
How do I boot my system from Support Media on 11.00 ?
Perform steps 2.1, 2.2, 2.3, 2.4, 2.5, 2.6 and 2.7
Below are the steps to correct specific issues.
2.0 How to activate vg00
After booting "-lm" mode you will need to activate VG00, perform
a filesystem check and mount the lvols in VG00. Then we will have
the commands necessary to peform the recovery.
enter "vgchange -a y /dev/vg00" This will activate VG00
enter "fsck -y" This will perform a filesystem check of all
lvols in the fstab file. We are not concerned
about errors on any volume group besides VG00
since they were not activated they will fail.
enter "mount -a" This will perform a mount of all lvols in
the fstab file. We are not concerned about
errors on any volume group besides VG00
since they were not activated they will fail.
enter "/usr/bin/bdf" This will show the mounted lvols.
Now you have the needed HPUX commands.
2.1 How to correct the LVM Boot Data Reserved Area (BDRA)
Typically, if the BDRA is corrupt, the system will still boot in
maintenance mode, but fail to boot in single-user or multi-user mode.
To check the BDRA, you will need to boot maintenance mode or boot
from the Support CD.
Check the the Boot, Root, Swap, and Dump areas. Use lvlnboot to add
any missing information. One common problem is the missing Boot lvol.
The following example assumes JFS is used for the root filesystem
(meaning you have a seperate lvol for /stand).
enter "lvlnboot -v /dev/vg00"
This sample shows a primary boot disk and a mirror boot disk.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (10/0.6.0) -- Boot Disk <--- Primary boot disk
/dev/dsk/c0t5d0 (10/0.5.0) -- Boot Disk <--- Mirror boot disk
Boot: lvol1 on: /dev/dsk/c0t6d0
Boot: lvol1 on: /dev/dsk/c0t5d0 <---------- Mirror boot disk
Root: lvol3 on: /dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c0t5d0 <---------- Mirror boot disk
Swap: lvol2 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t5d0 <---------- Mirror boot disk
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
BOOT: lvol1
When '/stand' is on a separate logical volume.
If your not sure check /etc/fstab for a seperate lvol for /stand.
ROOT: lvol3
When /stand is a seperate lvol then root is usually on lvol3.
ROOT: lvol1
When /stand is NOT a seperate lvol then root is on lvol1.
Even though the BDRA looks correct it may still be corrupt, so you
should rewrite the BDRA. The commands below will rewrite a typical
BDRA.
"lvrmboot -r /dev/vg00" Removes the info from the BDRA
"lvlnboot -b /dev/vg00/lvol1" Writes the boot info to the BDRA
"lvlnboot -r /dev/vg00/lvol3" Writes the root info to the BDRA
"lvlnboot -s /dev/vg00/lvol2" Writes the swap info to the BDRA
"lvlnboot -d /dev/vg00/lvol2" Writes the dump info to the BDRA
"lvlnboot -R /dev/vg00" Updates the BDRA
"lvlnboot -v /dev/vg00" Displays the BDRA
2.2 How to fix a Root filesystem
Depending on the corruption of the root filesystem you might have to
boot the support media and fsck the filesystem. The fsck may fix the
corruption or indicate that there is a bad block. If fsck cannot fix
the root or stand filesystem then the HPUX will have to be reinstalled.
You will need to boot the "SUPPORT MEDIA" and fsck your boot disk.
If you need specific help please refer to:
How do I boot my system from Support Media on 10.X ?
How do I boot my system from Support Media on 11.00 ?
2.3 How to correct a Autoboot file
Rewrite the the boot LIF (autoboot file).
Sometimes the AUTO string looks correct but it is corrupt and it should
be rewritten with the full information.
In this example the boot disk is at hardware address 10/0.6.0 which is
equall to /dev/dsk/c0t6d0.
enter "mkboot -a "hpux (10/0.6.0;0)/stand/vmunix" /dev/rdsk/c0t6d0"
To verify the AUTO string:
enter "lifcp /dev/rdsk/c0t6d0:AUTO -"
You should see: "hpux (10/0.6.0;0)/stand/vmunix"
2.4 How to write a missing LIF
Refer to:
How do I fix the boot message IPL error bad LIF magic at 10.X?
How do I fix the boot message IPL error bad LIF magic at 11.X?
2.5 How to replace a bad /stand/vmunix
If you were able to boot /stand/vmunix.prev then you should restore
/stand/vmunix from backup. If a backup is not available then copy
/stand/vmunix.prev to /stand/vmunix and make a new kernel.
If you were not able to boot the system disks then you will need to
boot off the Support Media. From the SUPPORT media you should recover
your /stand/vmunix from backup and reboot. The other choice would be
to load a generic kernel from the SUPPORT media, reboot and then
remake a kernel with SAM.
Refer to:
How do I boot my system from Support Media on 10.X ?
How do I boot my system from Support Media on 11.00 ?
2.6 How to replace a bad /etc/inittab
Recover /etc/inittab from backup or copy the default file from
/usr/newconfig/etc/inittab and edit the file for your system.
2.7 How to replace a bad /sbin/init
Recover /etc/init from backup and verify the permissions are
555 with bin/bin as user/group. Also /etc/init should be
symbolically linked to /sbin/init.
-----
I cant do more for you at the moment... keep us informed and good luck