[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4


rmlv Command

Purpose

Removes logical volumes from a volume group.

Syntax

rmlv-B ] [  -f ]  [  -p Physical Volume LogicalVolume ...

Description

Attention: This command destroys all data in the specified logical volumes.

The rmlv command removes a logical volume. The LogicalVolume parameter can be a logical volume name or logical volume ID. The logical volume first must be closed. If the volume group is varied on in concurrent mode, the logical volume must be closed on all the concurrent nodes on which volume group is varied on. For example, if the logical volume contains a file system, it must be unmounted. However, removing the logical volume does not notify the operating system that the file system residing on it have been destroyed. The command rmfs updates the /etc/filesystems file.

Note: To use this command, you must either have root user authority or be a member of the system 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.

Flags


-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.

Examples

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.

Files


/etc 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.

Related Information

The varyonvg command, unmount command, rmfs command.

The Logical Volume Storage Overview in AIX 5L Version 5.1 System Management Guide: Operating System and Devices explains the Logical Volume Manager, physical volumes, logical volumes, volume groups, organization, ensuring data integrity, and allocation characteristics.

The System Management Interface Tool (SMIT) Overview in AIX 5L Version 5.1 System Management Guide: Operating System and Devices explains the structure, main menus, and tasks that are done with SMIT.

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.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]