chlv command
Purpose
Changes the characteristics of a logical volume.
Syntax
To change the name of a logical volume:
chlv { -lv NewLogicalVolumeName | -bbr value}LogicalVolume
Description
The chlv command changes the characteristics of a logical volume according to the command flags. The LogicalVolume parameter can be a logical volume name or logical volume ID. The chlv command can rename and set the bad-block relocation (BBR) policy. Changing the name of a logical volume and setting the bad-block relocation policy are the only supported options.
Note: A logical volume that has been assigned
as a backing device or as a paging space device cannot
be renamed. Although supported, it is not recommended that the bad-block
relocation policy be enabled on the Virtual I/O Server for Virtual
Small Computer System Interface (VSCSI) devices. Instead, the bad-block
relocation policy needs to be enabled for VSCSI devices on the client.
Doing so ensures that the bad-block relocation policy is enabled
for VSCSI devices that use logical volumes and physical volumes as
storage and provides better performance. Also, enabling the bad-block
relocation policy is recommended for paging spaces used by Active Memory™ Sharing.
Flags
Flag name | Description |
---|---|
-lv | Specifies the logical volume. |
-bbr | Sets the bad-block relocation policy. The value
can be either:
|
Examples
- To change the logical volume name from oldlv to newlv,
type:
chlv -lv newlv oldlv
- To enable the bad-block relocation policy for the logical volume testlv,
type:
chlv -bbr yes testlv
- To disable the bad-block relocation policy for the logical volume lv01,
type:
chlv -bbr no lv01