cli_extendlv command

Purpose

Increases the size of a logical volume on all nodes in a cluster by adding unallocated physical partitions from within the volume group.

Syntax


cli_extendlv [ -a Position ] [ -e Range ] [ -u Upperbound ] [ -s Strict ] 
             LogicalVolume Partitions [ PhysicalVolume ... ]

Description

Uses C-SPOC to run the extendlv command with the specified parameters, and make the updated logical volume definition available on all cluster nodes.

Flags

-a Position
Sets the physical volume allocation policy (the position of the logical partitions on the physical volume). The following Position variables are valid:
m
Allocates logical partitions in the outer middle section of each physical volume. This variable is the default setting.
c
Allocates logical partitions in the center section of each physical volume.
e
Allocates logical partitions in the outer edge section of each physical volume.
ie
Allocates logical partitions in the inner edge section of each physical volume.
im
Allocates logical partitions in the inner middle section of each physical volume.
-e Range
Sets the physical volume allocation policy. The allocation policy is the number of physical volumes to extend across by using the volumes that provide the best allocation. The value of the Range variable is limited by the Upperbound variable that is set with the -u flag. The following Range variables are valid:
x
Allocates logical partitions across the maximum number of physical volumes.
m
Allocates logical partitions across the minimum number of physical volumes.
-s Strict
Determines the strict allocation policy. You can allocate copies of a logical partition to be shared or not shared for the same physical volume. The following Strict variables are valid:
y
Sets a strict allocation policy, so copies of a logical partition cannot share the same physical volume.
n
Does not set a strict allocation policy, so copies of a logical partition can share the same physical volume.
s
Sets a super strict allocation policy, so that the partitions allocated for one mirror cannot share a physical volume with the partitions from another mirror. When you change to a non-super strict logical volume to a super strict logical volume, you must use the -u flag.
-u Upperbound
Sets the maximum number of physical volumes for the new allocation. The value of the Upperbound variable is between one and the total number of physical volumes. When you use super strictness, the upper bound indicates the maximum number of physical volumes that are allowed for each mirror copy. When you use striped logical volumes, the upper bound must be multiple of Stripe_width variable.

Example

To increase the size of the logical volume that is name lv01 by three logical partitions, enter:
cli_extendlv lv01 3