rmlvcopy Command

Purpose

Removes copies from a logical volume.

Syntax

rmlvcopy LogicalVolume Copies [ PhysicalVolume ... ]

Description

The rmlvcopy command removes copies from each logical partition in the LogicalVolume. Copies are the physical partitions which, in addition to the original physical partition, make up a logical partition. You can have up to two copies in a logical volume. The Copies parameter determines the maximum number of physical partitions that remain. The LogicalVolume parameter can be a logical volume name or logical volume ID. The PhysicalVolume parameter can be the physical volume name or the physical volume ID. If the PhysicalVolume parameter is used, then only copies from that physical volume will be removed.

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 rmlvcopy fast path to run this command.
Note:
  1. To use this command, you must either have root user authority or be a member of the system group.
  2. If LVM has not recognized that a disk has failed it is possible that LVM will remove a different mirror. Therefore if you know that a disk has failed and LVM does not show those disks as missing you should specify the failed disks on the command line or you should use replacepv to replace the disk or reducevg to remove the disk.
  3. The rmlvcopy command is not allowed on a snapshot volume group.
  4. The rmlvcopy command is allowed on a volume group that has a snapshot volume group only if the physical volume names are specified on the command line and the specified physical volumes belong to the snapshot volume group.
  5. Running the rmlvcopy command on an active firmware-assisted dump logical volume temporarily changes the dump device to the /dev/sysdumpnull file. After the successful removal of the logical volume copy, the rmlvcopy command calls the sysdumpdev -P command to set the firmware-assisted dump logical volume to the original dump logical volume.

Security

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.

Examples

To reduce the number of copies of each logical partition belonging to logical volume lv0112, enter:

rmlvcopy lv0112 2

Each logical partition in the logical volume now has at most two physical partitions.

Files

Item Description
/usr/sbin/rmlvcopy Contains the rmlvcopy command.
/tmp/* Directory where the temporary files are stored while the command is running.