CLI Guide

Table Of Contents
LUN-virtual-volume pairs must be enclosed in parentheses (). Virtual volumes and LUN-virtual-
volume pairs can be typed on the same command line.
When only virtual volumes are specified, the next available LUN is automatically assigned by metro
node.
Optional arguments
[-v|--view] context-
path
View to add the specified virtual volumes to.
[-f|--force]
Force the virtual volumes to be added to the view even if they are already in use, if they are
already assigned to another view, or if there are problems determining the view's state. Virtual
volumes that already have a LUN in the view will be re-mapped to the newly-specified LUN.
* - argument is positional.
Description
Add the specified virtual volume to the specified storage view. Optionally, specify the LUN to assign to the virtual volume.
Virtual volumes must be in a storage view in order to be accessible to hosts.
When virtual volumes are added using only volume names, the next available LUN number is automatically assigned.
Virtual-volumes and LUN-virtual-volume pairs can be specified in the same command line. For example:
r0_1_101_vol,(2,r0_1_102_vol),r0_1_103_vol
To modify the LUN assigned to a virtual volume, specify a virtual volume that is already added to the storage view and provide a
new LUN.
NOTE:
You cannot add a virtual volume to a storage view if the initialization status of the virtual volume is failed or
in-progress.
Example
Add a virtual volume Symm1254_7BF_1_vol to the storage view E_209_view:
VPlexcli:/clusters/cluster-1/exports> storage-view addvirtualvolume --view E_209_view --
virtual-volumes Symm1254_7BF_1_vol
Modify the LUN assigned to a virtual volume already added to a view:
The ll command in storage view context displays the LUN (0) assigned to a storage volume.
The export storage-view addvirtualvolume (LUN,Virtual-volume) --force command assigns a new LUN to the
virtual volume.
The ll command in storage view context displays the new LUN assigned to a storage volume:
VPlexcli:/clusters/cluster-1/exports/storage-views/TestStorageView> ll
Name Value
------------------------ --------------------------------------------------
controller-tag -
initiators []
operational-status stopped
port-name-enabled-status [P000000003CA00147-A1-FC01,true,suspended,
P000000003CB00147-B0-FC01,true,suspended]
ports [P000000003CA00147-A1-FC01, P000000003CB00147-B0-FC01]
virtual-volumes
[(0,TestDisDevice_vol,VPD83T3:6000144000000010a0014760d64cb325,16G)]
VPlexcli:/clusters/cluster-1/exports/storage-views/TestStorageView> export storage-view
addvirtualvolume (5,TestDisDevice_vol) --force
WARNING: Volume 'TestDisDevice_vol' already has LUN 0 in this view; remapping to LUN 5.
VPlexcli:/clusters/cluster-1/exports/storage-views/TestStorageView> ll
Name Value
180
Commands