ProLiant Servers (ML,DL,SL)
1832592 Members
3101 Online
110043 Solutions
New Discussion

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

 
modestaso
Established Member

Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

Hello,

Simple scenario: server with Total Drives 6 and raid 6 is needed.  Do we have free simple way to configure RAID without clicking all the buttons throught bios ?

Dell have simple solution, you can upload raid config file via idrac. How about HPE?

Regards,

7 REPLIES 7
TVVJ
HPE Pro

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

Hello,

You may create an array either using the options in the server's BIOS or by using the HPE Smart Storage Administrator in the Boot menu (pressing key F10 during POST). It cannot be confiigured directly from the iLO or by uploading a config at iLO.

Regards,



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[All opinions expressed here are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
modestaso
Established Member

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

Sharing bash script. Seems with ilorest is posible to change some bios settings like workloadprofile and set desired ilo usrname and pass. It reads credentials file iloipaddress,iloadministratorpassword from file. Can be usefult preparing large batch of servers.

Sad that not possbile to export storage configuration ilorest serverclone save --auto -f HPEconfig.json

#!/bin/bash

input_file='HPEcredentials.csv'

# Check if the input file exists
if [ ! -f "$input_file" ]; then
    echo "Error: Input file '$input_file' not found."
    exit 1
fi

# Read IP addresses and passwords from the CSV file
while IFS=, read -r ip_address password; do
    # Print IP address
    echo "Processing server: $ip_address"

    # Execute ilorest login command
    /Applications/ilorest login "$ip_address" -u USERNAME -p "$password"

    # Execute ilorest serverclone command
    /Applications/ilorest serverclone load --auto  -f "HPEconfig.json"

done < "$input_file"

 

thutchings
HPE Pro

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

Hello,

 

The ilorest tool "serverclone" option is only designed to capture BIOS and iLO configuration information. The array can be configured using redfish as well, then pushed out to multiple servers. Please see the user guide with more information regarding this:

 

https://servermanagementportal.ext.hpe.com/docs/redfishclients/ilorest-userguide/smartarraycommands/#description-2

 

This can also be done via RAW redfish commands, but this would likely vary somewhat depending on what controller is in use in the servers.  Gen11 servers have stricter adherence to the redfish specification, so the commands on the newer servers should be consistent across all of the controllers.

 

Regards



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
modestaso
Established Member

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

Any ideas what i missed ?

 

iLOrest > createvolume quickdrive RAID6 6 SSD NVMe --locationtype=Internal --minimumsize=-1 --controller="Slot 12"
ERROR   :

 

 

Our servers specs:

 

ProLiant DL325 Gen10 Plus v2
ilo5
Slot=12	 Enabled	HPE MR416i-a Gen10+	0	Drives 6
Media type NVMe SSD

 

 

 

Create a volume with a minimal number of arguments (utilizes default values on the controller). This option is only for iLO5 or Gen10
        example: createvolume quickdrive <raid-level> <num-drives> <media-type> <interface-type> --locationtype=Internal  --minimumsize=0 --controller=1

positional arguments:
  Raid_Level            Specify the RAID level for the volume to be created.
  Drives                For quick drive creation, specify number of disks.
  Drive_Media_Type      Specify the drive media type of the physical disk(s) (i.e. HDD or SSD)
  Drive_Interface_Type  Specify the interface type of the physical disk(s) (i.e. SATA or SAS or NVMe)

--controller CONTROLLER
                        Use this flag to select the corresponding controller using either the slot number or index.
                        example: --controller=Slot 0 OR --controller=1

options:
  --locationtype LOCATIONTYPE
                        Optionally specify the location of the physical disks(s) (i.e. Internal or External)
  --minimumsize MINIMUMSIZE
                        Optionally include to set the minimum size of the drive in GiB. (usable in quick creation only,
                        use -1 for max size)

 

 

 

 

modestaso
Established Member

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

I would like to create logical drive with RAID6, is it possible to do with ilorest createvolume ?

Sebasbin
HPE Pro

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli


Hi,

 

Refer the document below to create the logical drive with ilo rest. Make sure to update the smart array controller firmware and use the latest version of ilorest tool

 

https://hewlettpackard.github.io/python-redfish-utility/#createvolume-command-previously-createlogicaldrive-command


RESTful Interface Tool
https://support.hpe.com/hpesc/public/km/product/1008862654/Product?sp4ts.oid=1008862654#t=DriversandSoftware



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Sunitha_Mod
Honored Contributor

Re: Automation tool to Configure RAID on an HPE ProLiant G10 ? iLO/cli

Hello @modestaso,

Let us know if you were able to resolve the issue.

If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.