6.26 Expand Cachedev

expand cachedev <cachedev_name> <device> <size>

Expand an existing NSS cache device by specifying the device and size details.

nlvm [nlvm_options] expand cachdev <cachdev_name> <device> <size>

Command Options

cachedev_name

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

Example

MYCACHEDEV1
device=device_name

Specify the device to use for the expanded space.

You can specify multiple device option instances to expand a cache device. 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 cache device.

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.

Example

size=20G
size=100.50M

Command Examples

nlvm expand cachedev MYCACHEDEV1 device=sdf size=20G

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

nlvm expand cachedev MYCACHEDEV2 device=sdf size=20G device=sdg size=100G

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