1846585 Members
3058 Online
110256 Solutions
New Discussion

help,help

 
iambluegary
Advisor

help,help

after run a shell script following :
#!/bin/sh
boot_disk=$(lvlnboot -v |tail -4 |head -1 |cut -f3)
cp /sbin/frecover $boot_disk
/sbin/mkboot $boot_disk
reboot


the box cant reboot,and i cant recovering from HP cd,hp engineer tell me that only thing i can do is reinstall hp-ux,is it true?
god
help ,help,help :-)
10 REPLIES 10
Bill McNAMARA_1
Honored Contributor

Re: help,help

/sbin/mkboot $boot_disk

man mkboot

You must do things such as lifcp after this to put the kernel loader and isl (hpux and ipl on the disk)

Search the forums for the correct procedure and scripts.

The procedure is like the procedure to create a mirrored root disk.
search for lifcp, mkboot pvcreate


Later,
Bill
It works for me (tm)
Animesh Chakraborty
Honored Contributor

Re: help,help

Hi,

quote
//Use mkboot to place boot utilities in the boot area:
# mkboot -l /dev/rdsk/c0t5d0

Use mkboot to add an AUTO file in boot LIF area:
# mkboot -a "hpux" /dev/rdsk/c0t5d0

Or, use the -lq option to allow the system to boot in the event that one
of the disks is unavailable, resulting in a loss of quorum.

# mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
NOTE: Use the -lq option when the root volume group contains only 2 disks.
If more than 2 disks are in the root volume group, the -lq option is not
needed as quorum will be maintained even if 1 disk fails.
Check the contents of the AUTO file with

# lifcp /dev/rdsk/c0t5d0:AUTO - //quote ends
Did you take a backup?
S.K. Chan
Honored Contributor

Re: help,help

cp /sbin/frecover $boot_disk

Not sure what are you trying to do here. Your boot device file is overwritten by the file /sbin/frecover ??
Animesh Chakraborty
Honored Contributor

Re: help,help

Hi SK,
I am also not sure what he was trying to do
by that deadly scripts!!!
Did you take a backup?
Bill McNAMARA_1
Honored Contributor

Re: help,help

sorry, should have read the man myself!

I think S K has got it!

Later,

Bill
It works for me (tm)
Trond Haugen
Honored Contributor

Re: help,help

My guess is the aim was to destroy the boot area and recreate it. But the 'cp /sbin/frecover $boot_disk' will destroy the LVM header on the disk...
To only destroy the boot infor you could use 'lifcp /sbin/frecover $boot_disk:'

Trond
Regards,
Trond Haugen
LinkedIn
iambluegary
Advisor

Re: help,help

the script destroy the /dev/rdsk/c0t4d0 ,and now i can do nothing but reinstall.
help ,help,help :-)
Bill McNAMARA_1
Honored Contributor

Re: help,help

if it was only an lvm problem
hpux -lm
would boot, as would recovery cd, however, looks like your / filesystem is hosed too.

As far I can remember the LVM header for a boot disk is 4M.
Although I can't be certain of that...

Later,
Bill
It works for me (tm)
Steve Steel
Honored Contributor

Re: help,help

Hi


I think everybody has covered it.


But FYI


http://www.introcomp.co.uk/hpux/index.html



Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Wodisch_1
Honored Contributor

Re: help,help

Hello,

really not sure WHY you are doing this, but since you now have destroyed your boot-disk's LVM-header, and your LIF-area, have you got a backup (vgcfgbackup) of your boot-disk somewhere?
Then you might be able to boot from core-CD, get a shell, restore the LVM header (vgcfgrestore), restore the LIF-area (mkboot, and mkboot -a "hpux") and then you should be able to boot again...

Just my $0.02,
Wodisch