# echo “boot vmunix” > ./AUTO
b. Copy the file from the current directory into the new disk EFI partition. Be sure to use the
device file with the s1 suffix:
# efi_cp -d /dev/rdsk/c2t1d0s1 ./AUTO /efi/hpux/auto
c. To check the contents of the AUTO file on EFI partition on mirror disk:
# efi_cp –d /dev/rdsk/c2t0d0s1 –u /EFI/HPUX/AUTO /tmp/mir
# cat /tmp/mir
boot vmunix
7. Use the lvextend command to mirror each logical volume in vg00 (the root volume group) onto
the specified physical volume. You must extend the logical volumes in the same order that they are
configured on the original boot disk. Use the pvdisplay command with the -v option to
determine the list of logical volumes and their order. For example:
# pvdisplay -v /dev/dsk/c0t0d0s2 | grep 'current.*0000 $'
00000 current /dev/vg00/lvol1 00000
00010 current /dev/vg00/lvol2 00000
00138 current /dev/vg00/lvol3 00000
00151 current /dev/vg00/lvol4 00000
00158 current /dev/vg00/lvol5 00000
00159 current /dev/vg00/lvol6 00000
00271 current /dev/vg00/lvol7 00000
00408 current /dev/vg00/lvol8 00000
In this example, mirror the logical volumes as follows:
# lvextend –m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol2 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol5 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol6 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol7 /dev/dsk/c2t1d0s2
# lvextend –m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0s2
The lvextend operation can take several minutes to copy all the data from the original copy of
the data to the mirrored extents. The logical volumes are still accessible to users applications
during this command.
To check the progress of the synchronization, you can use the following:
# lvdisplay -v $(find /dev/vg00 -type b) | grep stale | wc –l
You can use a shell loop to extend a bunch of lvols automatically as follows:
# for lvol in lvol1 lvol2 lvol3 ... (specify any LV you need to mirror)
> do
> lvextend –m 1 /dev/vgXX/$lvol /dev/dsk/cXtXdX
> done
8. Update the root volume group information:
# lvlnboot -R /dev/vg00
9. Verify that the mirrored disk is displayed as a boot disk and that the boot, root, and swap logical
volumes appear on both disks:
# lvlnboot –v
Comentarios a estos manuales