<?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 Re: How to take Snapshot of a LUN through NetApp API's in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65548#M1102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It takes the snapshot of the entire volume but only the LUN is crash-consistent.&lt;/P&gt;&lt;P&gt;When you execute a snap create operation for a LUN using snapdrive, it freezes I/O on the specific LUN before taking the snapshot of the volume where the LUN resides.&lt;/P&gt;&lt;P&gt;Thus if there are other LUNs or files (which may be connected or mounted to different hosts) present in the same volume, I/O on these entities are not frozen during snapshot creation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 04:54:50 GMT</pubDate>
    <dc:creator>sens</dc:creator>
    <dc:date>2012-04-05T04:54:50Z</dc:date>
    <item>
      <title>How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65525#M1097</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem I am facing has been mentioned below:&lt;/P&gt;
&lt;P&gt;Problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using Snapdrive For Linux 4.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To create a snapshot of a lun I use the following command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;snapdrive snap create -lun &amp;lt;filer:lunname&amp;gt; -snapname &amp;lt;name of snapshot&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The above command successfull creates the &lt;STRONG&gt;snapshot of a lun.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to take a snapshot of a lun through the netapp API's but I am unable to find the API that produces the exact output as the snapdrive command mentioed above.&lt;/P&gt;
&lt;P&gt;The API 's i am currently using is Manage ONTAP SDK 3.0R for JAVA .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know can implement the above commant using an API ? If Yes Please tell the appropriate API that can be used ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried taking snapshot of a volume with the help of API's and it successfully created the snapshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:25:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65525#M1097</guid>
      <dc:creator>prateek_sin</dc:creator>
      <dc:date>2025-06-05T07:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65530#M1098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no such thing as "snapshot of LUN" - you always take snapshot of a &lt;STRONG&gt;volume&lt;/STRONG&gt;. Snapdrive just resolves volume name from LUN name and hides from you gory details. Additionally on Windows it makes filesystem sync; I am not sure whether it does it on Linux; AFAIK not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to create crash-consistent snapshot of a LUN just create snapshot of a volume containing this LUN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2009 18:32:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65530#M1098</guid>
      <dc:creator>aborzenkov</dc:creator>
      <dc:date>2009-07-25T18:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65534#M1099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now I have taken the snapshot of the whole volume with the help of Manage ONTAP API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how can I create a LUN from this snapshot copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an API called&amp;nbsp; lun-create-from-snapshot which takes the following inputs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. path&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the path of the LUN&amp;nbsp; (this is the path of the new lun that will be created after restore . Correct me if i am wrong)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2. snapshot-lun-path&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;LUN path in the snapshot to be created from&lt;/STRONG&gt;. (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the other 2 are optional inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement ie marked in bold is not clear to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following details might be useful &lt;/P&gt;&lt;P&gt;Filer name : Tolkien&lt;/P&gt;&lt;P&gt;volume name: /vol/test_zimbra&lt;/P&gt;&lt;P&gt;LUN name&amp;nbsp;&amp;nbsp; : zimserver&lt;/P&gt;&lt;P&gt;name of the snapshot&amp;nbsp; : snap_from_api ( this is a snapshot of a volume).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 11:56:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65534#M1099</guid>
      <dc:creator>prateek_sin</dc:creator>
      <dc:date>2009-07-27T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65539#M1100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;snapshot-lun-path is as shown in this example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\manage-ontap-sdk-3.5P1\bin\nt&amp;gt;apitest.exe &amp;lt;IP address&amp;gt;&amp;nbsp; &amp;lt;user&amp;gt;&amp;nbsp; &amp;lt;pwd&amp;gt;&amp;nbsp; lun-create-from-snapshot path /vol/voltest/lun3_from_lun2 &lt;STRONG&gt;snapshot-lun-path&lt;/STRONG&gt; &lt;STRONG&gt;/vol/voltest/.snapshot/snap_for_lun_connect/lun2 &lt;/STRONG&gt;space-reservation-enabled false&lt;BR /&gt;&amp;lt;results status="passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actual-size&amp;gt;74027520&amp;lt;/actual-size&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case it would be: /vol/test_zimbra/.snapshot/snap_from_api/zimserver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 03:58:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65539#M1100</guid>
      <dc:creator>nagendrk</dc:creator>
      <dc:date>2009-07-30T03:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65544#M1101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If the volume contains n no.of .LUN's while taking a LUN snapshot with the help of snap drive does it take for entire volume or a specific LUN ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;P&gt;Saran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 04:37:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65544#M1101</guid>
      <dc:creator>saranraj456</dc:creator>
      <dc:date>2012-04-05T04:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65548#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It takes the snapshot of the entire volume but only the LUN is crash-consistent.&lt;/P&gt;&lt;P&gt;When you execute a snap create operation for a LUN using snapdrive, it freezes I/O on the specific LUN before taking the snapshot of the volume where the LUN resides.&lt;/P&gt;&lt;P&gt;Thus if there are other LUNs or files (which may be connected or mounted to different hosts) present in the same volume, I/O on these entities are not frozen during snapshot creation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 04:54:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65548#M1102</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2012-04-05T04:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to take Snapshot of a LUN through NetApp API's</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65553#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;snapshot is always volume based and includes everything on this volume.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 05:29:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-take-Snapshot-of-a-LUN-through-NetApp-API-s/m-p/65553#M1103</guid>
      <dc:creator>aborzenkov</dc:creator>
      <dc:date>2012-04-05T05:29:52Z</dc:date>
    </item>
  </channel>
</rss>

