Microsoft Virtualization Discussions

\etc\hosts file being updated by 7-mode Network PowerShell cmdlets causing Local SnapMirrors to fail


Hi All,


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.


Example using NetApp powershell cmdlets version 3.2:

After adding a route using Add-NaNetRoute, etc\rc & \etc\hosts files are re-written however when the \etc\hosts is re-written, it now associates the node name alias with the cluster interfaces which then causes the SnapMirrors to itself to fail until it is removed.


Please see below sanatised \etc\hosts file from one of our 7-mode systems. Note the Cluster interfaces now have a hostname of "node02" & and alias of "node02-c0a".  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.


PS C:\> Read-NaFile /vol/vol0/etc/hosts
#Auto-generated by zapi_net_config Fri Nov 28 17:32:18 EST 2014 localhost localhost-stack localhost-10 localhost-bsd localhost-20 localhost-sk node02 node02-c0a node02 node02-c0b
192.168.x.x node02 node02-e0M
192.168.x.x node02 node02-e0P
10.x.x.x node02 node02-prod_vif-1111
10.x.x.x node02 node02-prod_vif-2222
10.x.x.x node02 node02-vscan_vif-3333
192.168.x.x node02 node02-prod_vif-4444