Mapping hosts to LUNs
To map a Virtual Storage Container (VSC, also referred to as a volume) to a storage area network (SAN) using the S1 system, you must first create an initiator host in the system by using the hosts create
command. Once the host has been configured, use the following command to map the volume to the SAN (also known as LUN mapping or masking):
applications mappings add --application=<app_name> [(--volumes=<vol_names...> --lunIds=<lun_ids...>)] --hosts=<names...>
Command options
--application=<app_name>
: The application instance containing the volume. Replace<app_name>
with the application name.--volumes=<vol_names...>
: The volumes you want to make available to the initiator hosts. Replace<vol_names...>
with a list of volumes. If you do not specify this option, all volumes in the application instance are mapped to the specified hosts.--lunid=<lun_ids...>
: The logical unit identifiers (LUN IDs) that you want to assign the volumes. Replace<lun_ids...>
with a list of LUN identifiers, where each LUN identifier corresponds to a volume in the<vol_names...>
list (in the specified order).--hosts=<names...>
: The initiator hosts that you want to allow to access the specified volumes. Replace<names...>
with a list of hosts.
Examples
To map volumes volume1
(LUN ID 1) and volume2
(LUN ID 2) on applications instance pack1
to hosts esx-01
esx-02
esx-03
, run:
applications mappings add --application pack1 --volumes volume1 volume2 --lunIds 1 2 --hosts esx-01 esx-02 esx-03
No Comments