New-SCStorageVolume
创建存储卷。
语法
New-SCStorageVolume
[-VMMServer <ServerConnection>]
-Name <String>
-StoragePool <StoragePool>
-SizeInBytes <UInt64>
-FileSystem <String>
-StorageFileServer <StorageFileServer>
[-ResiliencySettingName <String>]
[-NumberOfColumns <UInt16>]
[-PhysicalDiskRedundancy <UInt16>]
[-GuidPartitionTable]
[-RequiredPartitionSize <UInt64>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageVolume
[-VMMServer <ServerConnection>]
-Name <String>
-StoragePool <StoragePool>
-SizeInBytes <UInt64>
-FileSystem <String>
-StorageArray <StorageArray>
[-ResiliencySettingName <String>]
[-NumberOfColumns <UInt16>]
[-PhysicalDiskRedundancy <UInt16>]
[-GuidPartitionTable]
[-RequiredPartitionSize <UInt64>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageVolume
[-VMMServer <ServerConnection>]
-Name <String>
-StoragePool <StoragePool>
-FileSystem <String>
-StorageFileServer <StorageFileServer>
[-ReadCacheSizeMB <UInt64>]
-JobGroup <Guid>
[-GuidPartitionTable]
[-RequiredPartitionSize <UInt64>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageVolume
[-VMMServer <ServerConnection>]
-Name <String>
-StoragePool <StoragePool>
-FileSystem <String>
-StorageArray <StorageArray>
[-ReadCacheSizeMB <UInt64>]
-JobGroup <Guid>
[-GuidPartitionTable]
[-RequiredPartitionSize <UInt64>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
New-SCStorageVolume cmdlet 在 Virtual Machine Manager (VMM) 中创建存储卷。
示例
示例 1:创建分层存储卷
PS C:\> $StorageArray = Get-SCStorageArray -Name "HCArray"
PS C:\> $StoragePool = Get-SCStoragePool -Name "S2DPool"
PS C:\> New-SCStorageTier -StorageTierFriendlyName "Performance" -StorageTierSizeInMB 1024 -RunAsynchronously -JobGroup "191de146-dbec-4955-a347-70edd4315c41"
PS C:\> New-SCStorageTier -StorageTierFriendlyName "Capacity" -StorageTierSizeInMB 1024 -RunAsynchronously -JobGroup "191de146-dbec-4955-a347-70edd4315c41"
PS C:\> New-SCStorageVolume -StorageArray $StorageArray -StoragePool $storagePool -Name "Volume1" -RunAsynchronously -JobGroup "191de146-dbec-4955-a347-70edd4315c41" -FileSystem "CSVFS_NTFS"
第一个命令获取名为 HCArray 的存储数组,然后将其存储在$StorageArray变量中。
第二个命令获取名为 S2DPool 的存储池,然后将其存储在$StoragePool变量中。
第三和第四个命令使用名为“性能和容量”的全局层的配置来创建存储层。 这些是现有层。
第五个命令在超聚合系统上创建分层卷。 该命令使用在前面的命令中创建的值。 请确保作业组 ID 与前面的命令相同。
参数
-AllocationUnitSizeKB
指定卷的分配大小(以千字节为单位)。
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DedupMode
根据工作负荷对卷或文件共享应用重复数据删除。 此参数的可接受值为:
- 0 - 已禁用
- 1 - GeneralPurpose
- 2 - Hyper-V
- 3 - 备份
Type: | DedupMode |
Accepted values: | Disabled, GeneralPurpose, HyperV, Backup, NotAvailable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileSystem
指定存储卷的文件系统。 此参数的可接受值为:
- CSVFS_NTFS
- CSVFS_ReFS
Type: | String |
Accepted values: | NTFS, ReFS, CSVFS_NTFS, CSVFS_ReFS |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GuidPartitionTable
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
指定在包含相同作业组标识符的最终命令之前作为集运行的一系列命令的标识符。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定跟踪和存储作业进度的变量。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 VMM 对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NumberOfColumns
指定虚拟磁盘的列数。
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PhysicalDiskRedundancy
指定虚拟磁盘可以维持的物理磁盘故障数。
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ReadCacheSizeMB
指定分层虚拟磁盘的缓存大小(以兆字节为单位)。
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RequiredPartitionSize
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResiliencySettingName
指定虚拟磁盘的复原设置。 此参数的可接受值为:
- 镜像
- Parity
Type: | String |
Accepted values: | Simple, Mirror, Parity |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业以异步方式运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SizeInBytes
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageArray
指定存储数组对象。
Type: | StorageArray |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassification
{{Fill StorageClassification Description}}
Type: | StorageClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileServer
指定存储文件服务器对象。
Type: | StorageFileServer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StoragePool
指定存储池对象。
Type: | StoragePool |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |