Вы находитесь на странице: 1из 44

Copyright 2012 EMC Corporation.

All rights reserved


Upon completion of this module, you should be able to:
Describe Autoprovisioning Groups.
Perform Device Masking on Symmetrix VMAXe.
Identify HBA flags that can be set.
Describe automatic mapping and optional unmapping devices with Autoprovisioning.
1 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
Upon completion of this lesson, you should be able to:
Describe Autoprovisioning Groups.
Perform Device Masking on Symmetrix VMAXe.
Module 5: Autoprovisioning Groups 2
Copyright 2012 EMC Corporation. All rights reserved
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.
3 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
Autoprovisioning requires the use of Initiator Groups, Port Groups, and Storage Groups.
Initiator groups contains host initiator or iSCSI names.
Port Groups contain valid front-end FA or Gig-E ports.
Storage groups contain Symmetrix devices.
One of each type of group is associated together to form a Masking View.
4 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
The HBA flags option is supported.

5 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.

6 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
You can create a storage group using a range of devices, device names, device group devices,
or a device file.
The example shows how to use both symaccess and symsg commands to create storage
groups.
7 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
These are some of the operations commonly performed on a Storage Group.
8 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.

9 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
All other Storage Group operations require a right click on the specific storage group and
then choose Device Masking and Mapping > Storage Groups Maintenance.
10 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
Port groups may contain any number of valid front-end ports.
A port can belong to more than one port group.
Only Fibre and Gig-E ports on front-end directors will be allowed to be added to a port group.
Port groups can have mixed port types.
Ports must have the ACLX flag enabled to be added to a port group.

11 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
In the example shown, a new port group, PG_1 is created containing three, front-end ports.
12 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
These are some of the operations commonly performed on a Port Group.

13 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.

14 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
All other Port Group operations require a right click on the specific port group and then
choose Device Masking and Mapping > Port Groups Maintenance
15 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.


16 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
You can create an initiator group using the HBAs WWN, iSCSI, a file containing WWNs or
iSCSI names, or another initiator group name. The symaccess syntax for creating an initiator
group is:
symaccess -sid SymmID
create -name GroupName -type initiator [ -wwn wwn | -iscsi iscsi |
-file InitiatorFilename | -ig InitiatorGroupName ]
[-consistent_lun]
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.

17 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
These are some of the operations commonly performed on an Initiator Group.

18 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
19 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
All other Port Group operations require a right click on the specific port group and then
choose Device Masking and Mapping > Port Groups Maintenance.
20 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
The syntax is:
symaccess sid SymmID create view -name ViewName -sg StorageGroupName
-pg PortGroupName -ig InitiatorGroupName
[ < [-reserve_id ResvID[,ResvID[,ResvID...]]]
[-lun Addr]
21 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
These are some of the operations commonly performed on Masking Views.
22 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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 addresses this problem.
23 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
24 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
25 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
26 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.
Module 5: Autoprovisioning Groups 27
Copyright 2012 EMC Corporation. All rights reserved
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.
Click on Next to start the process.
Module 5: Autoprovisioning Groups 28
Copyright 2012 EMC Corporation. All rights reserved
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.
Module 5: Autoprovisioning Groups 29
Copyright 2012 EMC Corporation. All rights reserved
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.
Module 5: Autoprovisioning Groups 30
Copyright 2012 EMC Corporation. All rights reserved
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.
Module 5: Autoprovisioning Groups 31
Copyright 2012 EMC Corporation. All rights reserved
The Summary shows what the wizard will do. It will list the names and details of the Initiator
Group, Port Group and Storage Groups.
Click Finish to complete the addition of a New Host
Module 5: Autoprovisioning Groups 32
Copyright 2012 EMC Corporation. All rights reserved
The wizard lists all the steps to be performed. The Show Details button shows the details of
the steps performed.
Module 5: Autoprovisioning Groups 33
Copyright 2012 EMC Corporation. All rights reserved
The Wizard has successfully provisioned storage. The properties view shows the Properties
of the new masking view win161_MV.
Storage Group win161_SG, Initiator Group win161_IG and the existing port group win_pg
make up the masking view.
Devices 231:234 are members of the Storage Group win161_SG.
Module 5: Autoprovisioning Groups 34
Copyright 2012 EMC Corporation. All rights reserved
Upon completion of this lesson, you should be able to:
Identify HBA flags that can be set.
Describe automatic mapping and optional unmapping devices with Autoprovisioning.
Module 5: Autoprovisioning Groups 35
Copyright 2012 EMC Corporation. All rights reserved
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:
symaccess -sid <SymmID> -wwn <wwn> | -iscsi <iscsi>

set hba_flags <on <flag,flag,flag...> <-enable |-disable> |
off [flag,flag,flag...]>

list logins [-dirport <Dir>:<Port>] [-v]

symaccess -sid <SymmID> -name <GroupName> -type initiator

set ig_flags <on <flag> <-enable |-disable> |
off [flag]>
A flag cannot be set for the group if it conflicts with any initiator in the group.
After a flag is set for a group, it cannot be changed on an initiator basis.
36 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
The HBA Flags can be set while creating the Initiator Group or while modifying the same.
Use the Set HBA Flags button to override the existing Port flag settings if necessary.
37 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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
symaccess sid 80 name SV type storage remove dev 011 unmap
Unmapping of devices from a port that is participating in a masking view when the port is
removed from the masking view
symaccess sid 80 name PV type port dirport 7E:0 unmap remove
38 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
Explicit mapping and unmapping of devices is not necessary on VMAX arrays with
Autoprovisioning Groups.
39 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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.

40 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
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:
symaccess replace -wwn wwn -new_wwn NewWWN [-noprompt]

41 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
To replace an HBA in SMC, right click on the Initiator to be replaced and then choose Device
Masking and Mapping > Replace Initiator.
In the Replace Initiator dialog enter the new initators WWN and then click on ok.
42 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
Key points covered in this module:
Autoprovisioning Groups
Device Masking on Symmetrix VMAXe
HBA flags that can be set with the symaccess command
Automatic mapping and optional unmapping devices with Autoprovisioning
43 Module 5: Autoprovisioning Groups
Copyright 2012 EMC Corporation. All rights reserved
1. See slide 4
2. See slides 4, 21, 25
3. See slide 7
4. See slide 6
5. See slide 11
6. See slide 16
7. See slides 23, 24
8. See slides 38, 39
44 Module 5: Autoprovisioning Groups

Вам также может понравиться