mklv Command

Purpose

Creates a logical volume.

Syntax

mklv [ -mirror ] [ -lv NewLogicalVolume | -prefix Prefix ] VolumeGroup Size [ PhysicalVolume ... ]

Description

The mklv command creates a new logical volume within the VolumeGroup. If you specify one or more physical volumes with the PhysicalVolume parameter, only those physical volumes are available for allocating physical partitions; otherwise, all the physical volumes within the volume group are available.

The allocation policy is to use a minimum number of physical volumes.

The Size parameter specifies the minimum size the logical volume should be. When specifying Size the following conventions must be used:

Size Logical volume size
###M/m ### MB
###G/g ### GB

Flags

-lv Specifies the logical volume name to use instead of using a system-generated name. Logical volume names must be unique system wide name, and can range from 1 to 15 characters.
-mirror Activates mirroring for this logical volume.
-prefix Specifies the Prefix to use instead of the prefix in a system-generated name for the new logical volume. The prefix must be less than or equal to 13 characters. The name cannot begin with a prefix already defined in the PdDv class in the Device Configuration Database for other devices, nor be a name already used by another device.

Exit Status

See Virtual I/O Server command exit status.

Examples

  1. To make a logical volume in volume group vg02 with a minimum size of 1 Mb , type:
    mklv vg02 1MB
  2. To make a logical volume in vg03 with 1GB chosen from physical volumes hdisk5, hdisk6, and hdisk9, type:
    mklv vg03 1GB hdisk5 hdisk6 hdisk9
  3. To request a logical volume with a minimum size of 10MB, type:
    mklv VGNAME 10M
    where VGNAME is the name of your logical volume.

Related Information

The lslv command, the extendlv command, and the rmlv command.


Send feedback |  Rate this page