Thursday, January 19, 2012

VMAX Thin LUN provisioning

VMAX LUN provisioning includes the following steps:

Create a Thin Device
Create a storage group with the device created
Create an initiator group with host WWNs
Create a port group with array controller (follow rule of 17)
Create a masking view with storage group, initiator group and port group

Create a VMAX Thin Device

A. Create a text file:

create dev count=1, size=350GB, emulation=FBA,
config=TDEV,device_attr=SCSI3_persist_reserv ,binding to pool=Silver_FC_P2;

symconfigure -sid 4328 -f command_file.txt prepare

symconfigure -sid 4328 -f command_file.txt commit

Or

C:\>symconfigure -sid xxxx -cmd "create dev count=10, size=109227, emulation=fba,

config=TDEV, device_attr = SCSI3_persist_reserv, binding to pool=Silver_FC_P2"; commit

Create a Meta thin device.

C:\>symconfigure -sid xxxx -cmd "create dev count=10, size=109227, emulation=fba

, config=TDEV, device_attr = SCSI3_persist_reserv"; commit

Note down the new Devices created : eg : New symdevs : 1604:160D

C:\>symconfigure -sid xxxx -cmd "form meta from dev 1604, config=concatenated;
add dev 1605:160D to meta 1604"; commit

C:\>symconfigure -sid xxxx -cmd "bind tdev 1604 to pool Silver_FC_P2"; commit

Create a storage group

symaccess -sid XXXX -type storage -name TTTT create devs 1604

symaccess -sid xxxx -type storage -name TTTT add devs 160E

or

symaccess -sid xxxx -type storage -name TTTT create devs 1604:1605

symaccess -sid xxx -name TTTT -type storage create devs 0050, 0055

Create an initiator group

symaccess -sid xxxx -type initiator -name yyyy create -wwn 21000024FF31EA98

symaccess -sid xxxx -type initiator -name yyyy add -wwn 21000024FF31EA99

 It is also possible to create the group and add in one command as follows:

symaccess -sid xxxx create -name <init_group_name> -type initiator -f <filename>

where the file <filename> contains WWN entries,

eg: 2000000000000001, 2000000000000002, 2000000000000003

Create a Port Group.

symaccess -sid xxxx create -name hhhh -type port -dirport 9e:0,11e:0.

  Create a Masking view

symaccess -sid xxxx create view -name ZZZZ-sg TTTT -pg hhhh -ig YYYY

To verify the Configurations:

symaccess -sid xxxx list -type initiator / symaccess -sid xxx -type initiator show YYYY

symaccess -sid xxxx list -type storage

symaccess -sid xxxx list -type port symaccess -sid xxxx list view

C:\>symaccess -sid xxx show view zzzz

Adding LUNs to DMX-4

Adding LUNs to existing Symmetri x Configuration

[From host WWN /host name , find the zoning information from the fabric switch. From zone
name We can find the symmetrix array and controller details (if its named accordingly)]

1. symmask -sid xxxx -wwn 2100001b328exxxx list logins

It will give the symmetrix array details, director , director port it is mapped to ,
node name etc

2. symmaskdb -sid xxx list -host hostname capacity

It would give all the device attached, total capacity etc

3. Pick any device from the above list and issue

symdev -sid xxx show 1270

It would give mirror/hyper type , meta configuration ,meta stripe size etc.

Keep the same configuration for  new LUNS as well

4. Symdev -sid xxxx list –noport

Select appropriate device based on the requirement(size, meta config)

5. symconfigure –sid xxxx –cmd “form meta from dev 1270 config=striped,
stripe=size=1920; add dev 1271;1273 to meta 1270”; commit

6. symcfg -sid xxxx –FA 13C –p 1 list –address –available (command 1 will give
director ,port info).Do it for both the ports. Select the one with available (*)

7. symconfigure –sid xxxx –cmd “ map dev 1270 to dir 4C:1,target=0,lun=005”; commit

LUN number would get from previous command
8. symmask –sid xxxx –wwn wwn -dir 13C p1 add devs 1270 (do the same for another
initiator)
9. symmask –sid xxxx refresh.