1833980 Members
1862 Online
110063 Solutions
New Discussion

Re: System doesn't boot

 
tarek_3
Frequent Advisor

System doesn't boot

Hi
I have a D280 Class (HP-UX 11i), recentely the slot of the scsi Card became defected , so i change the location of the scsi card, after this modification, i change the primary path to the new address of the boot disk and i boot the system into maintenance mode, i remove the lvmtab file and execute the vgscan, the lvmtab point now to the new hardware address of the boot disk. but the system doesn't boot yet
but if a boot the system into maintanace mode i see the following error ( can't open /dev/vg00/lvol1) and i can activate the volume group vg00 and i can boot the system to level three by executing the command init 3.
so i can boot the system manually (maintenance mode --> activate vg00 manually, run init 3),but the system can't boot automatically.
What should i do next ??
Regards
Hassoun
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: System doesn't boot

Hi Hassoun,

Could you post the output of

# lvlnboot -v

# setboot

Regards,
Robert-Jan
Shyjith P K
Frequent Advisor

Re: System doesn't boot

Hi,

Can you make sure that root,boot and swap are pointing to the new disk address?

lvlnboot -v vg00

Rgds
Shyjith
Sudeesh
Respected Contributor

Re: System doesn't boot

see if lvlnboot -v shows the boot,swap,root and dump correctly. It should display something like this if everything is fine.
________________________________

lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t5d0 (8/4.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t5d0
Root: lvol3 on: /dev/dsk/c0t5d0
Swap: lvol2 on: /dev/dsk/c0t5d0
Dump: lvol2 on: /dev/dsk/c0t5d0, 0

_________________________________

If not update it using:

lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3


Hope this helps

Sudeesh
The most predictable thing in life is its unpredictability
tarek_3
Frequent Advisor

Re: System doesn't boot

Hi
please find below the outout of the commands
# setboot
Primary bootpath : 8/8.9.0
Alternate bootpath : 8/16/5.0.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t9d0 (8/8.9.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t9d0
Root: lvol3 on: /dev/dsk/c3t9d0
Swap: lvol2 on: /dev/dsk/c3t9d0
Dump: lvol2 on: /dev/dsk/c3t9d0, 0

and 8/8.9.0 is the new path

Regards
TS
DCE
Honored Contributor

Re: System doesn't boot

You probably still have the AUTO file in the boot (LIF) area hard coded to the the old disk location

You can verify this by the following command:

lifcp /dev/rdsk/cXtXdX:AUTO -

substitute your disk for cXtXdX

If the address is in the AUTO file, you will need to change it. I would recommend not hard coding the disk address but use one of the following commands:

mkboot -a "hpux" /dev/rdsk/cXtXdX

or if the system is mirrored run the following command against both boot disks:

mkboot -a "hpux -lq" /dev/rdsk/cXtXdX

Morcos
Super Advisor

Re: System doesn't boot

Hi hassoun,

boot in maintenance mode,mv /etc/lvmtab, do vgscan
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3
will make boot,root and swap point to the new disk.
hope this helps

regards,
ziad
Greg OBarr
Regular Advisor

Re: System doesn't boot

You might want to check the contents of /stand/bootconf as well.

-greg
Kent Ostby
Honored Contributor

Re: System doesn't boot

hassoun --

What is the error you are getting when trying to boot ?

If you can boot in -lm, but not otherwise, then it could be a couple of things:

#1) your autoboot string does not point to the correct disk. This can be fixed with:

mkboot -a "hpux -lq" /dev/rdsk/c3t9d0

#2) Your lvlnboot info might be bad:

lvrmboot -a /dev/vg00
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
tarek_3
Frequent Advisor

Re: System doesn't boot

hi

the problem is fixed by re-executing lvlnboot commands

Regards
HS
Torsten.
Acclaimed Contributor

Re: System doesn't boot

probably the best way to change the hardware path to the boot disk is to vgexport / vgimport the vg00 in lvm maintenance mode.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!