SAS Zoning permission setup, using SMP Utilities

Below steps demonstrate to perform SAS-2 Zoning using SMP utilities:

 

Base requirement:

smp_dev : device details for which zoning and permissions need to be set

Example: smp_dev = /dev/bsg/1:0:0:0 or /dev/bsg/expander-x:x

Zoning info file for the PHYS of SAS disks and servers on all the expanders including zone groups, if performing any zoning along with the permissions.

Zone permission file (Sample added below)

Steps:

1> Lock the zone for changes:

smp_zone_lock <smp_dev>

2> Configure SMP zone permissions using the permission file

smp_conf_zone_perm_tbl –permf=<full path of the permission file> –deduce -v <smp_dev>

3> PHY zone configuration

smp_conf_zone_phy_info –pconf=<full path of the zone configuration file> <smp_dev>

4> Enable Zoning

smp_ena_dis_zoning <smp_dev>

5> Activate Zone

smp_zone_activate <smp_dev>

6> Unlock Zone to freeze the changes

smp_zone_unlock <smp_dev>

7> Discover the list

smp_discover_list <smp_dev>

8> View the zone permission table

smp_rep_zone_perm_tbl –bits=12 <smp_dev>

 

Example of the zone group configuration file as below:

# Assume starting source zone group is 0, define 25 descriptors

#Note the ‘–start=10’ so the following descriptors start at source
–start=10

0,0,0,0,0,0,0,0 0,0,0,0,0,0,01,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,02,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,04,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,08,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,10,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,20,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,40,2
0,0,0,0,0,0,0,0 0,0,0,0,0,0,80,2
0,0,0,0,0,0,0,0 0,0,0,0,0,01,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,02,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,04,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,08,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,10,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,20,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,40,0,2
0,0,0,0,0,0,0,0 0,0,0,0,0,80,0,2

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.