Mirroring the root volume group
The following scenario explains how to mirror the root volume group (rootvg).
Note: Mirroring the root volume group requires advanced system administration experience. If not done correctly, you can cause your system to be unbootable.
In the following scenario, the rootvg is contained on
and the mirror is being made to a disk called
- Check that
hdisk11is supported by AIX® as a boot device:
bootinfo -B hdisk11If this command returns a value of 1, the selected disk is bootable by AIX. Any other value indicates that
hdisk11is not a candidate for rootvg mirroring.
- Extend rootvg to include
hdisk11, using the following command:
extendvg rootvg hdisk11If you receive the following error messages:
or a message similar to:
0516-050 Not enough descriptor space left in this volume group, Either try adding a smaller PV or use another volume group.
You have the following options:
0516-1162 extendvg: Warning, The Physical Partition size of 16 requires the creation of 1084 partitions for hdisk11. The limitation for volume group rootvg is 1016 physical partitions per physical volume. Use chvg command with the -t option to attempt to change the maximum physical partitions per Physical Volume for this volume group.
- Mirror the rootvg to an empty disk that already belongs to the rootvg.
- Use a smaller disk.
- Change the maximum number of partitions supported by the rootvg,
using the following procedure:
- Check the message for the number of physical partitions needed for the destination disk and the maximum number currently supported by rootvg.
- Use the chvg -t command to multiply the maximum
number of partitions currently allowed in rootvg (in the above example,
1016) to a number that is larger than the physical partitions needed
for the destination disk (in the above example, 1084). For example:
chvg -t 2 rootvg
- Reissue the extendvg command at the beginning of step 2.
- Mirror the rootvg, using the exact mapping option, as shown
in the following command:
mirrorvg -m rootvg hdisk11This command will turn off quorum when the volume group is rootvg. If you do not use the exact mapping option, you must verify that the new copy of the boot logical volume, hd5, is made of contiguous partitions.
- Initialize all boot records and devices, using the following
- Initialize the boot list with the following command:
bootlist -m normal hdisk01 hdisk11Note:
- Even though the bootlist command identifies
hdisk11 as an alternate boot disk, it cannot guarantee the system
hdisk11as the boot device if
hdisk01fails. In such case, you might have to boot from the product media, select maintenance, and reissue the bootlist command without naming the failed disk.
- If your hardware model does not support the bootlist command, you can still mirror the rootvg, but you must actively select the alternate boot disk when the original disk is unavailable.
- Even though the bootlist command identifies hdisk11 as an alternate boot disk, it cannot guarantee the system will use