Operating System - HP-UX
1752794 Members
6696 Online
108789 Solutions
New Discussion юеВ

HPUX won't boot if only one disk

 
Alexandre Stefani
Occasional Advisor

HPUX won't boot if only one disk

Hi experts.

I have a 9000 server rp2470. The root disk is mirrored, and the disks are on two different SCSI links.
When I have both disks, "hpux" boots normally, when I have the second one only, idem.
When I have the first one only... crash !

My disks are /dev/dsk/c1t15d0
and /dev/rdsk/c3t15d0
I used the commands
mkboot /dev/dsk/c1t15d0
mkboot -a "hpux -lq" /dev/rdsk/c1t15d0
mkboot -b "/usr/sbin..." -p LABEL [others -p options] /dev/rdsk/c1t15d0

The same on /dev/rdsk/c3t15d0

What did I forget ?

Thanks.
Tant que ├Г┬зa marche
10 REPLIES 10
Rajeev  Shukla
Honored Contributor

Re: HPUX won't boot if only one disk

Hi,
Did you update the LVM configuration by doing lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -R /dev/vg00/lvol3
lvlnboot -d /dev/vg00/lvol2

Use lvlnboot -v to disk the information and you should have both the disks in it.
Also i guess you made the disk bootable by using pvcreate -B and mirrored all vg00 lvols to the other disk.

Cheers
Rajeev
A. Clay Stephenson
Acclaimed Contributor

Re: HPUX won't boot if only one disk

1) When you created you mirror disk with pvcreate, did you use pvcreate -B to set aside space for the boot area? If not, the boot data was clobbered when you created the LVOL mirrors.

2) Are all the LVOL's on the boot disk mirrored?

You really only need this command for mkboot:

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t15d0
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: HPUX won't boot if only one disk

Hi:

Perhaps you didn't make the mirrored disk bootable when you first 'pvcreate'd it:

# pvcreate -B /dev/rdsk/cXtyDz

In order to verify this do:

# lvlnboot -v

...if the disk in question isn't listed as a "boot disk" then, it isn't, regardless of the 'mkboot'.

Regards!

...JRF...
Michael Tully
Honored Contributor

Re: HPUX won't boot if only one disk

If your 'lvlnboot' information does not produce this type of output for both disks, you will only be ablt to boot off one.

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (0/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

and lifls for both disks, where the output must contain 'AUTO' and 'HPUX'
# lifls /dev/rdsk/c0t6d0

Anyone for a Mutiny ?
James R. Ferguson
Acclaimed Contributor

Re: HPUX won't boot if only one disk

Hi (again):

One other note. Assuming you 'pvcreate'd correctly ('-B') and given that your 'mboot' commands appear correctly (including the low quorum flag), make sure that your first three logical volumes are mirrored in the same order as the original boot disk. If not, remirror them and retry the boot.

Regards!

...JRF...
Ray Carlson
Frequent Advisor

Re: HPUX won't boot if only one disk

I'm betting that the simpliest solution is the correct one. ie Either you didn't put the -lq in the mkboot or it didn't take properly. To determine if this is the problem, stop the boot during the startup and manually select the correct address and then in ISL make sure it includes the hpux -lq.
Ray
Steven E. Protter
Exalted Contributor

Re: HPUX won't boot if only one disk

assuming lvm configuration is correct, you sill might need to interupt boot and set up an alternate boot path.

If you've followed the above posts(I have a cookbook for it too, from HP, just ask) and you pull the primary boot disk and the alternate book path isn't set up, the machine still won't boot.

Interupt boot at the 10 second prompt as I call it, follow the menus and display the boot paths. Make sure the second disk is an alternate boot path.

I actually don't bother with this. If the primary disk fails, I want the boot to fail, so I'm aware of the disk failure. Operations calls, I talk them through the boot and then I know I have a service call.

When I set it up automatic and am not in town(training, whatnot) operations usually doesn't not the warning that the machine booted off the alternate path.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alexandre Stefani
Occasional Advisor

Re: HPUX won't boot if only one disk

Thank you all for answering so soon.

I did everyting what you wrote :
pvcreate -B /dev/dsk/c3t15d0
lvlnboot -s /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol1
lvlnboot -d /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol3

The lvlnboot -v confirmed this.
Then the mkboot...
Here I notice a difference between what I did and what A.Clay wrote, I did not specify "(;0)/stand/vmunix"
As for the lifls, it's OK.

Now, here is the story : we were delivered an RP2470 with two disks. The second disk was not used and I did the [pvcreate -B, mkboot [-a ..., -b ...], lifls ...].
Then the reboot *did* work with the *mirrored* disk only, but not with the *initial* disk only.
(NB : It works fine with both disk, as expected.)
Hence, I did a mkboot "hpux -lq" for the *initial* disk followed by a lifls...

Well, well. Thanks to your information, I guess the best thing to do is to do all the work from scratch on the *initial* like I did on the mirrored disk previously.

I'll let you tomorrow, late, since... my client has a huge network but no Internet access.

Thanks again.

Alex.
Tant que ├Г┬зa marche
F Verschuren
Esteemed Contributor

Re: HPUX won't boot if only one disk

is the other info does not work ypu can alsow try:

vgchange -q (quorum) Set the quorum enforcement for each specified volume group.
Please turn the quorum of on vg00