- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Array Setup and Networking
- >
- Connecting a Nimble Volume via Powershell
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-29-2015 02:20 PM
12-29-2015 02:20 PM
I'm a bit of a newbie to both powershell and Nimble.
However.
I'm a DBA charged with getting backups, and we don't have room on the production SAN. We're completely virtualized.
We *are* replicating to a DR site where we have room.
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.
I'm relatively comfortable getting around in the Nimble GUI, and I've performed all of the above steps several times for quick restores. I can script out the dispart stuff.
I am using Justin Rich'sPowerShell Module , and I have the cloned volume showing up on the correct server but I can't figure out how to attach it. The iscsi targets all have such long complicated names, and don't look like they are consistent.
here's what I have now, and it gets it there but doesn't connect it:
Connect-NSArray -SystemName 10.20.30.40 -Password Beer
Get-NSSnapShot -volume 'serverdb' | select -First 1 | New-NSClone test
Add-NSInitiatorGroupToVolume -Volume test -InitiatorGroup 'DRServer'
Now I'm stuck. 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. Can anyone tell me what I'm missing?
Additionally, we're using commvault, so I'm wondering if there aren't Commvault commands which can interact directly with the snapshots? That seems way easier.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-06-2016 08:01 AM
01-06-2016 08:01 AM
SolutionHi Amanda,
Couple of pointers that might be helpful:
1. Nimble OS 2.3 and newer have a REST API that you can use in your powershell script. More details here: Nimble OS 2.3 – REST API
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)
curl -k -i -X 'GET' -H "X-Auth-Token: XXXXXXX" "https://ARRAY-IP:5392/v1/volumes/detail?name=test&fields=id,name,target_name"
{
"startRow":0,
"endRow":1,
"totalRows":1,
"data":[
{
"id":"060a2e58b7232ac03900000000000000000000001d",
"name":"test",
"target_name":"iqn.2007-11.com.nimblestorage:test-v0a2e58b7232ac039.0000001d.2904988e"
}
]
}
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.
2. Once you have the target name, you can look at the iSCSI powershell cmdlets to connect to the target: iSCSI Cmdlets in Windows PowerShell
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP