PowerShell: How to Create Logical Drive on HPE G10

I have published some posts about HPE Scripting Tools for PowerShell to automating physical server preparation and deployment services. The tools helping administrators to deploying services on HPE servers faster than normal ways, also there is no additional costs, just buy a PowerShell book!

The scripting tools provides PowerShell cmdlets for configuring BIOS, iLO, OA and Smart Array. The tools are available for download as free tools on HPE website.

Scripting Tools for Windows

The smart array cmdlets are compatible with HPE Generation 10 and not all smart array adapters. Read the user guide document to find list of compatible smart array adapters.

The tools will help to configure smart array adapters on multiple servers very faster than normal ways or other automation tools. Of course, the tools is not comparable with HPE OneView.

Sample PowerShell Script to Create Logical Drive with 2 Drive

The below sample will create two logical drives from 4 drives on multiple servers:

Same administrator account will be required on the servers and you can change “iLO IP” with your iLO IP addresses. Logical drives will be made as RAID 1. The script has been tested on HPE DL580 G10.

You need to install HPE iLO and HPE Smart Array cmdlets in order to run the above script.

For find more samples, you can check the below links:

GitHub HPE Servers PowerShell Samples

PowerShell Gallery

Further Reading

Configure NTP on iLO via HPE Scripting Tools

HP Scripting Tools for Windows

Davoud Teimouri

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023, vExpert NSX, vExpert PRO, vExpert Security, vExpert EUC, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

Your email address will not be published. Required fields are marked *