<p>I setup VIO servers so rarely, that it&#8217;s really easy to miss a step.  These are some of the tuning commands I use when setting up VIO. Set these on the VIO server.</p>
<p>Set the FC adapter error recovery policy to fast_fail:<br />
<code></p>
<pre>chdev -dev fscsi<b>0</b> -attr fc_err_recov=fast_fail -perm</pre>
<p></code><br />
Enable dynamic tracking on the FC adapter:<br />
<code></p>
<pre>chdev -dev fscsi<b>0</b> -attr dyntrk=yes -perm</pre>
<p></code><br />
Set the FC adapter link type to point-to-point:<br />
<code></p>
<pre>chdev -dev fcs<b>0</b> -attr init_link=pt2pt -perm</pre>
<p></code><br />
I haven&#8217;t found a need to tweak the num_cmd_elems, lg_term_dma, or max_xfer_size with 4Gb Fibre Channel.<br />
For each disk to be used as a VTD, disable SCSI reservations:<br />
<code></p>
<pre>chdev -dev hdisk<b>1</b> -attr reserve_policy=no_reserve -perm</pre>
<p></code></p>
<p>After these are run, reboot the VIO server. And then check these on the client LPARs.</p>
<p>Set the VSCSI error recovery mode to fast_fail for each VSCSI adapter:<br />
<code></p>
<pre>chdev -l vscsi<b>0</b> -a vscsi_err_recov=fast_fail</pre>
<p></code><br />
Set the VSCSI path timeout for each VSCSI adapter:<br />
<code></p>
<pre>chdev -l vscsi<b>0</b> -a vscsi_path_to=30</pre>
<p></code><br />
Set the healthcheck mode and interval:<br />
<code></p>
<pre>chdev -l hdisk0 -a hcheck_mode=nonactive -a hcheck_interval=20</pre>
<p></code></p>
{"id":637,"date":"2011-02-11T14:07:39","date_gmt":"2011-02-11T18:07:39","guid":{"rendered":"http:\/\/patrickv.info\/wordpress\/?p=637"},"modified":"2011-02-11T14:07:39","modified_gmt":"2011-02-11T18:07:39","slug":"vio-server-setup","status":"publish","type":"post","link":"https:\/\/rootuser.ninja\/index.php\/2011\/02\/11\/vio-server-setup\/","title":{"rendered":"VIO Disk Tuning"},"content":{"rendered":"<p>I setup VIO servers so rarely, that it&#8217;s really easy to miss a step.  These are some of the tuning commands I use when setting up VIO. Set these on the VIO server.<\/p>\n<p>Set the FC adapter error recovery policy to fast_fail:<br \/>\n<code><\/p>\n<pre>chdev -dev fscsi<b>0<\/b> -attr fc_err_recov=fast_fail -perm<\/pre>\n<p><\/code><br \/>\nEnable dynamic tracking on the FC adapter:<br \/>\n<code><\/p>\n<pre>chdev -dev fscsi<b>0<\/b> -attr dyntrk=yes -perm<\/pre>\n<p><\/code><br \/>\nSet the FC adapter link type to point-to-point:<br \/>\n<code><\/p>\n<pre>chdev -dev fcs<b>0<\/b> -attr init_link=pt2pt -perm<\/pre>\n<p><\/code><br \/>\nI haven&#8217;t found a need to tweak the num_cmd_elems, lg_term_dma, or max_xfer_size with 4Gb Fibre Channel.<br \/>\nFor each disk to be used as a VTD, disable SCSI reservations:<br \/>\n<code><\/p>\n<pre>chdev -dev hdisk<b>1<\/b> -attr reserve_policy=no_reserve -perm<\/pre>\n<p><\/code><\/p>\n<p>After these are run, reboot the VIO server. And then check these on the client LPARs.<\/p>\n<p>Set the VSCSI error recovery mode to fast_fail for each VSCSI adapter:<br \/>\n<code><\/p>\n<pre>chdev -l vscsi<b>0<\/b> -a vscsi_err_recov=fast_fail<\/pre>\n<p><\/code><br \/>\nSet the VSCSI path timeout for each VSCSI adapter:<br \/>\n<code><\/p>\n<pre>chdev -l vscsi<b>0<\/b> -a vscsi_path_to=30<\/pre>\n<p><\/code><br \/>\nSet the healthcheck mode and interval:<br \/>\n<code><\/p>\n<pre>chdev -l hdisk0 -a hcheck_mode=nonactive -a hcheck_interval=20<\/pre>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[],"class_list":["post-637","post","type-post","status-publish","format-standard","hentry","category-aix-notes","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/comments?post=637"}],"version-history":[{"count":0,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/637\/revisions"}],"wp:attachment":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/media?parent=637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/categories?post=637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/tags?post=637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}