<?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 Connecting a Nimble Volume via Powershell in Array Setup and Networking</title>
    <link>https://community.hpe.com/t5/array-setup-and-networking/connecting-a-nimble-volume-via-powershell/m-p/6983761#M956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit of a newbie to both powershell and Nimble.&lt;/P&gt;&lt;P&gt;However.&lt;/P&gt;&lt;P&gt;I'm a DBA charged with getting backups, and we don't have room on the production SAN.&amp;nbsp; We're completely virtualized.&lt;/P&gt;&lt;P&gt;We *are* replicating to a DR site where we have room.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our working theory is that I will write a script to create a clone from the latest snap and present it to the DR SQL server where...and then I have any number of options because once I get the .ldf and .mdf files I'm confident I can do whatever I want.&lt;/P&gt;&lt;P&gt;I'm relatively comfortable getting around in the Nimble GUI, and I've performed all of the above steps several times for quick restores.&amp;nbsp; I can script out the dispart stuff.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Justin Rich's&lt;A href="https://community.hpe.com/message/1708"&gt;PowerShell Module&lt;/A&gt; , and I have the cloned volume showing up on the correct server but I can't figure out how to attach it.&amp;nbsp; The iscsi targets all have such long complicated names, and don't look like they are consistent.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hpe.com/u1/3109"&gt;Justin Rich&lt;/A&gt;&lt;/P&gt;&lt;P&gt;here's what I have now, and it gets it there but doesn't connect it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect-NSArray -SystemName 10.20.30.40 -Password Beer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-NSSnapShot -volume 'serverdb' | select -First 1 | New-NSClone test&lt;/P&gt;&lt;P&gt;Add-NSInitiatorGroupToVolume -Volume test -InitiatorGroup 'DRServer'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm stuck.&amp;nbsp; It shows up with an x in the Nimble GUI, and I don't want to crash the whole VM by using the wrong commands.&amp;nbsp; Can anyone tell me what I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, we're using commvault, so I'm wondering if there aren't Commvault commands which can interact directly with the snapshots?&amp;nbsp; That seems way easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2015 22:20:44 GMT</pubDate>
    <dc:creator>rottengeek35</dc:creator>
    <dc:date>2015-12-29T22:20:44Z</dc:date>
    <item>
      <title>Connecting a Nimble Volume via Powershell</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/connecting-a-nimble-volume-via-powershell/m-p/6983761#M956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit of a newbie to both powershell and Nimble.&lt;/P&gt;&lt;P&gt;However.&lt;/P&gt;&lt;P&gt;I'm a DBA charged with getting backups, and we don't have room on the production SAN.&amp;nbsp; We're completely virtualized.&lt;/P&gt;&lt;P&gt;We *are* replicating to a DR site where we have room.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our working theory is that I will write a script to create a clone from the latest snap and present it to the DR SQL server where...and then I have any number of options because once I get the .ldf and .mdf files I'm confident I can do whatever I want.&lt;/P&gt;&lt;P&gt;I'm relatively comfortable getting around in the Nimble GUI, and I've performed all of the above steps several times for quick restores.&amp;nbsp; I can script out the dispart stuff.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Justin Rich's&lt;A href="https://community.hpe.com/message/1708"&gt;PowerShell Module&lt;/A&gt; , and I have the cloned volume showing up on the correct server but I can't figure out how to attach it.&amp;nbsp; The iscsi targets all have such long complicated names, and don't look like they are consistent.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hpe.com/u1/3109"&gt;Justin Rich&lt;/A&gt;&lt;/P&gt;&lt;P&gt;here's what I have now, and it gets it there but doesn't connect it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect-NSArray -SystemName 10.20.30.40 -Password Beer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-NSSnapShot -volume 'serverdb' | select -First 1 | New-NSClone test&lt;/P&gt;&lt;P&gt;Add-NSInitiatorGroupToVolume -Volume test -InitiatorGroup 'DRServer'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm stuck.&amp;nbsp; It shows up with an x in the Nimble GUI, and I don't want to crash the whole VM by using the wrong commands.&amp;nbsp; Can anyone tell me what I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, we're using commvault, so I'm wondering if there aren't Commvault commands which can interact directly with the snapshots?&amp;nbsp; That seems way easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 22:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/connecting-a-nimble-volume-via-powershell/m-p/6983761#M956</guid>
      <dc:creator>rottengeek35</dc:creator>
      <dc:date>2015-12-29T22:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting a Nimble Volume via Powershell</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/connecting-a-nimble-volume-via-powershell/m-p/6983762#M957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amanda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Couple of pointers that might be helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Nimble OS 2.3 and newer have a REST API that you can use in your powershell script. More details here: &lt;A href="https://community.hpe.com/nimble-blogpost/1219"&gt;Nimble OS 2.3 – REST API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the following REST url, you can get the iscsi target name for the volume (I am using "test" as the name of the volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14520963396615888" jivemacro_uid="_14520963396615888" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;curl -k -i -X 'GET' -H "X-Auth-Token: XXXXXXX" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://ARRAY-IP:5392/v1/volumes/detail?name=test&amp;amp;fields=id,name,target_name" rel="nofollow" style="font-size: 10pt; line-height: 1.5em;"&gt;https://ARRAY-IP:5392/v1/volumes/detail?name=test&amp;amp;fields=id,name,target_name&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; "startRow":0,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; "endRow":1,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; "totalRows":1,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; "data":[&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id":"060a2e58b7232ac03900000000000000000000001d",&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name":"test",&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "target_name":"iqn.2007-11.com.nimblestorage:test-v0a2e58b7232ac039.0000001d.2904988e"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be available in Justin Rich's powershell module too, if you look at the result of Get-NsVolume there should be a targetName field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Once you have the target name, you can look at the iSCSI powershell cmdlets to connect to the target: &lt;A href="https://technet.microsoft.com/en-us/%5Clibrary/hh826099(v=wps.630).aspx" title="https://technet.microsoft.com/en-us/%5Clibrary/hh826099(v=wps.630).aspx"&gt;iSCSI Cmdlets in Windows PowerShell&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 16:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/connecting-a-nimble-volume-via-powershell/m-p/6983762#M957</guid>
      <dc:creator>rshekar42</dc:creator>
      <dc:date>2016-01-06T16:01:43Z</dc:date>
    </item>
  </channel>
</rss>

