This checklist is designed to have all of the relevent commands required to mirror an HPUX system. It's broken out into pa-risc and itanium systems. Please note, from what I understand, the steps for mirroring 11.22 ia64 systems is different. I've never had the opportunity to play with those. If you have the steps and want to mail them to me, I'd appreciate it.
You can go directly to the ia64 mirroring procedure by clicking here.
for lv in $(vgdisplay -v vg00 | grep -i 'lv name' | awk '{print $NF}')
do
echo "#################################"
echo ${lv}
lvextend -m 1 ${lv} ${dsk}
donehm()
{ lvdisplay -v $1 | sed -n -e '/Logical extents/,$p' | grep stale | wc -l
}
# setboot Primary bootpath : 0/1/1/0.1.0 HA Alternate bootpath : 0/1/1/0.0.0 Alternate bootpath : 0/1/1/0.1.0 Autoboot is ON (enabled)
# lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Root: lvol3 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Swap: lvol2 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0
As stated previously, the ia64 mirroring procedure is quite different. Using the old disk naming schemes, you will end up creating disk partitions, ${rdsk}s2, for instance. The new naming conventions create partitions named /dev/rdisk/disk#_p#. The directions below demonstrate the legacy naming convention. The commands are the same for the new naming convention.
cat > /tmp/part << eof > 3 > EFI 500MB > HPUX 100% > HPSP 400MB > eof
for lv in $(vgdisplay -v vg00 | grep -i 'lv name' | awk '{print $NF}')
do
echo "#################################"
echo ${lv}
lvextend -m 1 ${lv} ${dsk}s2 # note the s2 partition again
donehm()
{ lvdisplay -v $1 | sed -n -e '/Logical extents/,$p' | grep stale | wc -l
}
# setboot Primary bootpath : 0/1/1/0.1.0 HA Alternate bootpath : 0/1/1/0.0.0 Alternate bootpath : 0/1/1/0.1.0 Autoboot is ON (enabled)
# lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Root: lvol3 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Swap: lvol2 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0
This part is still a bit confusing for me. The alternate boot option in the efi boot menu points to the right disk; however, it doesn't know about the hpux.efi boot command so it doesn't work. You'd figure HP would make that a bit more automatic.
So, note the hardware paths for the primary and alternate disks, then boot to the efi menu. Boot configuration -> Add a boot option,
Identify your new mirror disk. when it says (pun1,lun0), that's going to be c#t1d0, (pun0,lun) will be c#t0d0, etc. Highlight the suspected mirror disk and press [enter]
Assuming you got the right disk, you should be looking at something that looks like an old norton commander menu. Highlight EFI, press [enter], then highlight HPUX, press [enter], and finally, hpux.efi and (you guessed it), press [enter]. Enter a good description for the mirror disk.
If you want, move the mirror disk entry to the top using the other options in the boot options menu. Once done, select the mirror disk entry to attempt to boot from it.
Troubleshoot as necessary
| Document: | |
| URL: | |
| Last updated: |