1846620 Members
1791 Online
110256 Solutions
New Discussion

mkboot

 
Sylvie Vezina
Occasional Advisor

mkboot

Hi, Where can I find info about mkboot. What is the boot file path. I want to mirror disk 0/0/2/0.2.0. Could you tell me which param. I have to enter: mkdboot -a "(????????)/stand/vmunix" /dev/rdsk/c2t2d0.

Thanks
The best day is today
6 REPLIES 6
Wim Rombauts
Honored Contributor

Re: mkboot

Normally, you just have to enter mkboot -a hpux.

Are you using MirrorDisk/UX to mirror your root disk ? Or are you just creating a spare boot disk that you can use in times of trouble ?
Robin Wakefield
Honored Contributor

Re: mkboot

Hi Sylvie,

This is typically what we'd use:

/usr/sbin/mkboot -a "hpux -lq disk(0/0/2/0.2.0;0)/stand/vmunix" /dev/rdsk/c2t2d0

Rgds, Robin.
Sridhar Bhaskarla
Honored Contributor

Re: mkboot

Sylvie,

This is the procedure I follow to create a boot disk. I suppose you are going with mirroring. In that case it will be safe to specify "hpux -lq" string.

1. pvcreate -B /dev/rdsk/c0t0d0
2. vgextend vg00 /dev/dsk/c0t0d0
3. mkboot /dev/rdsk/c0t0d0
5. mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t0d0
6. cd /usr/sbin/diag/lif
7. mkboot -vb updatediaglif2 -p ISL -p HPUX -p AUTO /dev/rdsk/c0t0d0
8. lvlnboot -b /dev/vg00/stand_lvol
9. lvlnboot -r /dev/vg00/root_lvol
10. lvlnboot -s /dev/vg00/swap_lvol
11. lvlnboot -d /dev/vg00/dump_lvol
12. lvlnboot -R and verify by lvlnboot -v

You can verify the autostring using the command

lifcp /dev/dsk/c0t0d0:AUTO -

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Stefan Farrelly
Honored Contributor

Re: mkboot

To mirror vg00 all you need to do is;

1. identify which disk you want to use and it needs to be free (nothing else using it already).

2. pvcreate -B /dev/rdsk/cxxxxxxx

3. for i in $(ls /dev/vg00/lvol*)
do
lvextend -m 1 $i /dev/dsk/cxxxxxx
done

4. lvlnboot -v (to confirm its listed as bootable and swap/dump/root are listed on the new disk)

Thats all.
Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor

Re: mkboot

Hi:

After you have mirrored your boot disk, you may want to boot from it and having done so, verify that you booted from where you think you did:

# echo 'boot_string/S'|adb /stand/vmunix /dev/mem
This will return something like:

boot_string:
boot_string: disc(10/0.6.0;0)/stand/vmunix

You can then relate this to the disk device file by examining the output of 'lvlnboot -v'.

Regards!

...JRF...

Re: mkboot

Don't forget to also change the alternate boot path in stable storage after the mirroring operations are complete:

setboot -a 0/0/2/0.2.0

HTH

Duncan

I am an HPE Employee
Accept or Kudo