{"id":532,"date":"2010-02-02T09:38:56","date_gmt":"2010-02-02T14:38:56","guid":{"rendered":"http:\/\/www.jasemccarty.com\/blog\/?p=532"},"modified":"2010-02-02T09:38:56","modified_gmt":"2010-02-02T14:38:56","slug":"powercli-nfs-settings-for-vsphere-netapp-nfs-recommendations","status":"publish","type":"post","link":"https:\/\/www.jasemccarty.com\/blog\/powercli-nfs-settings-for-vsphere-netapp-nfs-recommendations\/","title":{"rendered":"PowerCLI: NFS Settings for vSphere (NetApp NFS Recommendations)"},"content":{"rendered":"<p>I have rebuilt several systems lately, all of which are connected to a NetApp filer.<\/p>\n<p><strong>Reference Material:<\/strong><br \/>\nBecause I&#8217;m connecting to a NetApp filer, I made sure to reference <strong><a title=\"TR-3749 NetApp and VMware vSphere Storage Best Practices\" href=\"http:\/\/media.netapp.com\/documents\/tr-3749.pdf\" target=\"_blank\">TR-3749 NetApp and VMware vSphere Storage Best Practices<\/a><\/strong> for the appropriate settings.\u00a0 I am specifically referencing the settings in section <strong>6 NFS Storage Recommendations<\/strong> on page 35.<\/p>\n<p>After manually configuring the Advanced Settings for my first host, I decided I didn&#8217;t want to have to manually go through the process of updating these settings for each host.<\/p>\n<p><strong>Working Smarter:<\/strong><br \/>\nSo I put together a quick script to update the settings via the PowerCLI.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n#***************************************************************************\n#\n# Update TCP and NFS Advanced Configuration Settings for vSphere\n# Author: Jase McCarty\n# Date: 1\/15\/2010\n#\n#***************************************************************************\n\n$ESXHOST = Read-Host &quot;Enter ESX Host Name or IP&quot;\nConnect-VIServer $ESXHOST\n\nWrite-Host &quot;Updating TCP and NFS Advanced Configuration Settings&quot;\n\n# Update TCP Settings\nSet-VMHostAdvancedConfiguration -VMHost $ESXHOST -Name Net.TcpipHeapSize -Value 30\nSet-VMHostAdvancedConfiguration -VMHost $ESXHOST -Name Net.TcpipHeapMax -Value 120\n\n# Update NFS Settings (For ESX 3.5, MaxVolumes should be 32)\nSet-VMHostAdvancedConfiguration -VMHost $ESXHOST -Name NFS.MaxVolumes -Value 64\nSet-VMHostAdvancedConfiguration -VMHost $ESXHOST -Name NFS.HeartbeatMaxFailures -Value 10\nSet-VMHostAdvancedConfiguration -VMHost $ESXHOST -Name NFS.HeartbeatFrequency -Value 12\nSet-VMHostAdvancedConfiguration -VMHost $ESXHOST -Name NFS.HeartbeatTimeout -Value 5\n<\/pre>\n<p><strong>Verification:<\/strong><br \/>\nOnce hosts are added into vCenter, the NetApp VSC confirms that all settings are correct.<\/p>\n<table border=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"http:\/\/www.jasemccarty.com\/blog\/wp-content\/uploads\/2010\/02\/vscnfs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-537\" title=\"VSC Overview\" src=\"http:\/\/www.jasemccarty.com\/blog\/wp-content\/uploads\/2010\/02\/vscnfs-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td align=\"center\"><a href=\"http:\/\/www.jasemccarty.com\/blog\/wp-content\/uploads\/2010\/02\/vscnfsdetails1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-541\" title=\"VSC Host Details\" src=\"http:\/\/www.jasemccarty.com\/blog\/wp-content\/uploads\/2010\/02\/vscnfsdetails1-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Method to the madness:<\/strong><br \/>\nThis script is run against individual hosts, whether they are connected to vCenter or not.\u00a0 I chose to go this route, because I did not want to run a risk of updating a host that was already configured, and added to my vCenter installation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have rebuilt several systems lately, all of which are connected to a NetApp filer. Reference Material: Because I&#8217;m connecting to a NetApp filer, I &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],"tags":[56,58,65,111],"class_list":["post-532","post","type-post","status-publish","format-standard","hentry","category-virtualization","tag-netapp","tag-nfs","tag-powercli","tag-vsphere"],"_links":{"self":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/posts\/532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/comments?post=532"}],"version-history":[{"count":0,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/media?parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/categories?post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/tags?post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}