Operating System - HP-UX
1824976 Members
3814 Online
109678 Solutions
New Discussion юеВ

Mirroring the Root File System

 
Kevin Griesmar
Occasional Advisor

Mirroring the Root File System

I am trying to add a secondary boot disk on one of our HP9000 N-Class Servers and when I try to boot off the Alt boot device I recieve the following message.

disk (0/0/2/1.6.0.0.0.0.0;0) /stand/vmunix:cannot open, or not executable.

When I created the pv I used
mkboot -a "hpux (0/0/2/1.6.0.0.0.0.0;0)/stand/vmunix" /dev/rdsk/c2t6d0

Is this the correct way to add an AUTO file in the boot LIF area?

Thanks in advance for your replies!!
8 REPLIES 8
Philip Chan_1
Respected Contributor

Re: Mirroring the Root File System

Have you initialized your physical volume with the "-B" option (pvcreate -B)? that would reserve the boot block in order for the pv to be bootable.
Printaporn_1
Esteemed Contributor

Re: Mirroring the Root File System

Hi,

Following is correct steps for configure root mirroring

-------------
1. Create a bootable LVM disk to be used for the mirror.
# pvcreate -B /dev/rdsk/c4t6d0
2. Add this disk to the current root volume group.
# vgextend /dev/vg00 /dev/dsk/c4t6d0
3. Make the new disk a boot disk.
# mkboot /dev/rdsk/c4t6d0
4. Copy the correct AUTO file into the new LIF area.
# mkboot -a "hpux -l q (;0)/vmunix" /dev/rdsk/c4t6d0
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/c4t6d0
The following is an example of mirroring the root logical volume:
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c4t6d0
The following is an example of mirroring the primary swap logical
volume:
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c4t6d0
NOTE The boot logical volume (/dev/vg00/lvol1 by default) must be done first to
ensure that it occupies the first contiguous set of extents on the new disk.
6. Update the boot information contained in the BDRA for the mirror
copies of boot, root and primary swap.
# /usr/sbin/lvlnboot -b /dev/vg00/lvol1
# /usr/sbin/lvlnboot -v -r /dev/vg00/lvol3
# /usr/sbin/lvlnboot -s /dev/vg00/lvol2
7. Check if the BDRA is correct.
# /usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
# lvlnboot -v
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c4t5d0 (10/0.5.0) Boot Disk
/dev/dsk/c4t6d0 (10/0.6.0) Boot Disk
Boot: lvol1 on: /dev/dsk/c4t5d0
/dev/dsk/c4t6d0
Root: lvol3 on: /dev/dsk/c4t5d0
/dev/dsk/c4t6d0
Swap: lvol2 on: /dev/dsk/c4t5d0
/dev/dsk/c4t6d0
Dump: lvol2 on: /dev/dsk/c4t6d0, 0
--------------------

assume that primary disk is /dev/dsk/c4t5d0
mirror disk is /dev/dsk/c4t6d0

thanks
enjoy any little thing in my life
Andreas Voss
Honored Contributor

Re: Mirroring the Root File System

Hi,

to make things simpler i put you a script at attachment to mirror the root/boot disk.

Regards
Kevin Griesmar
Occasional Advisor

Re: Mirroring the Root File System

Phillip - To answer your question yes I did use the -B option

Andreas- I am going to test your script on one of my "spare" servers I'll let you know the results!

Thanks everyone! I will assign you all some points for the help.

Kevin
Mark Mitchell
Trusted Contributor

Re: Mirroring the Root File System

Here are 3 important things to check.

1. when creating the mirrors, make sure that the lvextend commands are in order lvol1 lvol2 lvol3 and ect, its also common to not do the lvol2 and miss your swap volume.

2 set up the disk as a boot device
mkboot -l /dev/dsk/c1t1d0
after the extends are created then

lifcp /dev/dsk/c0t1d0:AUTO -
lifcp /dev/dsk/c1t1d0:AUTO -

mkboot -a "hpux -lq" /dev/rdsk/c0t1d0
mkboot -a "hpux -lq" /dev/rdsk/c1t1d0

3. check the pri and backup boot paths
setboot
if needed setboot -a 8/0.8.0

Hope this helps
Mohamed Alhassani
New Member

Re: Mirroring the Root File System

it beter to looking the HP-Document KNC073097002. This document include the instructions for mirroring the root and non-root logical-volumes
hp-ux is wunderfull
Mohamed Alhassani
New Member

Re: Mirroring the Root File System

it is beter to looking the HP-Document KNC073097002. This document include the instructions for mirroring the root and non-root logical-volumes
hp-ux is wunderfull
Vincenzo Restuccia
Honored Contributor

Re: Mirroring the Root File System

mkboot -a "hpux -lq;0)/stand/vmunix" /dev/rdsk/c2t6d0