Operating System - HP-UX
1834935 Members
2339 Online
110071 Solutions
New Discussion

possible problem with mkboot

 
SOLVED
Go to solution
Mark Greene_1
Honored Contributor

possible problem with mkboot

I'm setting up an L2000, and am trying to mirror the internal disks. So far I have done the following:

- lvreduced all lvols

- vgremoved the disk from the volume group

- mkboot -v /dev/dsk/c2t2d0

- mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/dsk/c2t2d0

- vgextend /dev/vg00 /dev/dsk/c2t2d0

I get no error back from any of the above. Yet, lnlnboot is not showing that the second disk is now a boot device:

- lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

So, what did I miss?

It appears that the mkboot worked correctly:

- lifls -Cl /dev/dsk/c2t2d0|pg
volume ISL10 data size 7984 directory size 8 99/10/28 15:23:53
filename type start size implement created
===============================================================
ISL -12800 584 240 0 99/10/28 15:23:53
AUTO -12289 824 1 0 99/10/28 15:23:53
HPUX -12928 832 800 0 99/10/28 15:23:53
PAD -12290 1632 1700 0 99/10/28 15:23:54
LABEL BIN 3336 8 0 02/05/28 10:08:10

Any suggestions are appreciated!
mark
the future will be a lot like now, only later
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor
Solution

Re: possible problem with mkboot

Hi Mark:

When you first prepared the mirror disk, did you do a 'pvcreate -B' on it? If not, this is your problem.

Regards!

...JRF...
John Palmer
Honored Contributor

Re: possible problem with mkboot

Did you pvcreate -B ?

Regards,
John
A. Clay Stephenson
Acclaimed Contributor

Re: possible problem with mkboot

On your mirror disk, did you do a pvcreate -B to reserve space for boot stuff? You will also need the -f (force) flag set to force the pvcreate on a previously used disk.
If it ain't broke, I can fix that.
Frederic Sevestre
Honored Contributor

Re: possible problem with mkboot

Hi,

may you try a lvlnboot -R to update the BDRA.

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Helen French
Honored Contributor

Re: possible problem with mkboot

What about these steps:

# pvcreate -B
# mkboot -B
# lvextend -m 1 ???
Life is a promise, fulfill it!
Mark Greene_1
Honored Contributor

Re: possible problem with mkboot

No, I did not. I (incorrectly, it seems) assumed because it had been setup like that previously, that the device files would still be ok.

I had done an ignite tape on it, and then booted the system from an ignite tape from our other L2000 in order to test swaping drives in the SC10 array. Once I was sure I had the correct order of events for doing that, I rebooted it from the original ignite tape in order to restore the system to the original setup. I thought all I'd have to do is reset the mirrors. I guess not.

Thanks for the pointer, I'll let you know how it goes.

Mark
the future will be a lot like now, only later
Mark Greene_1
Honored Contributor

Re: possible problem with mkboot

The pvcreate -B did the trick, thanks to all who pointed that out.

Frederic: I did not try your suggestion, but it looks like that would work ok as well.

I will say that I am a bit disappointed at the amount of "disconnection" in the various HP-UX commands. I would have liked to have seen an error, or at least a warning, from mkboot or lifls that the device file was not created with a reserved boot area.

mark
the future will be a lot like now, only later
John Dvorchak
Honored Contributor

Re: possible problem with mkboot

Our onsite HP SE gave me the following procedure and it has work numerous times for me:

pcvreate -B /dev/rdsk/c_t_d_

vgextend /dev/vg00 /dev/dsk/c_t_d_

lvlnboot -Rv

mkboot /dev/rdsk/c_t_d_

mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c_t_d_

lifls -l /dev/rdsk/c_t_d_

mkboot -a "hpux -lq (52.4.0;0)/stand/vmunix" /dev/rdsk/c_t_d_

lifcp /dev/dsk/c_t_d_

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c_t_d_

vi /stand/bootconf to make sure it contains all boot devices.

lvlnboot -Rv to update BDRA...MUST DO

setboot to make sure it knows primar and alternate boot paths.


Good luck
If it has wheels or a skirt, you can't afford it.