{"id":3674,"date":"2023-02-22T10:32:24","date_gmt":"2023-02-22T10:32:24","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=3674"},"modified":"2023-03-04T11:46:09","modified_gmt":"2023-03-04T11:46:09","slug":"vmware-check-path-selection-policy-for-datastores","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=3674","title":{"rendered":"VMware Check Path Selection Policy for Datastores"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Path Selection Policy is set for devices to determine how the ESXi host will utilise the paths to the storage, for example, you can have &#8220;Fixed&#8221; or &#8220;Round Robin&#8221; or &#8220;Most Recently Used&#8221;, you can also have storage vendor provided ones such as &#8220;NIMBLE_PSP_DIRECTED&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The scripts and commands I&#8217;ve found keep mentioning &#8220;Multipathing&#8221;, if you check for this value you&#8217;ll get a different value to what you see for the actual Path Selection Policy (PSP).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"296\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/02\/image.png\" alt=\"\" class=\"wp-image-3675\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/02\/image.png 507w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/02\/image-300x175.png 300w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As checking each is quite time consuming i&#8217;ve created a PowerShell script, that requires PowerCLI installed to query for a particular datastore and then determines the PSP setting for all connected hosts (this is a per host setting rather than a datastore setting), you&#8217;ll then know which hosts need remediation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/tristanhself\/general\/blob\/1c95130bea5ac7c2642dd6817b9dc3774affa1bf\/vmware\/showstoragepsp.ps1\">https:\/\/github.com\/tristanhself\/general\/blob\/1c95130bea5ac7c2642dd6817b9dc3774affa1bf\/vmware\/showstoragepsp.ps1<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/tristanhself\/general\/blob\/00e90f2b1e19986395d77e3b09f0ca9a255e075f\/vmware\/showstoragepsp-global.ps1\">https:\/\/github.com\/tristanhself\/general\/blob\/00e90f2b1e19986395d77e3b09f0ca9a255e075f\/vmware\/showstoragepsp-global.ps1<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/unsplash.com\/@emilymorter\" data-type=\"URL\" data-id=\"https:\/\/unsplash.com\/@emilymorter\">Image Attribution<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Path Selection Policy is set for devices to determine how the ESXi host will utilise the paths to the storage, for example, you can have &#8220;Fixed&#8221; or &#8220;Round Robin&#8221; or &#8220;Most Recently Used&#8221;, you can also have storage vendor provided ones such as &#8220;NIMBLE_PSP_DIRECTED&#8221;. The scripts and commands I&#8217;ve found keep mentioning &#8220;Multipathing&#8221;, if &#8230; <a title=\"VMware Check Path Selection Policy for Datastores\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=3674\" aria-label=\"Read more about VMware Check Path Selection Policy for Datastores\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":3684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,24,25],"tags":[],"class_list":["post-3674","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nimble-storage","category-storage","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3674"}],"version-history":[{"count":3,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3674\/revisions"}],"predecessor-version":[{"id":3685,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3674\/revisions\/3685"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/media\/3684"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}