Provides copies of data within the logical volume.
mklvcopy [ -a Position ] [ -e Range ] [ -k ] [ -m MapFile ] [ -s Strict ] [ -u UpperBound ] LogicalVolume Copies [ PhysicalVolume... ]
The mklvcopy command increases the number of copies in each logical partition in LogicalVolume. This is accomplished by increasing the total number of physical partitions for each logical partition to the number represented by Copies. The LogicalVolume parameter can be a logical volume name or logical volume ID. You can request that the physical partitions for the new copies be allocated on specific physical volumes (within the volume group) with the PhysicalVolume parameter; otherwise, all the physical volumes within the volume group are available for allocation.
The logical volume modified with this command uses the Copies parameter as its new copy characteristic. The data in the new copies are not synchronized until one of the following occurs: the -k option is used, the volume group is activated by the varyonvg command, or the volume group or logical volume is synchronized explicitly by the syncvg command. Individual logical partitions are always updated as they are written to.
The default allocation policy is to use minimum numbering of physical volumes per logical volume copy, to place the physical partitions belong to a copy as contiguously as possible, and then to place the physical partitions in the desired region specified by the -a flag. Also, by default, each copy of a logical partition is placed on a separate physical volume.
Notes:
- To use this command, you must either have root user authority or be a member of the system group.
- To create a copy of a striped logical volume, all active nodes using the volume group must be at least AIX 4.3.3 or later. Older versions will not be able to use the volume group after a mirror copy has been added to the striped logical volume.
You can use the Volumes application in Web-based System Manager (wsm) to change volume characteristics. You could also use the System Management Interface Tool (SMIT) smit mklvcopy fast path to run this command.
Note: The -e, -m, -s, and -u flags are not valid with a striped logical volume.
To add physical partitions to the logical partitions in the logical volume lv01, so that a total of three copies exists for each logical partition, enter:
mklvcopy lv01 3
The logical partitions in the logical volume represented by directory lv01 have three copies.
/usr/sbin/mklvcopy | Contains the mklvcopy command. |
The chlv command, lslv command, mklv command, syncvg command, varyonvg command.
The Logical Volume Storage Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices.
For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.1 Web-based System Manager Administration Guide.
The System Management Interface Tool (SMIT): Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices.