
134 SANRAD V-Switch User Manual
Exposing an iSCSI Target and LUN
The first LUN
assigned to an iSCSI
target must be
LU 0.
A LUN value cannot
be larger than 255.
All CLI names and
aliases are case
sensitive.
A snapshot volume
must be exposed on
the same V-Switch
as the source
volume.
To make a volume accessible to a host, you need to assign a LUN to it,
attach the LUN to an iSCSI target and expose the target. The CLI
command volume expose is used in two ways:
Create and expose a new target.
Expose an existing target.
The CLI command volume expose -new creates a new iSCSI target,
assigns a volume LUN and then exposes the new target.
After creating a target and LU0, you can add additional LUNs to the target
using the CLI command volume expose (without the –new switch).
volume expose
If you are working in a V-Switch cluster, each target and LUN must be
configured on both V-Switches in the V-Switch cluster. For more
information on V-Switch clusters, see “Introduction to V-Switch Clusters,”
page 72.
If you add or modify identities on a target after its volumes have been
exposed, the access rights will take effect only at the next login for each
iSCSI initiator.
You need to define six parameters to create and expose an iSCSI target and
volume LUN:
SWITCH PARAMETER DEFINITION STATUS EXAMPLE
-new
NEW TARGET NEW ISCSI
TARGET TO CREATE
OPTIONAL
No parameter
required
-vol
VOLUME ALIAS ALIAS OF VOLUME
TO CREATE
LU0
AND TARGET FOR
MANDATORY
Vol1
-ta
TARGET ALIAS USER-ASSIGNED
ALIAS OF TARGET
TO CREATE
MANDATORY
finance
-lun
LU NUMBER USER-ASSIGNED
LUN FOR
EXPOSING VOLUME
MANDATORY
ON EXISTING
TARGET
0
-tn
TARGET WWUI USER-ASSIGNED
WORLD WIDE
UNIQUE IDENTIFIER
FOR THE TARGET
MANDATORY ON
A NEW TARGET
sanrad.
billing