Removes logical volumes from a volume group.
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 rmlv fast path to run this command.
Item | Description |
---|---|
-B | Issues a chlvcopy -B -s for the parent logical volume if the logical volume was created using the -l flag. If it is a regular logical volume then the -B flag is ignored. |
-f | Removes the logical volumes without requesting confirmation. |
-p PhysicalVolume | Removes only the logical partition on the PhysicalVolume.
The logical volume is not removed unless there are no other physical
partitions allocated. Attention: If the logical volume
spans multiple physical volumes, the removal of only logical partitions
on the PhysicalVolume can jeopardize the
integrity of the entire logical volume.
|
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.
Attention: The command used in this example destroys all data in the logical volumes.
To remove logical volume lv05 without requiring user confirmation, enter the following command:
rmlv -f lv05
The logical volume is removed from the volume group.
Item | Description |
---|---|
/usr/sbin/rmlv | Directory where the rmlv command resides. |
/tmp | Directory where the temporary files are stored while the command is running. |
/etc/filesystems | Lists the known file systems and defines their characteristics. |