Re: Mirroring In HP-UX

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 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/c3t6d02. Add this disk to the current root volume group.vgextend /dev/vg00 /dev/dsk/c3t6d03. Make the new disk a boot disk.mkboot -l /dev/rdsk/c3t6d04. Copy the correct AUTO file into the new LIF area.mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d05. Mirror the boot, root and primary swap logical volumes to the newbootable 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/c3t6d0The following is an example of mirroring the primary swap logicalvolume:lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0The following is an example of mirroring the root logical volume:lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d06. Update the boot information contained in the BDRA for the mirrorcopies 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/lvol37. Check if the BDRA is correct./usr/sbin/lvlnboot -R /dev/vg008. Verify that the mirrors were properly created.lvlnboot -v /dev/vg00The 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.6.0) -- Boot Disk/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot DiskBoot: lvol1 on: /dev/dsk/c0t6d0/dev/dsk/c3t6d0Root: lvol3 on: /dev/dsk/c0t6d0/dev/dsk/c3t6d0Swap: lvol2 on: /dev/dsk/c0t6d0/dev/dsk/c3t6d0Dump: lvol2 on: /dev/dsk/c0t6d0, 0