Skip to content

Remove-OVLogicalJBOD

Syntax

Remove-OVLogicalJBOD
    [-InputObject] <HPEOneView.Storage.LogicalJBOD[]>
    [-Force]
    [-Async]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]

Description

A logical JBOD is a group of physical drives that are dynamically defined as virtual drives. Logical JBOD uses the drives from the drive enclosures that are installed in the device bays of the enclosure and are associated with a SAS logical interconnect. You can assign or unassign a logical JBOD to a server hardware through the server profile.

If the logical drive settings in the server profile indicate that the data in the logical JBOD is to be retained when you delete the server profile, then the data is retained and you can assign this logical JBOD to a different server profile.

Using this Cmdlet will remove an existing logical JBOD on the connected appliance. You can delete a logical JBOD only after you unassign it from the server profile. If you have chosen to erase the drive data when you delete a logical JBOD, all the drive data will be erased.

Info

Minimum required privileges: Infrastructure administrator, server administrator, server profile architect, server profile administrator

Examples

Example 1

$LogicalJBOD = Get-OVLogicalJBOD -Name MyLJbod1
Remove-OVLogicalJBOD -InputObject $LogicalJBOD

Remove the specified logical JBOD.

Example 2

# Get the logical JBOD we intend to remove
$LogicalJBOD = Get-OVLogicalJBOD -Name MyLJbod1

# Get the associated server profile associated with the logical JBOD
$ServerProfile = Get-OVServerProfile -Name $LogicalJBOD.UsedBy

# Remove the logical JBOD from the profile
$ServerProfile.localStorage.sasLogicalJBODs = $ServerProfile.localStorage.sasLogicalJBODs | ? sasLogicalJBODUri -ne $ljbods[0].uri

# Save the server profile
Save-OVServerProfile -InputObject $ServerProfile

# Remove the logical JBOD resource
Remove-OVLogicalJBOD -InputObject $LogicalJBOD

Remove the specified logical JBOD when it is associated with a server profile resource.

Parameters

-ApplianceConnection <Object>

Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

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

-Confirm <SwitchParameter>

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

-Force <SwitchParameter>

Force delete the resource.

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

-InputObject <HPEOneView.Storage.LogicalJBOD[]>

The logical JBOD resource from Get-OVLogialJBOD Cmdlet. If the logical JBOD is associated with a server profile, it must first be unassociated from the server profile, then you can remove it. If the erase on delete option is enabled (or set to true), then data will be deleted from the drive.

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

-WhatIf <SwitchParameter>

Aliases wi
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

One or more logical JBOD resources from Get-OVLogicalJBOD.

Return Values

Asynchronous task resource to monitor.