This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
As the number of volumes in a single array continues to climb higher, autoprovisioning offers a flexible scheme for provisioning storage in large enterprises.
Autoprovisioning in the Symmetrix VMAX is achieved through the use of the symaccess SYMCLI command or with SMC. The symsg SYMCLI command was introduced in Solutions Enabler V 7.1 for use with FAST (Fully Automated Storage Tiering) and with Autoprovisioning.
The syntax for symsg is compatible with that of symdg and symcg.
In storage terminology, a SCSI initiator is the end-point that initiates a SCSI session, that is, sends a SCSI command. Thus host adapters are initiators.
On the other hand, a SCSI target is the endpoint that does not initiate sessions, but instead waits for initiators' commands and provides required input/output data transfers. The target usually provides to the initiators with one or more LUNs, because otherwise no read or write command would be possible.
Once the groups have been created, Autoprovisioning represents an easy way to handle provisioning. It allows you to mask multiple devices, ports, and HBAs by placing them into groups. These groups can be dynamically altered to give the host access to new storage.
With the symaccess command, all groups and views are backed up to a file, and can be restored from a backup file.
Storage group names can be up to 64 characters, and are not case sensitive.
Group names must be unique per group type, but different group types can share the same name.
For example, a storage group, a port group, and an initiator group can all have the name Financial_DB. However, two storage groups cannot be named Financial_DB.
Device reservations will be enforced whenever devices are being added to a storage group.
To create a new Storage Group in SMC, right click on a Symmetrix VMAX and choose Device Masking and Mapping > Storage Groups Maintenance > Create Storage Group. This will launch the Storage Group Management – Create dialog shown on the slide.
In the Storage Group Management – Create dialog, give the Storage group a unique name.
Choose the Device Source Type: This can be Symmetrix, Storage Group, Device Group, Composite Group or Storage Template.
Pick the devices from the available devices column and add them to the Group Member column. Click ok to create the Storage group.
In this example the Storage group esx252_sg will have a number of Symmetrix Devices from Symmetrix 495.
All other Storage Group operations require a right click on the specific storage group and then choose Device Masking and Mapping > Storage Groups Maintenance.
To create a new Port Group in SMC right click on a Symmetrix, choose Device Masking and Mapping, choose Port Groups Maintenance, and then Create Port Group.
Give the port group a unique name, then choose the Ports Available Ports column and add the same to the Group Members columns and click ok to create the Port group.
In this example the port group esx252_pg has two members.
Port Groups can be modified by choosing Device Masking and Mapping > Port Groups Maintenance > Modify Port Group.
An initiator group is a container of one or more host initiators (Fibre or iSCSI). Each initiator group can contain up to 32 entries. An initiator group may also include the name of another initiator group to allow the groups to be cascaded to a depth of one.
An HBA may only belong to one group, but if cascaded, may have masking views for both an upper and lower group.
You can create an initiator group using the HBA’s WWN, iSCSI, a file containing WWNs or iSCSI names, or another initiator group name. The symaccess syntax for creating an initiator group is:
Use the -consistent_lun option if the devices of a storage group (in a view) need to be seen on the same LUN on all ports of the port group. If the -consistent_lun option is set on the initiator group, Solutions Enabler will make sure that the LUN number assigned to devices is the same for the ports. If this is not set, then the first available LUN on each individual port will be chosen.
To create a new Initiator Group in SMC right click on a Symmetrix VMAX and choose Device Masking and Mapping, then choose the Initiator Groups Maintenance and then Create Initiator Group.
Give the initiator group a unique name, then choose the initiator or initiator groups from the Available Initiator column and add the same to the Selected Initiators columns and click ok to create the initiator group. In this example the Initiator group esx252_ig has two members.
For this initiator group, the Set HBA Flags button can be used to override the port flags setting.
Consistent LUNs — indicates that LUN values for this initiator group must be kept consistent for all devices within each of the initiator group's masking views. When set, any masking operation involving this initiator group that would result in inconsistent LUN values, will be rejected. When not set, SMC will attempt to keep LUN values consistent, but will deviate from consistency if LUN conflicts occur during masking operations.
Initiator Groups can be modified by choosing the Device Masking and Mapping > Initiator Groups Maintenance > Modify Initiator Group.
On Symmetrix VMAX Autoprovisioning, groups allow storage administrators to create groups of host initiators, front-end ports, and logical devices. These groups are associated to form a masking view, from which all controls are managed.
A masking view is a container of a storage group, a port group, and an initiator group. When you create a masking view, the devices in the storage group become visible to the host. The devices are masked and mapped automatically.
When the masking view is created, the Dynamic LUN addressing is enabled by default. SYMAPI checks the SFS and assigns the next available LUN address.
A Symmetrix FA port is capable of supporting 4096 mapped devices. It assigns LUN numbers to mapped devices starting at 0 and counting up in 3 hexadecimal digits.
For some host environments this is a problem, because some host HBAs are limited in the highest LUN that they can support.
In other instances, applications might rely on a certain LUN such as LUN 0.
Dynamic LUN addressing allows specific LUN values to be assigned, either manually or automatically, to each Symmetrix device that is being masked to an HBA, regardless of what LUN was assigned when the device was mapped to the FA.
This eliminates the potential impact of the 256 LUNs per target limit of many HBAs by allowing LUN addresses between 0 and 255 to be specified on a per HBA World Wide Name basis. It also allows any device to be addressed as LUN 0 if a host requires that a device be assigned that LUN value.
To create a new Masking View in SMC, right click on a Symmetrix VMAX and choose Device Masking and Mapping, then choose Masking Views Maintenance, and then Create Masking View.
Give the Masking View a unique name. Choose existing Storage, Port and Initiator groups by clicking the appropriate Select button or create New groups by clicking the appropriate New Button.
In this example, we have used the Select button to pick the Storage, Port, and Initiator groups that we had created already.
Click the Set Dynamic LUN Address to manually change the host LUN addresses. By default, the next available host LUN address will be automatically assigned to the devices.
Click ok to complete the creation of the Masking View.
As soon as the Masking View is created, the host re-configuration steps can be performed and the host should see the VMAXe devices.
In SMC, the Autoprovisioning information can be backed up or restored via the Masking Information Maintenance Operations for VMAX array. Right click on a Symmetrix VAMX and choose Device Masking and Mapping > Masking Information Maintenance. This launches the Masking Information Maintenance dialog.
Choose Backup from the Action dropdown for a backup, and then specify a backup file name and click ok.
Choose Restore for a restore operation and then choose a filename from which the restore is to be performed.
In the previous lesson we saw how to create Storage Groups, Initiator Groups, Port Groups and Masking Views. In this lesson we will use the Add New Host Wizard to provision storage to a new host. This wizard will automatically create the required autoprovisioning groups and masking view.
Click on the “Add New Host” Common Task from the SMC Dashboard to launch the Add New Host Wizard.
The Add New Host Wizard will guide one throughout the process of provisioning Symmetrix storage to a new host. On Symmetrix VMAXe arrays it will create the Initiator Group, Port Group, Storage Group and Masking View. It will populate the Storage Group with Symmetrix Thin Devices on a Best Effort basis.
In the Create Host page, enter a host name, pick a Symmetrix from the drop down list. Then pick the HBAs (initiators) from the available box and click on the Add button to add them to the “Initiators Added to Host list”. Then click on Next.
In the Select Ports page choose the ports that should be members of the Port Group. The Wizard automatically only shows those ports that the initiators are zoned to. Click Next to continue.
In the Define Storage one would specify the amount of storage that should be allocated to this host. One can either choose a Storage Template or alternately choose the number and capacity of Thin devices and the Pool to which the Thin devices should be bound. On can optionally put the devices under FAST Control and Set up Local Replicas. Click Next to continue.
Symmetrix VMAXe arrays allow you to set the HBA port flags on a per initiator or initiator group basis. This feature allows specific host flags to be enabled and disabled on the director port.
To set (or reset) the port flags, use the following form:
If needed, the symaccess command will map devices to a port at the time of view creation. The mapping happens automatically without user intervention. However, it takes longer to create a masking view, if the devices have to be mapped as well.
Unmapping of devices can be performed when a view is deleted.
symaccess –sid 80 delete view –name MV –unmap
Unmapping of devices that are part of a storage group which is participating in a masking view
This is a practical example of how to configure shared storage intended for a cluster or a shared database. In a clustered environment, some devices need to be seen by the all the hosts in the cluster. Other devices such as gatekeepers, may need to be seen only by individual hosts in the cluster.
To achieve this, FOUR initiator groups, FOUR storage groups, and FOUR masking views are created. We will assume one port in one port group to keep the example simple.
The storage groups are straightforward. Each of the four pools of storage are placed in a storage group.
The first three initiator groups contain one WWN each. The fourth initiator group is a cascaded initiator group which contains the names of the three initiator groups, which contain the HBA WWNs. Using the cascaded initiator group, it is possible to give all the initiator groups access to the shared storage while each individual initiator retains private access to its gatekeepers.
Using the 4 storage groups and 4 initiator groups it is now possible to construct 4 masking views.
In the event a host adapter fails, or needs replacement, you can replace the adapter and assign a set of devices to a new adapter by using the replace action in the following form: