- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- Server Management - Remote Server Management
- >
- New-HPESALogicalDrive - DataDrive attribute does n...
-
-
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
04-27-2020 10:53 AM
04-27-2020 10:53 AM
New-HPESALogicalDrive - DataDrive attribute does not processes the variable value
I am using the New-HPESALogicalDrive to create the Logical Drive in DL360. As per the syntax for -DataDrive, I am using double dimension array for it. But it is not able to create the logical drive. Below is my code snippet.
$SA_PhysicalDrives = (Get-HPESAPhysicalDrive -Connection $Connect_SA -ControllerLocation $SA_ControllerLocation).PhysicalDrive.Location $DrivesToBeAttached = @($SA_PhysicalDrives[0..($NoOfPhysicalDrives-1)]) # I am doing this, since $NoOfPhysicalDrives is a user input. New-HPESALogicalDrive -Connection $Connect_SA -LogicalDriveName $LogicalDriveName -ControllerLocation $SA_ControllerLocation -Raid $RAID -DataDrive @(,$DrivesToBeAttached)
ControllerLocation : Slot 0 ControllerModel : HPE Smart Array P408i-a SR Gen10 LogicalDriveName : VMware Boot Volume Raid : Raid1 DataDrive : {<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"> <S>1I:1:1</S> </Objs>, <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"> <S>1I:1:2</S> </Objs>} SpareDrive : {}
But, when I run it without having a variable, it gives a proper output.
New-HPESALogicalDrive -Connection $Connect_SA -LogicalDriveName $LogicalDriveName -ControllerLocation $SA_ControllerLocation -Raid $RAID -DataDrive @(,@("1I:1:1","1I:1:2"))
Output:
ControllerLocation : Slot 0 ControllerModel : HPE Smart Array P408i-a SR Gen10 LogicalDriveName : VMware Boot Volume Raid : Raid1 DataDrive : {1I:1:1, 1I:1:2} SpareDrive : {}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-30-2020 04:15 PM
04-30-2020 04:15 PM
Re: New-HPESALogicalDrive - DataDrive attribute does not processes the variable value
Try creating array and logical drive from the SSA GUI(You can try online or offline method) and check if the array dissapears after a reboot or not. This will help isolate the issue.
Make suure that the firmware and driver of the controller are updated to the latest
I am an HPE employee

Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP