Operating System - HP-UX
1753511 Members
5173 Online
108795 Solutions
New Discussion юеВ

Problems mirroring a boot disk in 11.23

 
SOLVED
Go to solution
ITeam
Super Advisor

Problems mirroring a boot disk in 11.23

Hi.

I am in the process of mirroring a boot disk. This mirror disk is to be made bootable itself. When I execute:

mkboot -a "hpux -lq /stand/vmunix" /dev/dsk/c2t0d0

... I receive the following:

'-a specified but no current boot area on c2t0d0'.

I have already done:

pvcreate -B /dev/rdsk/c2t0d0
& added the mirror disk into the same VG that the original is in.
Then ...

mkboot /dev/dsk/c2t0d0

Am I missing a command?

Many thanks.

David
17 REPLIES 17
Arunvijai_4
Honored Contributor

Re: Problems mirroring a boot disk in 11.23

Hi David,

Please take a look at this thread,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=694618

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor
Solution

Re: Problems mirroring a boot disk in 11.23

check this:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=703819

View Slawomir Gora attachment.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Problems mirroring a boot disk in 11.23

Use this also,

http://docs.hp.com/en/5990-8172/ch06s02.html#cchgjafa

hth.
Easy to suggest when don't know about the problem!
Mahesh Kumar Malik
Honored Contributor

Re: Problems mirroring a boot disk in 11.23

Hi David

Following is procedure for mirroring boot disk:

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c2t0d0 is the disk you want to make a mirror of.

1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c2t0d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c2t0d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c2t0d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c2t0d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t0d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t0d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t0d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.2.0) -- Boot Disk
/dev/dsk/c2t0d0 (1/0/1/0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

vgdisplay -v vg00

Then lvextend for all other lvols:

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c2t0d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c2t0d0

setboot
setboot -a 52.1.0 # second disk

Regards
Mahesh

Sudeesh
Respected Contributor

Re: Problems mirroring a boot disk in 11.23

what is your server model .. itanium or PARISC? mirroring procedure for these two are diffrent.


Sudeesh
The most predictable thing in life is its unpredictability
Thayanidhi
Honored Contributor

Re: Problems mirroring a boot disk in 11.23

Hi,
You have to create partition using "idisk" in Itanium servers before you can make boot mirror.

Refer to man page for more details. You need to create partition file before running idisk.
Also you will notice the device files will be ending with section (cXtYdZs1...)

Regds
TT


Attitude (not aptitude) determines altitude.
Torsten.
Acclaimed Contributor

Re: Problems mirroring a boot disk in 11.23

Hi,

if you have an itanium based system, you have to follow another procedure.

see this document and locate the section "Mirroring a Boot Disk with LVM on HP-UX 11i for HP Integrity Servers"

http://docs.hp.com/en/5990-8172/ch06s02.html#cdebgaei

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!   
ITeam
Super Advisor

Re: Problems mirroring a boot disk in 11.23

I have read throught the replies - thanks. I am still struggling to get this to work. lvlnboot -v shows that the mirror disk is marked as a boot disk. I receive the same message though, when running:

mkboot -a "hpux -lq /stand/vmunix" /dev/dsk/c2t0d0

(-a specified but no current boot area on c2t0d0).

Thanks.

Torsten.
Acclaimed Contributor

Re: Problems mirroring a boot disk in 11.23

Hi David,

be aware of that pvcreate -B doesn't make the disk bootable. The space only will be reserved.

Make your disk bootable with

mkboot -l /dev/rdsk/cxtxdx

check with

lifls -l /dev/rdsk/cxtxdx

(this is "L", not one)

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!