Mirroring integrity boot disks

loate urrent boot disk:
lvlnboot -v
diskinfo /dev/rdsk/c0t0d0s2

create system partitions:
vi /tmp/idf

3
EFI 500MB
HPUX 100%
HSP 400MB

idisk -wf /tmp/idf /dev/rdsk/c0t1d0

create device files for new partitions:
insf -eC disk

use idisk again to verify:
idisk /dev/rdsk/c0t1d0

itialize and populate EFI system partition:
mkboot -e -l /dev/rdsk/c0t1d0

change auto on both disks:
vi /tmp/auto

boot vmunix -lq

efi_cp -d /dev/rdsk/c0t0d0s1 /tmp/auto /efi/hpux/auto
efi_cp -d /dev/rdsk/c0t1d0s1 /tmp/auto /efi/hpux/auto

verify:
efi_ls -d /dev/rdsk/c0t0d0s1
efi_ls -d /dev/rdsk/c0t1d0s1

verify contents:
efi_cp -d /dev/rdsk/c0t1d0s1 -u /efi/hpux/auto /tmp/auto.contents
cat /tmp/auto.contents

boot vmunix -lq

Configure OS partition:
pvcreate -fB /dev/rdsk/c0t1d0s2
vgextend vg00 /dev/dsk/c0t1d0s2
lvlnboot -v

mirror all logial volumes in vg00:
for f in /dev/vg00/lvol*
do
echo "Now mirroring $f \n"
lvextend -m 1 $f
done

change bootconf:

vi /stand/bootconf

l /dev/dsk/c0t0d0s2
l /dev/dsk/c0t1d0s2

verify, that disk was added:
vgdisplay -v vg00

verify, that BDRA updated properly:

lvlnboot -v

/dev/dsk/c0t0d0s2 (0/0/0/0.0.0) — Boot Disk
/dev/dsk/c0t1d0s2 (0/0/0/0.1.0) — Boot Disk

Configure EFI boot manager menu:
setboot -- show urrent
setboot -p 0/0/0/0.0.0 -- primary

find seond disk path: ioscan -funC disk
add new HAA: setboot -h 0/0/0/0.1.0
verify: setboot