{"id":28,"date":"2017-01-12T08:24:20","date_gmt":"2017-01-12T08:24:20","guid":{"rendered":"http:\/\/virtorbis.virtcompute.com\/?p=28"},"modified":"2017-02-07T03:47:07","modified_gmt":"2017-02-07T03:47:07","slug":"sas-zoning-permission-setup-using-smp-utilities","status":"publish","type":"post","link":"https:\/\/virtorbis.virtcompute.com\/?p=28","title":{"rendered":"SAS Zoning permission setup, using SMP Utilities"},"content":{"rendered":"<p>Below steps demonstrate to perform SAS-2 Zoning using SMP utilities:<\/p>\n<p>&nbsp;<\/p>\n<p>Base requirement:<\/p>\n<p>smp_dev : device details for which zoning and permissions need to be set<\/p>\n<p>Example: smp_dev = \/dev\/bsg\/1:0:0:0 or \/dev\/bsg\/expander-x:x<\/p>\n<p>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.<\/p>\n<p>Zone permission file (Sample added below)<\/p>\n<p>Steps:<\/p>\n<p>1&gt; Lock the zone for changes:<\/p>\n<p>smp_zone_lock &lt;smp_dev&gt;<\/p>\n<p>2&gt; Configure SMP zone permissions using the permission file<\/p>\n<p>smp_conf_zone_perm_tbl &#8211;permf=&lt;full path of the permission file&gt;\u00a0&#8211;deduce -v &lt;smp_dev&gt;<\/p>\n<p>3&gt; PHY zone configuration<\/p>\n<p>smp_conf_zone_phy_info &#8211;pconf=&lt;full path of the zone configuration file&gt; &lt;smp_dev&gt;<\/p>\n<p>4&gt; Enable Zoning<\/p>\n<p>smp_ena_dis_zoning &lt;smp_dev&gt;<\/p>\n<p>5&gt; Activate Zone<\/p>\n<p>smp_zone_activate &lt;smp_dev&gt;<\/p>\n<p>6&gt; Unlock Zone to freeze the changes<\/p>\n<p>smp_zone_unlock &lt;smp_dev&gt;<\/p>\n<p>7&gt; Discover the list<\/p>\n<p>smp_discover_list &lt;smp_dev&gt;<\/p>\n<p>8&gt; View the zone permission table<\/p>\n<p>smp_rep_zone_perm_tbl &#8211;bits=12 &lt;smp_dev&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>Example of the zone group configuration file as below:<\/p>\n<p># Assume starting source zone group is 0, define 25 descriptors<\/p>\n<p>#Note the &#8216;&#8211;start=10&#8217; so the following descriptors start at source<br \/>\n&#8211;start=10<\/p>\n<p>0,0,0,0,0,0,0,0 0,0,0,0,0,0,01,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,02,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,04,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,08,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,10,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,20,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,40,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,0,80,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,01,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,02,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,04,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,08,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,10,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,20,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,40,0,2<br \/>\n0,0,0,0,0,0,0,0 0,0,0,0,0,80,0,2<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below steps demonstrate to perform SAS-2 Zoning using SMP utilities: &nbsp; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20],"tags":[18,17,16,15],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-sas","category-zoning","tag-sas-permission","tag-sas-zoning","tag-sas-2","tag-smp"],"_links":{"self":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":6,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}