<?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 Preventing suprise removals on host when using remove-nclunmap (data ontap powershell toolkit) in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Preventing-suprise-removals-on-host-when-using-remove-nclunmap-data-ontap/m-p/157083#M35601</link>
    <description>&lt;P&gt;I have a question regarding the data ontap powershell toolkit. As probably most of you know by now; snapdrive has been quietly put out of order in favor of snapcenter which basically forces us to integrate with snapcenter if we need to do anything related to lun management.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been looking into writing a powershell module which would emulate certain functions offered by snapdrive, so we can atleast do our lunmanagement on our w2k19 servers as we don't have snapcenter setup yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checking into the data ontap powershell toolkit and have been able to recreate most basic functions which snapdrive does; but have run into a little issue regarding disconnecting LUNS connected by iSCSI.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's relatively easy to make sure that the mappings get removed but it seems the host itself is not happy suddenly not seeing it's disk anymore; basically stalling all storage related functions untill he times out. (you get a suprise removal in this case).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;following procedure s used for now: dismount the volume on the host itself first (so it loses it's access path); next remove the mapping by using remove-nclunmap. It sounds logic that he still has issues because after you dismount the volume he still sees this on OS level; but i wonder how i can can actually cover this problem).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you guys can help me out on this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:04:41 GMT</pubDate>
    <dc:creator>JEROENVRANCKX</dc:creator>
    <dc:date>2025-06-04T11:04:41Z</dc:date>
    <item>
      <title>Preventing suprise removals on host when using remove-nclunmap (data ontap powershell toolkit)</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Preventing-suprise-removals-on-host-when-using-remove-nclunmap-data-ontap/m-p/157083#M35601</link>
      <description>&lt;P&gt;I have a question regarding the data ontap powershell toolkit. As probably most of you know by now; snapdrive has been quietly put out of order in favor of snapcenter which basically forces us to integrate with snapcenter if we need to do anything related to lun management.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been looking into writing a powershell module which would emulate certain functions offered by snapdrive, so we can atleast do our lunmanagement on our w2k19 servers as we don't have snapcenter setup yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checking into the data ontap powershell toolkit and have been able to recreate most basic functions which snapdrive does; but have run into a little issue regarding disconnecting LUNS connected by iSCSI.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's relatively easy to make sure that the mappings get removed but it seems the host itself is not happy suddenly not seeing it's disk anymore; basically stalling all storage related functions untill he times out. (you get a suprise removal in this case).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;following procedure s used for now: dismount the volume on the host itself first (so it loses it's access path); next remove the mapping by using remove-nclunmap. It sounds logic that he still has issues because after you dismount the volume he still sees this on OS level; but i wonder how i can can actually cover this problem).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you guys can help me out on this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:04:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Preventing-suprise-removals-on-host-when-using-remove-nclunmap-data-ontap/m-p/157083#M35601</guid>
      <dc:creator>JEROENVRANCKX</dc:creator>
      <dc:date>2025-06-04T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing suprise removals on host when using remove-nclunmap (data ontap powershell toolkit)</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Preventing-suprise-removals-on-host-when-using-remove-nclunmap-data-ontap/m-p/157581#M35796</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The powershell toolkit does not have any other command that map more to snapdrive beside the one you are using or can find in the TR below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.netapp.com/us/media/tr-4475.pdf" target="_blank"&gt;https://www.netapp.com/us/media/tr-4475.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add-N?LunMap Maps the LUN to all the initiators in the specified initiator group&lt;/P&gt;
&lt;P&gt;Remove-N?LunMap Reverses the effect of Add-NaLunMap on the specified LUN for&lt;BR /&gt;the specified group&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When issuing the remove-Nlunmap the behavior you seeing in your host is expected as this ID 157 was introduced in windows 8.1 and server&amp;nbsp;&lt;SPAN&gt;2012 R2 to log a record of a disk disappearing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/archive/blogs/ntdebugging/event-id-157-disk-has-been-surprise-removed" target="_blank"&gt;https://docs.microsoft.com/en-us/archive/blogs/ntdebugging/event-id-157-disk-has-been-surprise-removed&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 01:27:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Preventing-suprise-removals-on-host-when-using-remove-nclunmap-data-ontap/m-p/157581#M35796</guid>
      <dc:creator>hmoubara</dc:creator>
      <dc:date>2020-07-08T01:27:34Z</dc:date>
    </item>
  </channel>
</rss>

