New-SpacesVolume

New-SpacesVolume

Creates a storage space and then creates and formats a volume on the storage space.

구문

Parameter Set: Default
New-SpacesVolume [-StoragePoolFriendlyName] <String> [-SpaceFriendlyName] <String> [-Size] <String> [-ResiliencyType] <String> [-ProvisioningType] <String> [[-DriveLetterToUse] <Char> ] [[-MaximumColumnCount]] [[-InterleaveBytes] <UInt64> ] [[-ClusterSize] <String> ] [[-CreateClusterSharedVolume]] [[-FileSystem] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The New-SpacesVolume cmdlet creates a storage space, initializes the new virtual disk (storage space), creates a partition on virtual disk, and then formats the volume. It can also optionally create a Cluster Shared Volume (CSV) on the newly formatted volume when run on a failover cluster.

매개 변수

-ClusterSize<String>

별칭

없음

필수 여부

false

위치

9

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-CreateClusterSharedVolume

Creates a CSV on the volume.

별칭

없음

필수 여부

false

위치

10

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DriveLetterToUse<Char>

Specifies the drive letter to assign to the storage space.

별칭

없음

필수 여부

false

위치

6

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-FileSystem<String>

Specifies the file system to use on the volume. Acceptable values are NTFS and ReFS.

별칭

없음

필수 여부

false

위치

11

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-InterleaveBytes<UInt64>

별칭

없음

필수 여부

false

위치

8

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-MaximumColumnCount

별칭

없음

필수 여부

false

위치

7

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ProvisioningType<String>

Specifies whether to create a fixed or thinly provisioned storage space. Acceptable values are Fixed or Thin.

별칭

없음

필수 여부

true

위치

5

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ResiliencyType<String>

Specifies the resiliency setting to use. Acceptable values are Mirror, Parity, and Simple, which does not include any resiliency.

별칭

없음

필수 여부

true

위치

4

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Size<String>

Specifies the size of the storage space.

별칭

없음

필수 여부

true

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-SpaceFriendlyName<String>

Specifies the friendly name of the storage space.

별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-StoragePoolFriendlyName<String>

Specifies the friendly name of the storage pool on which to create the storage space.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • System.Object

    This cmdlet returns an object that contains information about the storage space and the volume hosted on the storage space.

예제

Example 1 – Create a thinly provisioned mirror space

This example creates a storage space named Test, which is a thinly provisioned mirror space, and then creates and formats a volume on the storage space.

PS C:\> New-SpacesVolume -StoragePoolFriendlyName Internal -SpaceFriendlyName Test -Size (5GB) -ResiliencyType Mirror -ProvisioningType Thin

Example 2 – Create a thinly provisioned mirror space and assign a specific drive letter

This example creates a storage space named Test, which is a thinly provisioned mirror space, and then creates and formats an NTFS volume on the storage space, and assigns drive letter T to the volume.

PS C:\> New-SpacesVolume -StoragePoolFriendlyName Internal -SpaceFriendlyName Test -Size (5GB) -ResiliencyType Mirror -ProvisioningType Thin -DriveLetterToUse T -FileSystem NTFS

Example 3 – Create a fixed mirror space and create a Cluster Shared Volume

This example creates a 5GB mirror space, with fixed provisioning, and creates a Cluster Shared Volume (CSV) after creation. Note: Requires a clustered storage pool.

PS C:\> New-SpacesVolume -StoragePoolFriendlyName Internal -SpaceFriendlyName Test -Size (5GB) -ResiliencyType Mirror -ProvisioningType Fixed -CSV