New-StorageSubsystemVirtualDisk
Allows the creation of a VirtualDisk object on a storage subsystem that does not support creation of storage pools.
Syntax
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]
New-StorageSubsystemVirtualDisk
[-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]
-StorageSubSystemUniqueId <String[]>
New-StorageSubsystemVirtualDisk
[-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]
-InputObject <CimInstance[]>
New-StorageSubsystemVirtualDisk
[-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]
-StorageSubSystemName <String[]>
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.
Examples
EXAMPLE 1
PS C:\>$stsubsys = (Get-StorageSubsystem)
PS C:\>New-StorageSubsystemVirtualDisk -StorageSubsystemUniqueId $stsubsys.UniqueID -FriendlyName "VirtualDisk01" -Size "5GB" -ProvisioningType Fixed
This example creates a Virtual Disk named VirtualDisk01 on the provided StorageSubsystem without the use of a Storage Pool
Parameters
-AsJob
ps_cimcommon_asjob
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.
Type: | CimSession[] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FriendlyName
Specifies a friendly name for a virtual disk. The friendly name may be defined by a user and is not guaranteed to be unique.
Type: | String |
Aliases: | VirtualDiskFriendlyName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Accepts an object from the pipeline as input.
Type: | CimInstance[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Interleave
Specifies the interleave value to use during the creation of a virtual disk.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
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.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NumberOfColumns
Specifies the number of columns to create.
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NumberOfDataCopies
Specifies the number of data copies to create.
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OtherUsageDescription
Specifies the usage of this object.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParityLayout
Specifies the parity layout to be used with the virtual disk to be created.
Type: | ParityLayout |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PhysicalDiskRedundancy
Specifies the physical disk redundancy value to use during the creation of a virtual disk.
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProvisioningType
Specifies the type of provisioning. The acceptable values for this parameter are: Unknown, Fixed, or Thin.
Type: | ProvisioningType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RequestNoSinglePointOfFailure
Requests that the virtual disk is created on hardware that has path redundancy to provide resilience to storage path faults. This cannot be guaranteed.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Size
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.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageSubSystemFriendlyName
Specifies the friendly name of the storage subsystem. The friendly name may be defined by the user.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageSubSystemName
Specifies the name of the storage subsystem provided by the Storage Management.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageSubSystemUniqueId
Specifies an ID used to uniquely identify the storage subsystem in the system. The ID persists through reboots.
Type: | String[] |
Aliases: | StorageSubsystemId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ThrottleLimit
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.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Usage
Specifies the intended usage.
Type: | Usage |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseMaximumSize
Uses the maximum allowable size for this virtual disk.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
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 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.
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for