<?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 Find all available LUN IDs for a given IGroup in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58886#M12233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a simple Volume/LUN creation/mapping workflow and would like to find all available LUN IDs in the range 0-255 (for mapping to VMware hosts) for a given IGroup. The idea is to use this list as a User Input, so that a user can select from this list when mapping the LUN to an IGroup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to write a simple MySQL query to return LUN IDs which are already used, but don't know how to return all the other values in the 0-255 range which aren't&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nebojsa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:40:35 GMT</pubDate>
    <dc:creator>NEBOJSA_ILIC</dc:creator>
    <dc:date>2025-06-05T05:40:35Z</dc:date>
    <item>
      <title>Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58886#M12233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a simple Volume/LUN creation/mapping workflow and would like to find all available LUN IDs in the range 0-255 (for mapping to VMware hosts) for a given IGroup. The idea is to use this list as a User Input, so that a user can select from this list when mapping the LUN to an IGroup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to write a simple MySQL query to return LUN IDs which are already used, but don't know how to return all the other values in the 0-255 range which aren't&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nebojsa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:40:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58886#M12233</guid>
      <dc:creator>NEBOJSA_ILIC</dc:creator>
      <dc:date>2025-06-05T05:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58892#M12235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nebojsa,&lt;/P&gt;&lt;P&gt;In order to achieve your objective of listing available LUN IDs for a given igroup, you would have to create a table with entries from 0-255 and then perform a diff of the lun map table against this one. Following steps will help you achieve that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Login to your mysql database as the 'wfa' user. Create a table, say 'all_ids' with just a single column called 'id', in the playground database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATE TABLE `all_ids` (&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; `id` mediumint(8) unsigned NOT NULL auto_increment,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; PRIMARY KEY (`id`)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;) AUTO_INCREMENT=1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Populate this table with values from 0 to 255. I have short procedure for this which i can share if required.&lt;/P&gt;&lt;P&gt;3. Use the following sql query for your user input, that will return ids in the range 0-255 which have not been used to map against that specific igroup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT avail_ids.id &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;playground.all_ids AS avail_ids &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LEFT JOIN &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; ( &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT storage.lunmap.lun_map_value &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.lunmap JOIN storage.igroup &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON storage.lunmap.igroup_id=storage.igroup.id&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.igroup.name = '${igroup_name}' &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; )&amp;nbsp; AS temp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ON avail_ids.id=temp.lun_map_value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE temp.lun_map_value IS NULL &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;avail_ids.id&amp;lt;&amp;gt;temp.lun_map_value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I have made use of a variable ${igroup_name}. Please replace this with the variable you are using to identify the igroup_name. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a query that will work with the storage scheme. If you are working with clusters, you will have to replace the scheme names in this query to cm_storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any other help with this required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhruv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 06:58:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58892#M12235</guid>
      <dc:creator>dhruvd</dc:creator>
      <dc:date>2014-03-14T06:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58901#M12238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an interesting topic.. I've done this before with straight powershell for netapp to determine which lunID's are mapped to igroup and lun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like how you did the mssql piece&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 12:14:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58901#M12238</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-03-14T12:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58906#M12240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dhruvd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, this works like a charm &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; The only problem I have now is that after creating and deleting LUNs, WFA somehow fails to update this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I have created a few test volumes and LUNs, so the first available LUN ID became 11. I then deleted all of these volumes/LUNs, and just be sure I'm not working with cached values - reset Scheme on my UFM data source and did a manual&amp;nbsp; acquisition, but when I run the workflow it still displays 11 as the first available LUN ID. When I run the SQL script used to display User Input against the WFA database, it returns correct values as available LUN IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what could be the problem? I'm running WFA 2.2.0.2.4RC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nebojsa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 18:52:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58906#M12240</guid>
      <dc:creator>NEBOJSA_ILIC</dc:creator>
      <dc:date>2014-03-15T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58911#M12242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nebojsa,&lt;/P&gt;&lt;P&gt;I have a couple of questions:&lt;/P&gt;&lt;P&gt;1. Were the volumes/LUNs created earlier using a workflow in WFA? &lt;/P&gt;&lt;P&gt;2. Were these deleted using a workflow in WFA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case these were &lt;/P&gt;&lt;P&gt;created using WFA, and *not* deleted using WFA, &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;not created using WFA, and not deleted using WFA,&lt;/P&gt;&lt;P&gt;the reason would be:&lt;/P&gt;&lt;P&gt;1. The UM database is not updated. &lt;/P&gt;&lt;P&gt;2. As a result the WFA cache still assumes that the LUN is present on the storage system, but has not received the updated information from the UM database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A monitor refresh from UM against the storage system before manual acquisition should fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhruv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 09:48:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58911#M12242</guid>
      <dc:creator>dhruvd</dc:creator>
      <dc:date>2014-03-17T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58916#M12244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dhruvd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my case is "&lt;SPAN style="background-color: #ffffff; color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;created using WFA, and *not* deleted using WFA"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;I couldn't find a way to do a monitor refresh through UM (I'm using UM for cDOT 6.0), but after a few days &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; workflow presents correct information. After two days first available LUN ID became 4, and then after 2 more days the offered user input started matching the state on the storage system, so it seems as a cache issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Nebojsa&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 15:25:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58916#M12244</guid>
      <dc:creator>NEBOJSA_ILIC</dc:creator>
      <dc:date>2014-03-18T15:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find all available LUN IDs for a given IGroup</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58922#M12246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Nebojsa,&lt;/P&gt;&lt;P&gt;You got it right, it's because of the data present in the WFA cache.&lt;/P&gt;&lt;P&gt;Let me explain what happens.&lt;/P&gt;&lt;P&gt;When WFA creates a new object on a cluster, it caches these details until it gets these details about the new object from the UM that is monitoring the cluster.&lt;/P&gt;&lt;P&gt;What has happened with your WFA is, it has cached details of the created LUN.&lt;/P&gt;&lt;P&gt;Now, after the deletion of the objects from the cluster, UM has not yet refreshed the object details from the cluster. As a result of this, even after a manual acquisition, WFA continues to have stale data from UM.&lt;/P&gt;&lt;P&gt;Quick resolution would be to either :&lt;/P&gt;&lt;P&gt;1. Wait for UM to acquire fresh details from the cluster. UM 6.0 by default, automatically refreshes data from each cluster at regular intervals. And once this is done, perform a manual acquisition against The UM data source.&lt;/P&gt;&lt;P&gt;2. Or, manually delete the reservation entries of the newly created volumes or LUNs from the Reservations page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhruv&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 20:06:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Find-all-available-LUN-IDs-for-a-given-IGroup/m-p/58922#M12246</guid>
      <dc:creator>dhruvd</dc:creator>
      <dc:date>2014-03-18T20:06:57Z</dc:date>
    </item>
  </channel>
</rss>

