Edit

Share via


New-StorageSubsystemVirtualDisk

Allows the creation of a VirtualDisk object on a storage subsystem that does not support creation of storage pools.

Syntax

ByFriendlyName (Default)

New-StorageSubsystemVirtualDisk
    [-StorageSubSystemFriendlyName] <String[]>
    [-FriendlyName <String>]
    [-Usage <Usage>]
    [-OtherUsageDescription <String>]
    [-Size <UInt64>]
    [-UseMaximumSize]
    [-Interleave <UInt64>]
    [-NumberOfColumns <UInt16>]
    [-PhysicalDiskRedundancy <UInt16>]
    [-NumberOfDataCopies <UInt16>]
    [-ParityLayout <ParityLayout>]
    [-RequestNoSinglePointOfFailure <Boolean>]
    [-ProvisioningType <ProvisioningType>]
    [-IsEnclosureAware]
    [-FaultDomainAwareness <FaultDomainType>]
    [-CimSession <CimSession[]>]
    [-ThrottleLimit <Int32>]
    [-AsJob]
    [<CommonParameters>]

ByUniqueId

New-StorageSubsystemVirtualDisk
    -StorageSubSystemUniqueId <String[]>
    [-FriendlyName <String>]
    [-Usage <Usage>]
    [-OtherUsageDescription <String>]
    [-Size <UInt64>]
    [-UseMaximumSize]
    [-Interleave <UInt64>]
    [-NumberOfColumns <UInt16>]
    [-PhysicalDiskRedundancy <UInt16>]
    [-NumberOfDataCopies <UInt16>]
    [-ParityLayout <ParityLayout>]
    [-RequestNoSinglePointOfFailure <Boolean>]
    [-ProvisioningType <ProvisioningType>]
    [-IsEnclosureAware]
    [-FaultDomainAwareness <FaultDomainType>]
    [-CimSession <CimSession[]>]
    [-ThrottleLimit <Int32>]
    [-AsJob]
    [<CommonParameters>]

ByName

New-StorageSubsystemVirtualDisk
    -StorageSubSystemName <String[]>
    [-FriendlyName <String>]
    [-Usage <Usage>]
    [-OtherUsageDescription <String>]
    [-Size <UInt64>]
    [-UseMaximumSize]
    [-Interleave <UInt64>]
    [-NumberOfColumns <UInt16>]
    [-PhysicalDiskRedundancy <UInt16>]
    [-NumberOfDataCopies <UInt16>]
    [-ParityLayout <ParityLayout>]
    [-RequestNoSinglePointOfFailure <Boolean>]
    [-ProvisioningType <ProvisioningType>]
    [-IsEnclosureAware]
    [-FaultDomainAwareness <FaultDomainType>]
    [-CimSession <CimSession[]>]
    [-ThrottleLimit <Int32>]
    [-AsJob]
    [<CommonParameters>]

InputObject (cdxml)

New-StorageSubsystemVirtualDisk
    -InputObject <CimInstance[]>
    [-FriendlyName <String>]
    [-Usage <Usage>]
    [-OtherUsageDescription <String>]
    [-Size <UInt64>]
    [-UseMaximumSize]
    [-Interleave <UInt64>]
    [-NumberOfColumns <UInt16>]
    [-PhysicalDiskRedundancy <UInt16>]
    [-NumberOfDataCopies <UInt16>]
    [-ParityLayout <ParityLayout>]
    [-RequestNoSinglePointOfFailure <Boolean>]
    [-ProvisioningType <ProvisioningType>]
    [-IsEnclosureAware]
    [-FaultDomainAwareness <FaultDomainType>]
    [-CimSession <CimSession[]>]
    [-ThrottleLimit <Int32>]
    [-AsJob]
    [<CommonParameters>]

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

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Parameter properties

Type:

CimSession[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:Session

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FaultDomainAwareness

Specifies the default fault domain for new virtual disks created in this storage pool. The fault domain specifies at what level you want to be fault tolerant. The acceptable values for this parameter are:

  • PhysicalDisk
  • StorageScaleUnit
  • StorageChassis
  • StorageEnclosure
  • StorageRack

Parameter properties

Type:FaultDomainType
Default value:None
Accepted values:PhysicalDisk, StorageEnclosure, StorageScaleUnit, StorageChassis, StorageRack
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:VirtualDiskFriendlyName

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the input object that is used in a pipeline command.

Parameter properties

Type:

CimInstance[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

InputObject (cdxml)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Interleave

Specifies the interleave value to use during the creation of a storage tier. The interleave value represents the number of bytes that is written to a single physical disk. Therefore, Interleave * NumberOfColumns yields the size of one stripe of user data.

Parameter properties

Type:UInt64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NumberOfColumns

Specifies the number of columns to create.

Parameter properties

Type:UInt16
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NumberOfDataCopies

Specifies the number of data copies to create.

Parameter properties

Type:UInt16
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OtherUsageDescription

Specifies the usage of this object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ParityLayout

Specifies the parity layout to be used with the virtual disk to be created.

Parameter properties

Type:ParityLayout
Default value:None
Accepted values:NonRotatedParity, RotatedParity
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PhysicalDiskRedundancy

Specifies the physical disk redundancy value to use during the creation of a virtual disk.

Parameter properties

Type:UInt16
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProvisioningType

Specifies the type of provisioning. The acceptable values for this parameter are: Unknown, Fixed, or Thin.

Parameter properties

Type:ProvisioningType
Default value:None
Accepted values:Unknown, Thin, Fixed
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:UInt64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageSubSystemFriendlyName

Specifies the friendly name of the storage subsystem. The friendly name may be defined by the user.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByFriendlyName
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-StorageSubSystemName

Specifies the name of the storage subsystem provided by the Storage Management.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-StorageSubSystemUniqueId

Specifies an ID used to uniquely identify the storage subsystem in the system. The ID persists through reboots.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:StorageSubsystemId

Parameter sets

ByUniqueId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments: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.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Usage

Specifies the intended usage.

Parameter properties

Type:Usage
Default value:None
Accepted values:Other, Unrestricted, ReservedForComputerSystem, ReservedForReplicationServices, ReservedForMigrationServices, LocalReplicaSource, RemoteReplicaSource, LocalReplicaTarget, RemoteReplicaTarget, LocalReplicaSourceOrTarget, RemoteReplicaSourceOrTarget, DeltaReplicaTarget, ElementComponent, ReservedAsPoolContributer, CompositeVolumeMember, CompositeVirtualDiskMember, ReservedForSparing
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseMaximumSize

Uses the maximum allowable size for this virtual disk.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

CimInstance

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

CimInstance

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.

Notes

  • When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).