expandvdisksize

You can use the expandvdisksize command to expand the size of a VDisk by a given capacity.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svctask -- -- expandvdisksize -- -- -size -- disk_size ----->

>-- --+---------------------------------+-- --+------------+---->
      '- -mdisk --+- mdisk_id_list ---+-'     '- -fmtdisk -'
                  '- mdisk_name_list -'

>-- --+- vdisk_name -+-----------------------------------------><
      '- vdisk_id ---'

Parameters

-size disk_size
Specifies the capacity by which the virtual disk is to be expanded. It is used in conjunction with the units value. The smallest granularity of bytes is 512. All capacities are rounded up to this value. However, an entire extent will be reserved even if only partially used. The default capacity is in MB.
-mdisk mdisk_id_list | mdisk_name_list
Optionally specifies the list of one or more MDisks to be used as the stripe set. The extents that are used to expand the vdisk come from the specified list of MDisks. All MDisks in the list must be part of the same MDisk group.
-fmtdisk
Optionally specifies that the VDisk should be formatted before use. Using this parameter will format (all zeros) the new extents that have been added to the VDisk as a result of the expand.
vdisk_name | vdisk_id
Specifies the virtual disk to modify, either by ID or by name.

Description

This command expands the capacity allocated to the particular virtual disk by the given amount. The default capacity is in MB.

When a VDisk is expanded, the policy may change. Its mode will become striped even if it was previously sequential or image mode. See the svctask mkvdisk command for details of the virtualization policies. This command will complete asynchronously if the fmtdisk argument is selected.

Possible failures

Examples

An invocation example

svctask expandvdisksize -size 2048 -unit b -mdisk 
mdisk0:mdisk1 -fmtdisk vdisk1