HP MSA 1040 HP MSA 1040 CLI Reference Guide (762782-001, March 2014) - Page 104
ports, hosts, volumes, access, no-access, mapping
View all HP MSA 1040 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 104 highlights
ports ports Optional. The ports to use for the mapping; any unspecified ports become unmapped. All specified ports must be the same type (e.g., FC). If the ports parameter is specified, the lun parameter must also be specified. The ports parameter is ignored if access is set to no-access. If the ports parameter is omitted, all ports are mapped. Do not use the ports parameter with the mapping parameter. host hosts Optional. For FC, 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" (page 20). 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 A comma-separated list of the names or serial numbers of the volumes to map. For volume syntax, see "Command syntax" (page 20). 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) Info: The volume(s) were mapped successfully. Success: Command completed successfully. - The volume(s) were mapped successfully. (2013-12-03 13:19:38) 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 207000c0ff001121 was mapped for volume v2 with LUN 101. (v2) Info: Mapping succeeded. Host 207000c0ff001121 was mapped for volume v3 with LUN 102. (v3) Info: The volume(s) were mapped successfully. Success: Command completed successfully. - The volume(s) were mapped successfully. (2013-12-03 13:22:18) Mask volume v4 from Host1 and Host3: # map volume v4 access no-access host Host1,Host3 Info: Mapping succeeded. Host 207000c0ff001121 was masked for volume v4. (v4) Info: Mapping succeeded. Host 207000c0ff001123 was masked for volume v4. (v4) Info: The volume(s) were mapped successfully. Success: Command completed successfully. - The volume(s) were mapped successfully. (2013-12-03 13:23:48) 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) Info: Mapping succeeded. Host 207000c0ff001122 was mapped for volume v1 with LUN 6. (v1) Info: Mapping succeeded. Host 207000c0ff001121 was mapped for volume v2 with LUN 7. (v2) Info: Mapping succeeded. Host 207000c0ff001122 was mapped for volume v2 with LUN 7. (v2) Info: The volume(s) were mapped successfully. Success: Command completed successfully. - The volume(s) were mapped successfully. (2013-12-03 13:25:18) 104