< Back
Get-iBMCVolume
Post
NAME Get-iBMCVolume
SYNOPSIS
Query information about the volume resource collection of a server.
SYNTAX
Get-iBMCVolume [-Session] <RedfishSession[]> [-StorageId] <String[]> [<CommonParameters>]
DESCRIPTION
Query information about the volume resource collection of a server.
This cmdlet works only after BIOS boot is complete when the RAID controller card supports out-of-band management
or after iBMA 2.0 has been installed and started.
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
-StorageId <String[]>
Indicates the identifier of the storage which the volume belongs to.
The Id properties of "Get-iBMCRAIDControllers" cmdlet's return value represents Storage ID.
Required? true
Position? 2
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
PSObject[][]
Returns an array of PSObject indicates all volume resources 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:\\> $Volumes = Get-iBMCVolume -Session $Session -StorageId RAIDStorage0
PS C:\\> $Volumes
Host : 10.1.1.2
Id : LogicalDrive0
Name : LogicalDrive0
CapacityBytes : 1099511627776
VolumeType : Mirrored
OptimumIOSizeBytes : 1048576
Status : @{State=Enabled; Health=OK}
VolumeName : Volume-ps
RaidControllerID : 0
VolumeRaidLevel : RAID1
DefaultReadPolicy : NoReadAhead
DefaultWritePolicy : WriteBackWithBBU
DefaultCachePolicy : DirectIO
ConsistencyCheck : False
SpanNumber : 1
NumDrivePerSpan : 2
Spans : {@{SpanName=Span0; Drives=System.Object[]}}
CurrentReadPolicy : NoReadAhead
CurrentWritePolicy : WriteBackWithBBU
CurrentCachePolicy : DirectIO
AccessPolicy : ReadWrite
BootEnable : True
BGIEnable : True
SSDCachecadeVolume : False
SSDCachingEnable : False
AssociatedCacheCadeVolume : {}
DriveCachePolicy : Unchanged
OSDriveName :
InitializationMode : UnInit
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Set-iBMCVolume
Connect-iBMC
Disconnect-iBMC
SYNOPSIS
Query information about the volume resource collection of a server.
SYNTAX
Get-iBMCVolume [-Session] <RedfishSession[]> [-StorageId] <String[]> [<CommonParameters>]
DESCRIPTION
Query information about the volume resource collection of a server.
This cmdlet works only after BIOS boot is complete when the RAID controller card supports out-of-band management
or after iBMA 2.0 has been installed and started.
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
-StorageId <String[]>
Indicates the identifier of the storage which the volume belongs to.
The Id properties of "Get-iBMCRAIDControllers" cmdlet's return value represents Storage ID.
Required? true
Position? 2
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
PSObject[][]
Returns an array of PSObject indicates all volume resources 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:\\> $Volumes = Get-iBMCVolume -Session $Session -StorageId RAIDStorage0
PS C:\\> $Volumes
Host : 10.1.1.2
Id : LogicalDrive0
Name : LogicalDrive0
CapacityBytes : 1099511627776
VolumeType : Mirrored
OptimumIOSizeBytes : 1048576
Status : @{State=Enabled; Health=OK}
VolumeName : Volume-ps
RaidControllerID : 0
VolumeRaidLevel : RAID1
DefaultReadPolicy : NoReadAhead
DefaultWritePolicy : WriteBackWithBBU
DefaultCachePolicy : DirectIO
ConsistencyCheck : False
SpanNumber : 1
NumDrivePerSpan : 2
Spans : {@{SpanName=Span0; Drives=System.Object[]}}
CurrentReadPolicy : NoReadAhead
CurrentWritePolicy : WriteBackWithBBU
CurrentCachePolicy : DirectIO
AccessPolicy : ReadWrite
BootEnable : True
BGIEnable : True
SSDCachecadeVolume : False
SSDCachingEnable : False
AssociatedCacheCadeVolume : {}
DriveCachePolicy : Unchanged
OSDriveName :
InitializationMode : UnInit
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Set-iBMCVolume
Connect-iBMC
Disconnect-iBMC