{"id":1498,"date":"2020-08-05T15:40:58","date_gmt":"2020-08-05T13:40:58","guid":{"rendered":"https:\/\/itsimple.info\/?p=1498"},"modified":"2020-08-05T16:08:38","modified_gmt":"2020-08-05T14:08:38","slug":"how-to-set-multipath-storage-connections-with-round-rubin-policy-on-single-vmware-host","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=1498","title":{"rendered":"How to Set Multipath storage connections with Round Robin Policy on single VMWARE host"},"content":{"rendered":"<p>When installing single VMware ESXI host you do not see all the option regarding multi path settings, all those setting need to be done through CLI<\/p>\n<p>First you need to start SSH on the host : go to host-&gt;manage -&gt; services-&gt; start ssh<\/p>\n<p><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1500\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH.png\" alt=\"\" width=\"1539\" height=\"492\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH.png 1539w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH-300x96.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH-1024x327.png 1024w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH-768x246.png 768w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/vmware-startSSH-1536x491.png 1536w\" sizes=\"auto, (max-width: 1539px) 100vw, 1539px\" \/><\/a><\/p>\n<p>Next you need to connect to the host with putty or similar.<\/p>\n<p>To list the attached storage devices :<\/p>\n<pre>esxcli storage core device list<\/pre>\n<p>This will show you all the storage device you have, find that the device is supporting multipath<\/p>\n<pre>Multipath Plugin: NMP<\/pre>\n<p>To get the list of all active path to the storage<\/p>\n<pre><br \/>esxcli storage core path list<br \/>esxcli storage nmp device list<\/pre>\n<p>\u00a0<\/p>\n<p>You should check the setting for the Path Selection Policy (PSP) and the Working Path should be only one network card active when the policy is Fixed mode<\/p>\n<p>Now we need to change the default policy from Fixed mode to Round Robin Where <code><em>policy<\/em><\/code> is:\u00a0<\/p>\n<ul>\n<li><code>VMW_PSP_MRU<\/code> for Most Recently Used mode<\/li>\n<li><code>VMW_PSP_FIXED<\/code> for Fixed mode<\/li>\n<li><code>VMW_PSP_RR<\/code> for Round Robin mode<\/li>\n<\/ul>\n<p>Run this command to get the disk first number naa.XXXX :<\/p>\n<p><span style=\"font-family: Courier New; font-size: small;\">esxcfg-mpath -l<\/span><\/p>\n<p>Run this command to change the policy to Round Robin on any LUN you want, in this example on all the LUN that start with naa.XXXX:<\/p>\n<pre><span style=\"font-family: Courier New; font-size: small;\">for i in `esxcli storage nmp device list | grep '^naa.xxxx'` ; do esxcli storage nmp device set --device $i --psp VMW_PSP_RR; done<\/span><\/pre>\n<p>another example, this change the policy on all Zadara disks to Round Robin:<\/p>\n<pre>for i in `esxcli storage nmp device list | grep \"Zadara\" | cut -d '(' -f2 | cut -d ')' -f1` ; do esxcli storage nmp device set --device $i --psp VMW_PSP_RR; done<\/pre>\n<p>a reboot for the host is recommended after changing policy .<\/p>\n<p>Run\u00a0<\/p>\n<pre class=\"pre screen\" xml:space=\"preserve\">esxcli storage nmp device list<\/pre>\n<p>look for this:<\/p>\n<p><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/iscsi-Multipath.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1502\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/iscsi-Multipath.png\" alt=\"\" width=\"1202\" height=\"203\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/iscsi-Multipath.png 1202w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/iscsi-Multipath-300x51.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/iscsi-Multipath-1024x173.png 1024w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/iscsi-Multipath-768x130.png 768w\" sizes=\"auto, (max-width: 1202px) 100vw, 1202px\" \/><\/a><\/p>\n<p>in working path you should see some cards participating in the path and the policy show be VMW_PSP_RR<\/p>\n<p>Run<\/p>\n<pre>esxcli storage core device stats get<\/pre>\n<p>make sure you do not see any errors in transmissions\u00a0 .<\/p>\n<p>To Adjust the I\/O limits on the policy from 1000 to 1 :<\/p>\n<pre><a href=\"https:\/\/kb.vmware.com\/s\/article\/2069356\"><span style=\"color: #0000ff;\">https:\/\/kb.vmware.com\/s\/article\/2069356<\/span><\/a><br \/><br \/><br \/><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/ISCSI-IO.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1514\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/ISCSI-IO.png\" alt=\"\" width=\"851\" height=\"255\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/ISCSI-IO.png 851w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/ISCSI-IO-300x90.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/08\/ISCSI-IO-768x230.png 768w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><\/a><\/pre>\n<hr \/>\n<h3>Good Luck<\/h3>\n<p>\u00a0<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When installing single VMware ESXI host you do not see all the option regarding multi path settings, all those setting need to be done through CLI First you need to start SSH on the host : go to host-&gt;manage -&gt; services-&gt; start ssh Next you need to connect to the host with putty or similar. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,18,19],"tags":[],"class_list":["post-1498","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-virtualization","category-vmware"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1498"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1498\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}