<?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 Need help to create WFA to clone a LUN from snapshot in General Discussion</title>
    <link>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155733#M813</link>
    <description>&lt;P&gt;Hi , i am new to WFA and i need to create a work flow which can clone a LUN using a snapshot of parent volume and export it to a host. Until now i have created work flow with below steps and currently i am stuck on step 4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step 1 : - Cluster name --should be populated using mysql query&amp;nbsp; -- &lt;STRONG&gt;this is already done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;step 2 : - vserver name -&amp;nbsp;- should be populated using mysql query&amp;nbsp; -- &lt;STRONG&gt;this is already done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;step 3 : - volume name --&amp;nbsp;- should be populated using mysql query&amp;nbsp; -- &lt;STRONG&gt;this is already done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;step 4 : - snapshot list -- It should populate the list of snapshots for volume selected in step 3.&amp;nbsp; --&lt;STRONG&gt; I am stuck here&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my OCUM version is 7.2 and WFA version is 5.0 . While searching on google i found seems it is problem with schema cm_storage as there is no data for snapshot in it. But how i can fix it. I am sorry i am new to WFA so please excuse for basic questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:12:03 GMT</pubDate>
    <dc:creator>Hitesh123</dc:creator>
    <dc:date>2025-06-04T11:12:03Z</dc:date>
    <item>
      <title>Need help to create WFA to clone a LUN from snapshot</title>
      <link>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155733#M813</link>
      <description>&lt;P&gt;Hi , i am new to WFA and i need to create a work flow which can clone a LUN using a snapshot of parent volume and export it to a host. Until now i have created work flow with below steps and currently i am stuck on step 4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step 1 : - Cluster name --should be populated using mysql query&amp;nbsp; -- &lt;STRONG&gt;this is already done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;step 2 : - vserver name -&amp;nbsp;- should be populated using mysql query&amp;nbsp; -- &lt;STRONG&gt;this is already done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;step 3 : - volume name --&amp;nbsp;- should be populated using mysql query&amp;nbsp; -- &lt;STRONG&gt;this is already done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;step 4 : - snapshot list -- It should populate the list of snapshots for volume selected in step 3.&amp;nbsp; --&lt;STRONG&gt; I am stuck here&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my OCUM version is 7.2 and WFA version is 5.0 . While searching on google i found seems it is problem with schema cm_storage as there is no data for snapshot in it. But how i can fix it. I am sorry i am new to WFA so please excuse for basic questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:12:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155733#M813</guid>
      <dc:creator>Hitesh123</dc:creator>
      <dc:date>2025-06-04T11:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create WFA to clone a LUN from snapshot</title>
      <link>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155755#M814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cm_storage database does not contain snapshots. You need to configure a Data source for it (Scheme, Dictionary and Data Source Types).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a scheme called 'cm_snapshots'&lt;/LI&gt;
&lt;LI&gt;Create a Dictionary in the cm_snapshot' scheme called 'snapshot'&lt;/LI&gt;
&lt;LI&gt;Create a Data Source Type in the 'cm_snapshots' scheme&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here is an example of the dictionary:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snapshots.png" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9677i7F9D203446BA20C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="snapshots.png" alt="snapshots.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the data source type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;#'------------------------------------------------------------------------------
#'Ensure that dates are always returned in English
#'------------------------------------------------------------------------------
[System.Threading.Thread]::CurrentThread.CurrentCulture="en-US"
#'------------------------------------------------------------------------------
#'Create the output file
#'------------------------------------------------------------------------------
$snapshotCsv = "./snapshot.csv"
New-Item -Path $snapshotCsv -type file -force
$clusterAddress = Get-WfaRestParameter "host"
Get-WFALogger -Info -Message "Enumerating Snapshots on Cluster ""$clusterAddress"""
#'------------------------------------------------------------------------------
#'Connect to the cluster
#'------------------------------------------------------------------------------
Try{
   Connect-WfaCluster $clusterAddress -Timeout 300000
   $c = Get-NcCluster -ErrorAction Stop
}Catch{
   Get-WFALogger -Error -Message $("Failed connecting to cluster ""$clusterAddress"". Error " + $_.Exception.Message)
   Throw "Failed connecting to cluster ""$clusterAddress"""
}
#'------------------------------------------------------------------------------
#'Create a query to filter snapshots
#'------------------------------------------------------------------------------
$query = @{
   Vserver = 'vs*';
   Name    = '!*snapmirror*';
}
#'------------------------------------------------------------------------------
#'Set the snapshot attributes to query.
#'------------------------------------------------------------------------------
$attributes =  @{
   AccessTime = "";
   Dependency = "";
   SnapshotInstanceUuid = "";
}
#'------------------------------------------------------------------------------
#'Enumerate the snapshots.
#'------------------------------------------------------------------------------
Try{
   $snapshots = Get-NcSnapshot -Query $query -Attributes $attributes -ErrorAction Stop
   Get-WFALogger -Info -Message "Enumerated snapshots on cluster ""$clusterAddress"""
}Catch{
   Get-WFALogger -Error -Message $("Failed connecting to cluster ""$clusterAddress"". Error " + $_.Exception.Message)
   Throw "Failed connecting to cluster ""$clusterAddress"""
}
#'------------------------------------------------------------------------------
#'Add each snapshot to the CSV file for importing.
#'------------------------------------------------------------------------------
ForEach($snapshot in $snapshots){
   $vserver      = $snapshot.Vserver
   $cluster      = $c.ClusterName
   $volume       = $snapshot.Volume
   $snapshotName = $snapshot.Name
   $dependency   = $snapshot.Dependency
   $snapshotID   = $snapshot.SnapshotInstanceUuid
   $timestamp    = ($snapshot.AccessTimeDT).ToString("yyyy-MM-dd HH:mm:ss")
   Add-Content $snapshotCsv ([byte[]][char[]] "\N`t$cluster`t$snapshotName`t$timestamp`t$volume`t$vserver`t$dependency`t$snapshotID`n") -Encoding Byte
}
#'------------------------------------------------------------------------------&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 05:19:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155755#M814</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-04-28T05:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create WFA to clone a LUN from snapshot</title>
      <link>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155756#M815</link>
      <description>&lt;P&gt;Also note that you can filter the query to meeting your requirements. In this example i've excluded snapmirror snapshots and filtered snapshots for volumes on vservers matching 'vs*' (EG vserver1, vserver2, vserver3 etc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$query = @{
   Vserver = 'vs*';
   Name    = '!*snapmirror*';
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update to meet your requirements&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 05:28:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155756#M815</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2020-04-28T05:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create WFA to clone a LUN from snapshot</title>
      <link>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155817#M817</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for your help. Let me try this. I will get back to you with results soon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Hitesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 21:24:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Need-help-to-create-WFA-to-clone-a-LUN-from-snapshot/m-p/155817#M817</guid>
      <dc:creator>Hitesh123</dc:creator>
      <dc:date>2020-04-29T21:24:03Z</dc:date>
    </item>
  </channel>
</rss>

