CLI Guide

Table Of Contents
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
------------------------ --------------------------------------------------
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
[(5,TestDisDevice_vol,VPD83T3:6000144000000010a0014760d64cb325,16G)]
Add a virtual volume to a view using the --force option from the root context:
VPlexcli:/> export storage-view addvirtualvolume --view /clusters/Saul1/exports/storage-
views/TestStorageView --virtual-volumes dr710_20_C1Win_0038_12_vol --force
Volume {1} is synchronous and on a non-local device. Applications using this volume
may experience per I/O inter-cluster latency. If the applications are sensitive to this
latency, they may experience data unavailability. Do you wish to proceed ? (Yes/No)
See also
export storage-view checkconfig
export storage-view create
export storage-view removevirtualvolume
virtual-volume create
188
Commands