Managing Serviceguard Sixteenth Edition, March 2009
/dev/dsk/c4t6d0 is the mirror; be sure to use the correct device file names for the
root disks on your system.
NOTE: Under agile addressing, the physical devices in these examples would have
names such as /dev/[r]disk/disk1, and /dev/[r]disk/disk2. See “About
Device File Names (Device Special Files)” (page 107).
1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c4t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c4t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c4t6d0
4. Mirror the boot, primary swap, and root logical volumes to the new bootable disk.
Ensure that all devices in vg00, such as /usr, /swap, etc., are mirrored.
NOTE: The boot, root, and swap logical volumes must be done in exactly the
following order to ensure that the boot volume occupies the first contiguous set
of extents on the new disk, followed by the swap and the root.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c4t6d0
The following is an example of mirroring the primary swap logical volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c4t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c4t6d0
5. Update the boot information contained in the BDRA for the mirror copies of boot,
root and primary swap.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
6. Verify that the mirrors were properly created.
lvlnboot -v
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c4t5d0 (10/0.5.0) -- Boot Disk
/dev/dsk/c4t6d0 (10/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c4t5d0
/dev/dsk/c4t6d0
Preparing Your Systems 201