Copies the contents of a logical volume to a new logical volume.
To Copy to a New Logical Volume
cplv [ -v VolumeGroup ] [ -y NewLogicalVolume | -Y Prefix ] SourceLogicalVolume
To Copy to an Existing Logical Volume
You can use the Volumes application in Web-based System Manager to change volume characteristics. You could also use the System Management Interface Tool (SMIT) smit cplv fast path to run this command.
Item | Description |
---|---|
-e | Specifies that the DestinationLogicalVolume exists and that a new logical volume should not be created. If the DestinationLogicalVolume is smaller than the SourceLogicalVolume, the extra logical partitions are not copied. When you use this flag, any data already in the DestinationLogicalVolume is destroyed. For this reason, user confirmation is required, unless the -f flag is added. The Type characteristic of the DestinationLogicalVolume must be copy to prevent inadvertently overwriting data. To change the Type characteristic, use the chlv command. |
-f | Copies to an existing logical volume without requesting user confirmation. |
-v VolumeGroup | Specifies the volume group where the new logical volume resides. If this is not specified, the new logical volume resides in the same volume group as the SourceLogicalVolume. |
-y NewLogicalVolume | Specifies the name to use, in place of a system-generated name, for the new logical volume. Logical volume names must be unique systemwide names, and can range from 1 to 15 characters. |
-Y Prefix | Specifies a prefix to use in building a system-generated name for the new logical volume. The prefix must be less than or equal to 13 characters. A name cannot begin with a prefix already defined in the PdDv class in the Device Configuration Database for other devices, or a name already used by another device. |
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
cplv fslv03
The new logical volume is created, placed in the same volume group
as fslv03, and named by the system.cplv -v vg02 fslv03 where fslv03 is source logical volume name. It is mandatory field.
The new logical volume is created, named, and added to volume group vg02.Item | Description |
---|---|
/usr/sbin | Directory where the cplv command resides. |