<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic \etc\hosts file being updated by 7-mode Network PowerShell cmdlets causing Local SnapMirrors to fail in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/etc-hosts-file-being-updated-by-7-mode-Network-PowerShell-cmdlets-causing-Local/m-p/97818#M4067</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We often use SnapMirror to move volumes on the same node and also the WFA LUN migrations workflow where we have encountered a problem whcih i belive comes from the way the \etc\Hosts is re-written by the PowerShell cmdlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example using NetApp powershell cmdlets version 3.2:&lt;/P&gt;&lt;P&gt;After adding a route using&amp;nbsp;Add-NaNetRoute, etc\rc &amp;amp; \etc\hosts files are re-written however when the&amp;nbsp;&lt;SPAN&gt;\etc\hosts is re-written, it now associates&amp;nbsp;the node name alias with the cluster interfaces which then causes the SnapMirrors to itself to fail until it is removed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see below sanatised \etc\hosts file from one of our 7-mode systems. Note the Cluster interfaces now have a hostname of "node02" &amp;amp; and alias of "node02-c0a".&amp;nbsp;&amp;nbsp;Node02 is the name of the system. This was not there before running any PowerShell networing cmdlets and is the casue of a few SnapMirror issues for us.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS C:\&amp;gt; Read-NaFile /vol/vol0/etc/hosts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#Auto-generated by zapi_net_config Fri Nov 28 17:32:18 EST 2014&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;127.0.0.1 localhost localhost-stack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;127.0.10.1 localhost-10 localhost-bsd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;127.0.20.1 localhost-20 localhost-sk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&lt;STRONG&gt;192.168.1.209 node02 node02-c0a&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&lt;STRONG&gt;192.168.2.146 node02 node02-c0b&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;192.168.x.x node02 node02-e0M&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;192.168.x.x node02 node02-e0P&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10.x.x.x node02 node02-prod_vif-1111&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10.x.x.x node02 node02-prod_vif-2222&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10.x.x.x node02 node02-vscan_vif-3333&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;192.168.x.x node02 node02-prod_vif-4444&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:23:58 GMT</pubDate>
    <dc:creator>PADMANTECH</dc:creator>
    <dc:date>2025-06-05T05:23:58Z</dc:date>
    <item>
      <title>\etc\hosts file being updated by 7-mode Network PowerShell cmdlets causing Local SnapMirrors to fail</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/etc-hosts-file-being-updated-by-7-mode-Network-PowerShell-cmdlets-causing-Local/m-p/97818#M4067</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We often use SnapMirror to move volumes on the same node and also the WFA LUN migrations workflow where we have encountered a problem whcih i belive comes from the way the \etc\Hosts is re-written by the PowerShell cmdlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example using NetApp powershell cmdlets version 3.2:&lt;/P&gt;&lt;P&gt;After adding a route using&amp;nbsp;Add-NaNetRoute, etc\rc &amp;amp; \etc\hosts files are re-written however when the&amp;nbsp;&lt;SPAN&gt;\etc\hosts is re-written, it now associates&amp;nbsp;the node name alias with the cluster interfaces which then causes the SnapMirrors to itself to fail until it is removed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see below sanatised \etc\hosts file from one of our 7-mode systems. Note the Cluster interfaces now have a hostname of "node02" &amp;amp; and alias of "node02-c0a".&amp;nbsp;&amp;nbsp;Node02 is the name of the system. This was not there before running any PowerShell networing cmdlets and is the casue of a few SnapMirror issues for us.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS C:\&amp;gt; Read-NaFile /vol/vol0/etc/hosts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#Auto-generated by zapi_net_config Fri Nov 28 17:32:18 EST 2014&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;127.0.0.1 localhost localhost-stack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;127.0.10.1 localhost-10 localhost-bsd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;127.0.20.1 localhost-20 localhost-sk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&lt;STRONG&gt;192.168.1.209 node02 node02-c0a&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&lt;STRONG&gt;192.168.2.146 node02 node02-c0b&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;192.168.x.x node02 node02-e0M&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;192.168.x.x node02 node02-e0P&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10.x.x.x node02 node02-prod_vif-1111&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10.x.x.x node02 node02-prod_vif-2222&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10.x.x.x node02 node02-vscan_vif-3333&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;192.168.x.x node02 node02-prod_vif-4444&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:23:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/etc-hosts-file-being-updated-by-7-mode-Network-PowerShell-cmdlets-causing-Local/m-p/97818#M4067</guid>
      <dc:creator>PADMANTECH</dc:creator>
      <dc:date>2025-06-05T05:23:58Z</dc:date>
    </item>
  </channel>
</rss>

