1837395 Members
3482 Online
110116 Solutions
New Discussion

mkboot command

 
Michael Yu_1
Occasional Contributor

mkboot command

We had a problem with root mirrored disk and we just replace the disk. We ran following commnad after we added new disk.

vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t2d0
vgchange -a y vg00
vgsync vg00

Now I need to run mkboot command. It's little confusing by looking at man page. Can anyone help me on this? I would like to know how to run mkboot command. Thanks.
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: mkboot command

The correct sequence of commands (including the ones you've mentioned) are ..

# mkboot -l /dev/rdsk/c2t2d0
=> "-l" is for LVM layout.
# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
=> "-lq" is the escape quorum string.
# vgcfgrestore -n vg00 /dev/rdsk/c2t2d0
# vgchange -a y vg00
# vgsync vg00
James R. Ferguson
Acclaimed Contributor

Re: mkboot command

Hi:

Do this:

# mkboot -l /dev/rdsk/cXtYdZ
# mkboot -a "hpux" /dev/rdsk/cXtYdZ
# mkboot -a "hpux -lq" /dev/rdsk/cXtYdZ

Regards!

...JRF...
Paula J Frazer-Campbell
Honored Contributor

Re: mkboot command

Hi

This should help:-

Creating a Root mirror


You cannot create a root mirror (bootable) using SAM.
You have to use the command line options.

The first command itself is pvcreate -B (to create a bootable disk) and SAM wont use the option "-B".

HP's system Admin tasks manual chapter 7.


1> pvcreate -B /dev/rdsk/xyz

2> vgextend /dev/vg00 /dev/dsk/xyz

3> mkboot /dev/rdsk/xyz

4> mkboot -a "hpux (;0) /stand/vmunix" /dev/rdsk/xyz

-a auto_file_string If the -a option is specified, mkboot
creates an autoexecute file AUTO on
device, if none exists. mkboot deposits
auto_file_string in that file. If this
string contains spaces, it must be quoted
so that it is a single parameter.

or use

4> mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/xyz

5> lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/xyz -do this for all the lvols on root disk.

6> lvlnboot -R

7> lvlnboot -v To check if you see both the disks as boot disk.


Paula
If you can spell SysAdmin then you is one - anon
Sridhar Bhaskarla
Honored Contributor

Re: mkboot command



mkboot -l /dev/rdsk/c2t2d0
mkboot -a "hpux -lq" /dev/rdsk/c2t2d0.

Update BDRA.

lvlnboot -b /dev/vg00/lvol1 (or the corresponding lvol)
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2

lvlnboot -v

Do lifls on both the disks and see if the utils are copied.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
PIYUSH D. PATEL
Honored Contributor

Re: mkboot command

Hi,

# pvcreate -B /dev/rdsk/xyz
# mkboot -l /dev/rdsk/c2t2d0
# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0.
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t2d0

# vgchange -a y vg00

Update BDRA.

#lvlnboot the root, swap, boot lvols

#lvlnboot -v

Piyush