Skip to content

New-OVServerProfileLogicalDiskController

Syntax

New-OVServerProfileLogicalDiskController
    [-ControllerID <Object>]
    [-Mode <String>]
    [-Initialize]
    [-WriteCache <String>]
    [-PredictiveSpareActivation <String>]
    [-LogicalDisk <Object>]
    [<CommonParameters>]
New-OVServerProfileLogicalDiskController
    [-InputObject] <HPEOneView.Servers.StorageController>
    [-Mode <String>]
    [-Initialize]
    [-WriteCache <String>]
    [-PredictiveSpareActivation <String>]
    [-ImportExistingConfiguration]
    [-LogicalDisk <Object>]
    [<CommonParameters>]
New-OVServerProfileLogicalDiskController
    [-MegaRAIDController]
    [-ControllerID <Object>]
    [-Mode <String>]
    [-Initialize]
    [-WriteCache <String>]
    [-ImportExistingConfiguration]
    [-LogicalDisk <Object>]
    [<CommonParameters>]
New-OVServerProfileLogicalDiskController
    [-ControllerID <Object>]
    [-Mode <String>]
    [-WriteCache <String>]
    [-PredictiveSpareActivation <String>]
    [-ImportExistingConfiguration]
    [<CommonParameters>]

Description

This helper Cmdlet will create a Logical Disk controller object to then be assigned to a Server Profile Template or Server Profile using the -LogicalDisk parameter.

Examples

Example 1

$LogicalDisk = New-OVServerProfileLogicalDisk -Name "MyDisk" | New-OVServerProfileLogicalDiskController -Initialize

Create a default Logical Disk and Controller configuration object policy.

Example 2

New-OVServerProfileLogicalDiskController -Mode HBA

Create an HBA controller policy, which will then set the controller to JBOD mode.

Example 3

$LogicalDisk1 = New-OVServerProfileLogicalDisk -Name "MyDisk"
$LogicalDisk2 = New-OVServerProfileLogicalDisk -Name "MyDisk2"
$Controller = New-OVServerProfileLogicalDiskController -Initialize -LogicalDisk $LogicalDisk1,$LogicalDisk2

Create a default Logical Disk and Controller configuration object policy.

Example 4

$LogicalDisk1 = New-OVServerProfileLogicalDisk -Name Boot -RAID RAID1 -MinDriveSize 300 -MaxDriveSize 300 -DriveType SAS -Bootable $True
$LogicalDisk2 = New-OVServerProfileLogicalDisk -Name Data -RAID RAID5 -NumberofDrives 5 -MinDriveSize 300 -MaxDriveSize 300 -DriveType SAS
$Controller = New-OVServerProfileLogicalDiskController -ControllerID "Mezz 1" -Mode RAID -LogicalDisk $LogicalDisk1,$LogicalDisk2

Create a HPE Synergy D3940 RAID disk policy, with a bootable volume.

Example 5

$AvailableDriveType = Get-OVSasLogicalInterconnect -Name "LE1-Default SAS Synergy LIG-3" -ErrorAction Stop | Get-OVAvailableDriveType  | ? { $_.Type -eq "SASHDD" -and $_.capacity -eq 900 }
$NewLogicalDisk = New-OVServerProfileLogicalDisk -Name "LD1_RAID5_900GB_SASHDD" -DriveSelectionBy DriveType -NumberofDrives 6 -RAID RAID5 -AvailableDriveType $AvailableDriveType
C:\> $Controller = New-OVServerProfileLogicalDiskController -ControllerID "Mezz 1" -Mode RAID -LogicalDisk $NewLogicalDisk

Create a RAID5 Logical Disk for a Server Profile using D3940 storage, and a specific available drive type, 900GB capacity and SASHDD type, and assign it to a new Controller.

Example 6

# Get the specific server.  Server must have been powered on at least 1 time to complete POST in order for server inventory to be updated
$Server = Get-OVServer -Name MyGen11Server

# Get the available controllers and drives from the specific server
$AvailableControllers = Get-OVServerHardwareAvailableController -InputObject $Server

# Review installed controllers
$AvailableControllers | ? { -not [String]::IsNullOrEmpty($_.DeviceSlot) }

DeviceSlot           : Slot 1
Family               : SmartRAID
Type                 : Standup
Model                : HPE SR308i-p Gen11
Firmware             : 5.29-256
ControllerMode       : HPEOneView.Servers.ControllerModes
RaidModes            : HPEOneView.Servers.RaidModes
DriveTechnologies    : HPEOneView.Servers.DriveTechnologies
ReadCachePolicy      : HPEOneView.Servers.ReadCachePolicy
WriteCachePolicy     : HPEOneView.Servers.WriteCachePolicy
Capabilities         : {RedfishConfig, RedfishDedicatedSpare}
Drives               : {1I:1:41 147 GB (NvmeSsd), 1I:1:42 147 GB (NvmeSsd), 1I:1:43 147 GB (NvmeSsd), 1I:1:44 147 GB (NvmeSsd)…}
MaximumLogicalDrives : 256
MaximumDrives        : 256
ApplianceConnection  : MyAppliance

# Review available drives attached to controller in "Slot 1"
($AvailableControllers | ? DeviceSlot -eq "Slot 1").Drives

Location Model       Capacity DriveTechnology IsAllocated FailurePredicted LifeRemaining
-------- -----       -------- --------------- ----------- ---------------- -------------
1I:1:41  EH0146FCBVB 147 GB   NvmeSsd         True        False            100%
1I:1:42  EH0146FCBVB 147 GB   NvmeSsd         True        False            100%
1I:1:43  EH0146FCBVB 147 GB   NvmeSsd         True        False            100%
1I:1:44  EH0146FCBVB 147 GB   NvmeSsd         False       False            100%
1I:1:45  EH0146FCBVB 147 GB   SataHdd         False       False            0%
1I:1:46  EH0146FCBVB 147 GB   SataHdd         False       False            0%
1I:1:47  EH0146FCBVB 147 GB   SataHdd         False       False            0%
1I:1:48  EH0146FCBVB 147 GB   SataHdd         False       False            0%
1I:1:49  EH0146FCBVB 147 GB   SataHdd         False       False            0%
1I:1:50  EH0146FCBVB 147 GB   SataSsd         True        False            100%
1I:1:51  EH0146FCBVB 147 GB   SataSsd         True        False            100%
1I:1:52  EH0146FCBVB 147 GB   SataSsd         False       False            100%

# Filter out available SataHdd for a 3+1 and spare drive configuration
$DrivesToAssign = ($AvailableControllers | ? DeviceSlot -eq "Slot 1").Drives | ? { $_.DriveTechnology -eq "SataHdd" -and -not $_.IsAllocated } | Select -First 5

# Create the logical drive, specifying drives and the spare drive to use (which is the last drive in the collection)
$LogicalDrive = New-OVServerProfileLogicalDisk -Name RAID5+Spare-DATA -Drives $DrivesToAssign -RAID Raid5 -AddSpareDrive -SpareDrives $DrivesToAssign[-1]

Identify available storage controllers and drives, and create a logical disk with specific drives from inventory including spare drive.

Parameters

-ControllerID <Object>

Specify the Controller ID location. Supported options for this parameter are * Embedded * Mezz1 * Mezz2 * Mezz3 * Slot1 * Slot10 * Slot11 * Slot12 * Slot13 * Slot14 * Slot15 * Slot16 * Slot2 * Slot3 * Slot4 * Slot5 * Slot6 * Slot7 * Slot8 * Slot9 Please note that Mezz1, Mezz2 and Mezz3 are only supported with HPE Synergy Compute nodes connected to the HPE Synergy D3940 disk shelf.

Aliases None
Required? True
Position? Named
Default value Embedded
Accept pipeline input? false
Accept wildcard characters? False

-Mode <String>

The mode to configure the Smart Array Controller as. Accepted values are:

  • HBA
  • RAID

When specifying HBA, you cannot attach a RAID Logical Disk to this policy.

Aliases None
Required? True
Position? Named
Default value RAID
Accept pipeline input? false
Accept wildcard characters? False

-Initialize <SwitchParameter>

Use this parameter to re-initialize the controller. This will wipe any existing logical disk configured for the controller and deploy the new policy defined. Not supported when ControllerID is "Mezz 1", "Mezz 2", or "Mezz 3".

Aliases None
Required? False
Position? Named
Default value False
Accept pipeline input? false
Accept wildcard characters? False

-ImportExistingConfiguration <SwitchParameter>

Specify to import any found Logical Disk configuration and add to the Server Profile as the Logical Disk policy. This option is not available for Server Profile Templates. Not supported when ControllerID is "Mezz 1", "Mezz 2", or "Mezz 3".

Aliases None
Required? False
Position? Named
Default value False
Accept pipeline input? false
Accept wildcard characters? False

-LogicalDisk <Object>

A collection of Logical Disk objects from the New-OVServerProfileLogicalDisk Cmdlet.

Aliases None
Required? True
Position? Named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-WriteCache <String>

For Gen10 controllers, to enable, disable or unmanage controller write cache policy. Allowed values:

  • Enabled
  • Disabled
  • Unmanaged

Default value: Unmanaged

Aliases None
Required? False
Position? Named
Default value Unmanaged
Accept pipeline input? false
Accept wildcard characters? False

-PredictiveSpareActivation <String>

For Gen10 and newer HPE Synergy controllers, to enable, disable or unmanage controller spare drive policy. Allowed values:

  • Enabled
  • Disabled
  • Unmanaged

Default value: Unmanaged

Aliases None
Required? False
Position? Named
Default value Unmanaged
Accept pipeline input? false
Accept wildcard characters? False

-InputObject <HPEOneView.Servers.StorageController>

A storage controller object from Get-OVServerHardwareAvailableController. Use to specify the exact storage controller to configure.

Aliases None
Required? True
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-MegaRAIDController <SwitchParameter>

By default, SmartRAID (SR) controller objects are created. Use this parameter to set the controller family to MegaRAID (MR) controller types for when the storage controller object will be attached to a server profile template and you are not using the -InputObject parameter to provide a storage controller.

Aliases None
Required? True
Position? Named
Default value
Accept pipeline input? false
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

Logical Disk configuration policy from New-OVServerProfileLogicalDisk

Collection of Logical Disk configuration policy from New-OVServerProfileLogicalDisk

Return Values

Server Profile Controller configuration object

Collection of Server Profile Controller configuration objects