contains two physical volumes, and one of them is not accessible, the system rejects to boot unless
you disable the quorum check using the –lq option.
6. Enter 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/c0t6d0 | grep 'current.*0000 $'
00000 current /dev/vg00/lvol1 00000
00038 current /dev/vg00/lvol2 00000
00550 current /dev/vg00/lvol3 00000
00583 current /dev/vg00/lvol4 00000
00608 current /dev/vg00/lvol5 00000
00611 current /dev/vg00/lvol6 00000
00923 current /dev/vg00/lvol7 00000
01252 current /dev/vg00/lvol8 00000
In this example, mirror the logical volumes as follows:
# lvextend –m 1 /dev/vg00/lvol1 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol2 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol3 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol4 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol5 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol6 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol7 /dev/dsk/c2t15d0
# lvextend –m 1 /dev/vg00/lvol8 /dev/dsk/c2t15d0
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 user applications during
this command.
To check the progress of the synchronization, enter:
# 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
7. To update the root volume group information, enter:
# lvlnboot -R /dev/vg00
8. To verify that the mirrored disk is displayed as a boot disk and that the boot, root, and swap
logical volumes appear to be on both disks, enter:
# lvlnboot –v
9. To specify the mirror disk as the alternate boot path in nonvolatile memory, enter:
# setboot –a 2/0/7.15.0
10. To add a line to /stand/bootconf for the new boot disk, use vi or another text editor as
follows:
# vi /stand/bootconf
l /dev/dsk/c2t15d0
In this example, l denotes LVM.
Comentarios a estos manuales