New-StorageSubsystemVirtualDisk
New-StorageSubsystemVirtualDisk
Allows the creation of a VirtualDisk object on a storage subsystem that does not support creation of storage pools.
Syntax
Parameter Set: ByFriendlyName
New-StorageSubsystemVirtualDisk [-StorageSubSystemFriendlyName] <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-FriendlyName <String> ] [-Interleave <UInt64> ] [-IsEnclosureAware] [-NumberOfColumns <UInt16> ] [-NumberOfDataCopies <UInt16> ] [-OtherUsageDescription <String> ] [-ParityLayout <ParityLayout> ] [-PhysicalDiskRedundancy <UInt16> ] [-ProvisioningType <ProvisioningType> ] [-RequestNoSinglePointOfFailure <Boolean> ] [-Size <UInt64> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [-UseMaximumSize] [ <CommonParameters>]
Parameter Set: ByName
New-StorageSubsystemVirtualDisk -StorageSubSystemName <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-FriendlyName <String> ] [-Interleave <UInt64> ] [-IsEnclosureAware] [-NumberOfColumns <UInt16> ] [-NumberOfDataCopies <UInt16> ] [-OtherUsageDescription <String> ] [-ParityLayout <ParityLayout> ] [-PhysicalDiskRedundancy <UInt16> ] [-ProvisioningType <ProvisioningType> ] [-RequestNoSinglePointOfFailure <Boolean> ] [-Size <UInt64> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [-UseMaximumSize] [ <CommonParameters>]
Parameter Set: ByUniqueId
New-StorageSubsystemVirtualDisk -StorageSubSystemUniqueId <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-FriendlyName <String> ] [-Interleave <UInt64> ] [-IsEnclosureAware] [-NumberOfColumns <UInt16> ] [-NumberOfDataCopies <UInt16> ] [-OtherUsageDescription <String> ] [-ParityLayout <ParityLayout> ] [-PhysicalDiskRedundancy <UInt16> ] [-ProvisioningType <ProvisioningType> ] [-RequestNoSinglePointOfFailure <Boolean> ] [-Size <UInt64> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [-UseMaximumSize] [ <CommonParameters>]
Parameter Set: InputObject (cdxml)
New-StorageSubsystemVirtualDisk -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-FriendlyName <String> ] [-Interleave <UInt64> ] [-IsEnclosureAware] [-NumberOfColumns <UInt16> ] [-NumberOfDataCopies <UInt16> ] [-OtherUsageDescription <String> ] [-ParityLayout <ParityLayout> ] [-PhysicalDiskRedundancy <UInt16> ] [-ProvisioningType <ProvisioningType> ] [-RequestNoSinglePointOfFailure <Boolean> ] [-Size <UInt64> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [-UseMaximumSize] [ <CommonParameters>]
Detailed Description
The New-StorageSubsystemVirtualDisk cmdlet allows the creation of a VirtualDisk object on a storage subsystem that does not support creation of storage pools, or if its storage pool does not support virtual disk creation.
Parameters
-AsJob
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-CimSession<CimSession[]>
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Aliases |
Session |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-FriendlyName<String>
Specifies a friendly name for a virtual disk. The friendly name may be defined by a user and is not guaranteed to be unique.
Aliases |
VirtualDiskFriendlyName |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-InputObject<CimInstance[]>
Accepts an object from the pipeline as input.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Interleave<UInt64>
Specifies the interleave value to use during the creation of a virtual disk.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-IsEnclosureAware
Specifies that the enclosure supports SCSI Enclosure Services (SES), which is utilized for providing things like Slot location for a physical disk, as well as to manage LEDs on the disks for visual identification.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-NumberOfColumns<UInt16>
Specifies the number of columns to create.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-NumberOfDataCopies<UInt16>
Specifies the number of data copies to create.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-OtherUsageDescription<String>
Specifies the usage of this object.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ParityLayout<ParityLayout>
Specifies the parity layout to be used with the virtual disk to be created.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PhysicalDiskRedundancy<UInt16>
Specifies the physical disk redundancy value to use during the creation of a virtual disk.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProvisioningType<ProvisioningType>
Specifies the type of provisioning. The acceptable values for this parameter are: Unknown, Fixed, or Thin.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-RequestNoSinglePointOfFailure<Boolean>
Requests that the virtual disk is created on hardware that has path redundancy to provide resilience to storage path faults. This cannot be guaranteed.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Size<UInt64>
Specifies the size of the partition to create. If not specified, then the number will default to Bytes. The acceptable values for this parameter are: Bytes, KB, MB, GB, or TB. The size may be defined by a user.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-StorageSubSystemFriendlyName<String[]>
Specifies the friendly name of the storage subsystem. The friendly name may be defined by the user.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-StorageSubSystemName<String[]>
Specifies the name of the storage subsystem provided by the Storage Management.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-StorageSubSystemUniqueId<String[]>
Specifies an ID used to uniquely identify the storage subsystem in the system. The ID persists through reboots.
Aliases |
StorageSubsystemId |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-ThrottleLimit<Int32>
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0
is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Usage<Usage>
Specifies the intended usage.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UseMaximumSize
Uses the maximum allowable size for this virtual disk.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageSubsystem
The
Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
Outputs
The output type is the type of the objects that the cmdlet emits.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk
The
Microsoft.Management.Infrastructure.CimInstance
object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#
) provides the namespace and class name for the underlying WMI object.
Examples
EXAMPLE 1
This example creates a Virtual Disk named VirtualDisk01 on the provided StorageSubsystem without the use of a Storage Pool
PS C:\> $stsubsys = (Get-StorageSubsystem)
PS C:\> New-StorageSubsystemVirtualDisk -StorageSubsystemUniqueId $stsubsys.UniqueID -FriendlyName "VirtualDisk01" -Size "5GB" -ProvisioningType Fixed
Related topics
Get-StorageSubsystem