先說幾個概念
initiator group(IG):小機的wwn號 group,map給那些小雞
port group(PG): 存儲前端端口集合,從存儲的那些前端口出去
storage group(PG):要map的lun的group map給小機那些lun
masking view :集合以上3個group,就能夠把lun map給小機
1.Create Initiators and Initiator Groups
方法1:Unisphere for VMAX
先到陣列的管理機裏面,打開Unisphere for VMAX web 站點
https://localhost:8443/univmax
點擊Hosts > Create New Host
選擇要配置的vmax的Symmetrix ID,輸入一個Host name 如: esx01
在Initiator/Initiator Group 處輸入或者選擇主機的pwwn號,通常狀況下每臺主機最少2個,Show Advanced 而後 Set Initiator Flags
選擇:
Common_Serial_Number(C) Override and Enable
SPC2_Protocol_Version(SPC2) Override and Enable
Consistent LUNs
點擊 Finish
方法2:cli方式
首先爲initiator group須要的pwwn號建立一個txt文件
如txt文件名字:initiatorX.txt 格式以下
WWN:20000025B502xxxx
WWN:20000025B502xxxx
建立完成後輸入以下命令:
symaccess -sid create -name -type inititator -file
驗證:
symaccess -sid list | findstr /i "some unique characters in initiator name"
The findstr /i is optional and only to narrow the search results
2.Creating a Port Group
如 ESXi boot Port Group:
Hosts > Port Groups > Create
Port Group Name - set to logical name 如: ESX01_BOOT
Add the same FA ports that you've zoned the host to on the switch, typically at least 4 ports
點擊 OK
CLI:
symaccess -sid create -name -type port -dirports
Where Director FA is in format 11F and Port is either port 0 or port 1
3.Creating a Storage Group
如:ESXi Boot Storage:
Storage Group Name - set to logical name i.e. ESX01_BOOT
Manual Selection and click Next
Select the Filter icon and the Volume Identifier menu then click Show Advanced
Enter the Volume Identifier Name and hit Enter key i.e. ESX01_BOOT added same identifier when creating the volume
Click Add to Group to add the volume
Click Finish
From CLI:
symaccess -sid create -name -type storage -devs
4.Creating a Masking View
如 ESXi boot masking view
Go to Hosts > Masking Views > Create
Enter a name 如: ESX01_BOOT
Select the Initiator Group - hopefully similar name
Select the Port Group - again, hopefully a similar name
Select the Storage Group - """""""
點擊 Set dynamic LUNs 確保他設置爲0 ,而後點擊cancel
點擊 OK
CLI:
symaccess -sid create view -name -storgrp -portgrp -initgrp
驗證:
symaccess -sid show view