< Back

Set-iBMCSPRAIDSetting

Tue Jan 14, 2020 3:13 am

NAME Set-iBMCSPRAIDSetting



SYNOPSIS

Modify current RAID setting of the SP service.





SYNTAX

Set-iBMCSPRAIDSetting [-Session] <RedfishSession[]> -Location <String[]> -DeviceName <String[]> [-CardModel

{LSI3008}] -HotSpareDrives <Int32[][]> [<CommonParameters>]





DESCRIPTION

Modify current RAID setting of the SP service.

This cmdlet only supports manage server with single "LSI3008" RAID card.

Note: Only the V5 servers with the BIOS version later than 0.39 and the SP version 113 or later support this

function.





PARAMETERS

-Session <RedfishSession[]>

iBMC redfish session object which is created by Connect-iBMC cmdlet.

A session object identifies an iBMC server to which this cmdlet will be executed.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Location <String[]>

Indicates the location information of the RAID controller card. For example: mainboard.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-DeviceName <String[]>

Indicates the Silkscreen of the RAID controller card. For example: RAIDStorage0.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-CardModel

Indicates the RAID controller card model.

Currently, Only 'LSI3008' is support.



Required? false

Position? named

Default value @([RAIDCardModel]::LSI3008)

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-HotSpareDrives <Int32[][]>

Indicates the member disk list.

example: $HotSpareDrives = ,@(DriveID-1, DriveID-2, ..)



Notes:

- All the member disks must have the same type of interfaces and storage media.

- When adding a volume to an existing drive group, enter the ID of any drive of the drive group.

- The DriveID is represented by the Id properties of "Get-iBMCDrives" cmdlet's return value.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Null

Returns null if cmdlet executes successfully.

In case of an error or warning, exception will be returned.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$credential = Get-Credential



PS C:\\> $Session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> $HotSpareDrives = ,@(5, 6)

PS C:\\> Set-iBMCSPRAIDSetting $session -Location mainboard -DeviceName RAIDStorage1 `

-HotSpareDrives $HotSpareDrives

PS C:\\>

PS C:\\> Export-iBMCSPRAIDSetting -Session $Session

PS C:\\> Set-iBMCSPService -Session $Session -StartEnabled $true -SysRestartDelaySeconds 60

PS C:\\> Set-iBMCServerPower -Session $Session -ResetType ForceRestart



Host : 10.1.1.2

Id : mainboardRaidCard1

Name : SP RAID Current Configuration

CardModel : LSI3008

DeviceName : RAIDCard1

GlobalHotSpare : {5, 6}

Location : mainboard

DriveGroupList : {@{VolumeList=System.Object[]; VolumeRaidLevel=RAID1; Drives=System.Object[]}}



This example shows how to modify SP-RAID setting.

It contains several steps:

1. Modify SP-RAID setting

2. Export SP-RAID setting

3. Enable SP-Service

4. Restart Server (may take a long time, please be patience)



Step 1 will update SP-RAID setting, while step 2,3,4 will make it effect.











RELATED LINKS

https://github.com/Huawei/Huawei-iBMC-Cmdlets



Connect-iBMC

Disconnect-iBMC