- Community Home
- >
- Software
- >
- HPE OneView
- >
- Attach Volumes to serverProfile using POSH 1.2 lib...
-
- Forums
-
- 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, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
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
-
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
03-10-2016 12:09 AM
03-10-2016 12:09 AM
Attach Volumes to serverProfile using POSH 1.2 library
Hi,
Oneiew version - 1.2
Powershell library version - 1.2
I am trying to attach existing volumes to existing server-profiles.
I have used the below commands in order till now:
$a = send-hpovrequest "/rest/server-profiles/csdsd-0000-XXXX-XXXX-XXXXXXX" $volume1 = Get-HPOVStorageVolume XXX_XXX_SAN_012_XX | New-HPOVProfileAttachVolume -VolumeID 12 $a.sanStorage.volumeAttachments = $a.sanStorage.volumeAttachments + $volume1
The output of $a.sanStorage.volumeAttachments is as below. Volume 12 is in the powershell object array. But I am not sure how to set the volume to the profile so it's status is attached like volume 11 in the snippet below:
storagePaths : {@{storageTargetType=Auto; storageTargets=System.Object[]; connectionId=2; isEnabled=True; status=OK}, @{storageTargetType=Auto; storageTargets=System.Object[]; connectionId=1; isEnabled=True; status=OK}} state : Attached volumeUri : /rest/storage-volumes/XXX-XXXX-XXXX-XXXXX volumeStoragePoolUri : /rest/storage-pools/XXXX-XXX-XXX-8B83-XXXXX volumeStorageSystemUri : /rest/storage-systems/XXXXX lun : 11 lunType : Manual status : OK id : 11 id : 12 volumeUri : /rest/storage-volumes/XXX-XXX-XXXX-XXX volumeStoragePoolUri : /rest/storage-pools/XXX-XXX-XXX-XXXX volumeStorageSystemUri : /rest/storage-systems/XXXX lunType : Auto storagePaths : {}
I used :
Set-HPOVResource $a
But that did not attach volume12 to the profile. As can be seen in volume 11, storage path and state is not set for volume12.
Any help appreciated. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-14-2016 12:49 PM
03-14-2016 12:49 PM
Re: Attach Volumes to serverProfile using POSH 1.2 library
Can you please submit an issue over at the HPE OneView PowerShell LIbrary GitHub repo? That way, I can track the request? I'm in the process of updating New-HPOVServerProfileVolumeAttach to support a Server Profile object, and will attach volume(s) to it, instead of just being a helper Cmdlet it is today.
I am an HPE employee
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP