HP P2000 G3 MSA System CLI Reference Guide 103
host
hosts
Optional. For FC and SAS, the nickname or 16-hex-digit WWPN of each host to map the volumes to.
For iSCSI, the node name (typically the IQN) or nickname of each initiator to map the volumes to.
For nickname syntax, see
Command syntax
on page 22. If the host parameter is specified, either the
mapping
parameter or both the
lun
and
ports
parameters must be specified. If the
host
parameter is omitted, the mapping applies to all hosts that are not explicitly mapped.
volumes
Names or serial numbers of the volumes to map. For volume syntax, see
Command syntax
on
page 22.
Example
Map volume
v2
with read-only access for
Host1
, using port A1 and LUN 100:
# map volume access ro ports a1 lun 100 host Host1 v2
Info: Mapping succeeded. Host 207000c0ff001121 was mapped for volume v2 with LUN
100. (v2) (2012-01-18 13:58:06)
Success: Command completed successfully. (2012-01-18 13:58:06)
Map volumes
v2
and
v3
with read-write access for
Host2
, using ports A1 and B1 and LUN 101:
# map volume access rw ports a1,b1 lun 101 host Host2 v2,v3
Info: Mapping succeeded. Host 207000c0ff001122 was mapped for volume v2 with LUN
101. (v2) (2012-01-18 13:58:41)
Info: Mapping succeeded. Host 207000c0ff001122 was mapped for volume v3 with LUN
102. (v3) (2012-01-18 13:58:41)
Success: Command completed successfully. (2011-09-28 13:58:41)
Mask volume
v4
from
Host1
and
Host3
:
# map volume v4 access no-access host Host1,Host3
Info: Mapping succeeded. Host 207000c0ff001121 was mapped for volume v4 with LUN
0. (v4) (2012-01-18 13:59:50)
Info: Mapping succeeded. Host 207000c0ff001123 was mapped for volume v4 with LUN
0. (v4) (2012-01-18 13:59:50)
Success: Command completed successfully. (2012-01-18 13:59:50)
Map volumes
v1
and
v2
to hosts
Host1
and
Host2
, using ports A1 and B1 starting with LUN 6,
and view the results:
# map volume ports a1,b1 lun 6 host Host1,Host2 v1,v2
Info: Mapping succeeded. Host 207000c0ff001121 was mapped for volume v1 with LUN
6. (v1) (2012-01-18 14:01:03)
Info: Mapping succeeded. Host 207000c0ff001122 was mapped for volume v1 with LUN
6. (v1) (2012-01-18 14:01:03)
Info: Mapping succeeded. Host 207000c0ff001121 was mapped for volume v2 with LUN
7. (v2) (2012-01-18 14:01:03)
Info: Mapping succeeded. Host 207000c0ff001122 was mapped for volume v2 with LUN
7. (v2) (2012-01-18 14:01:03)
Success: Command completed successfully. (2012-01-18 14:01:03)
Summary of Contents for P2000 G3
Page 1: ...HP P2000 G3 MSA System CLI Reference Guide Part number 500912 009 First edition February 2014 ...
Page 14: ...14 About this guide ...
Page 30: ...30 Categorical list of commands ...
Page 199: ...HP P2000 G3 MSA System CLI Reference Guide 199 See also set cache parameters show volumes ...
Page 294: ...294 Alphabetical list of commands See also set volume set vdisk ...
Page 498: ...498 XML API basetype properties PROPERTY name mrc version type uint8 0 PROPERTY OBJECT ...
Page 524: ...524 Glossary ...
Page 532: ...532 Index ...