6.20 Expand Pool

expand pool <pool_name> <size device | part >

Expand an existing NSS pool by adding a new partition. Either a partition must be specified, or the device and size must be specified.

If the specified device is the same device as the last segment of the existing pool, and free space exists following the last segment, the utility tries to expand the partition first before trying to add a new partition.

nlvm [nlvm_options] expand pool <pool_name> <size device | part >

Command Options

pool_name

Mandatory. Specify the name of the NSS pool to be expanded. This must be the first command option.

Example

MYPOOL1
device=device_name

Specify the device to use for the expanded space.

You can specify multiple device option instances to create a pool comprised of multiple segments. Each device option instance must have a matching size option instance. The first device instance is matched to the first size instance, and so on.

Example

device=sdb
size=<value[K|M|G|T]|max>

Specify the amount of space to add to the existing pool.

If multiple devices are specified, each device option instance must have a matching size option instance. The first size instance is matched to the first device instance, and so on.

Examples

size=20G
size=100.50M
part=partition_name

Specify the name of a partition to add to the pool. The entire partition size is added to the pool’s capacity. The partition must be of type 0X169 (nss).

Example

part=sdc1.1

Command Examples

nlvm expand pool MYPOOL1 device=sdf size=20G

Expand the NSS pool named MYPOOL1 by adding the 20 GB of free space from device /dev/sdf.

nlvm expand pool MYPOOL2 device=sdf size=20G device=sdg size=100G

Expand the NSS pool named MYPOOL1 by adding the 20 GB of free space from device /dev/sdf and 100 GB of free space from device /dev/sdg.

nlvm expand pool MYPOOL1 part=sdc1.1

Expand the NSS pool named MYPOOL1 by adding the /dev/sdc1.1 partition to it. The partition is type 0X169. The entire partition size is added to the pool’s capacity.