Operating System - HP-UX
1753609 Members
6007 Online
108797 Solutions
New Discussion

Exec failed: Exec format error

 
SOLVED
Go to solution
Vitorxx
Occasional Contributor

Exec failed: Exec format error

After mirror disk boot failure on HP-UX V1 PARISC, I follow the procedure below:

 

1-Unfortunately I had to restart the server

2- Then replaced the bad disk

3- vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtxdx
4-mkboot /dev/rdsk/cxtxdx
5-mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/cxtxdx
6- vgchange -a y /dev/vg00
7-lvlnboot -Rv /dev/vg00
8-vgsync /dev/vg00

 

After that when I try to boot from the disk that I replaced I receveid the error (Exec failed: Exec format error), and stop on "ISL prompt" if I put "hpux" I can start the HP-UX normally.

 

What I did wrong on my procedure? How can I fix it and boot normally from the both disks.

 

Thanks.

 

4 REPLIES 4
ChrisTinker
Established Member
Solution

Re: Exec failed: Exec format error

Given that you can type “hpux” and this secondary boot loader calls and execs /stand/vmunix successfully, the problem is your auto file and your hpux syntax.. calling disc (;0).

 

There is no need to call out the disc parameter – even still, if you type HPUX it should show you the correct disc(path;partition).

 

Do the following:

/usr/sbin/mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/cXtXdX  

 

Make sure to updated the bootconf with the new disk (if it has a new device name!)

# cat /stand/bootconf 

If it is missing the disc, update the file

# echo "1 /dev/dsk/cXtXdX" >> /stand/bootconf

 

#Confirm that LVM BDRA has been updated

/usr/sbin/lvlnboot -b /dev/$DG/lvol1

/usr/sbin/lvlnboot -r /dev/$DG/lvol3

/usr/sbin/lvlnboot -s /dev/$DG/lvol2

/usr/sbin/lvlnboot -d /dev/$DG/lvol2

/usr/sbin/lvlnboot -R /dev/$DG

I am an HP employee.

Twitter/FaceBook My twin brother and I @TinkerTwinsatHP

Our Blogs are at http://h30507.www3.hp.com/t5/Technical-Support-Services-Blog/bg-p/TechnicalSupportServicesBlog

boukari
Frequent Advisor

Re: Exec failed: Exec format error

Hello,

In normal conditions you have just to do that with mirrored root disk:

vgcfgrestore -n /dev/vgXX /dev/rdsk/cxtxdx
vgchange -a y /dev/vgXX
vgsync /dev/vgXX

 

take a look here :

http://www.datadisk.co.uk/html_docs/hp/hpux_lvm.htm

 

So, you do :

4-mkboot /dev/rdsk/cxtxdx
5-mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/cxtxdx

and

7-lvlnboot -Rv /dev/vg00

as extra commands

 

BCS SW/HW GSC Engineer (L1)
IEEE Student Member
LPI 3 CORE & High Availability
VCP Vshpere 5 Datacenter
Novell CLA and Data Center specialist Certified
.....
Microsoft Partner & Microsoft student Partner
boukari
Frequent Advisor

Re: Exec failed: Exec format error

To Resolve That:

 

Verify that the mirrored disk is displayed as a boot disk and that the boot, root, and swap logical
volumes appear on both disks:
# lvlnboot –v 

Verify that the disk that you want to booted with is not specified in /stand/bootconf or not set as primary:

#cat /stand/vmunix

 

Specify the pripmary disk boot path in nonvolatile memory:
# setboot –p 0/1/1/0.1.0


To add a line to /stand/bootconf for the new boot disk, use vi or another text editor :

#vi /stand/bootconf
l /dev/dsk/c2t1d0s2

 

HP Manual (-When Good Disk Go Bad):

http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

 

Good Luck,

BCS SW/HW GSC Engineer (L1)
IEEE Student Member
LPI 3 CORE & High Availability
VCP Vshpere 5 Datacenter
Novell CLA and Data Center specialist Certified
.....
Microsoft Partner & Microsoft student Partner
Vitorxx
Occasional Contributor

Re: Exec failed: Exec format error

Thank you Guys.
The problem was in "/stand/bootconf" I followed the procedure.

# echo "1 /dev/dsk/cXtXdX" >> /stand/bootconf

#Confirm that LVM BDRA has been updated

/usr/sbin/lvlnboot -b /dev/$DG/lvol1

/usr/sbin/lvlnboot -r /dev/$DG/lvol3

/usr/sbin/lvlnboot -s /dev/$DG/lvol2

/usr/sbin/lvlnboot -d /dev/$DG/lvol2

/usr/sbin/lvlnboot -R /dev/$DG

Thank You!!! Have a great day!