New-SCStorageLogicalUnit
从存储池中未分配的容量创建逻辑单元。
语法
New-SCStorageLogicalUnit
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-VMHostGroup <HostGroup>]
[-VMMServer <ServerConnection>]
[-StorageLogicalUnit] <StorageLogicalUnit>
-Name <String>
[-Description <String>]
-TargetStoragePool <StoragePool>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageLogicalUnit
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-VMHostGroup <HostGroup>]
[-VMMServer <ServerConnection>]
[-StorageLogicalUnit] <StorageLogicalUnit>
-Name <String>
[-Description <String>]
[-SetLogicalUnitCopySource]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageLogicalUnit
[-ProvisioningType <StorageProvisioningType>]
[-VMHostGroup <HostGroup>]
[-VMMServer <ServerConnection>]
-Name <String>
[-Description <String>]
[-StoragePool] <StoragePool>
-DiskSizeMB <UInt64>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
New-SCStorageLogicalUnit cmdlet 从存储池中的未分配容量创建逻辑单元。
示例
示例 1:创建现有逻辑单元的副本
PS C:\> $SourceLU = Get-SCStorageLogicalUnit -Name "LUN01"
PS C:\> New-SCStorageLogicalUnit -SetLogicalUnitCopySource -StorageLogicalUnit $SourceLU -Name "NewLU" -LogicalUnitCopyMethod Clone
第一个命令获取名为 LUN01 的存储逻辑单元对象,并将对象存储在$SourceLU变量中。
第二个命令通过克隆 LUN01 创建名为 NewLU 的新逻辑单元。
参数
-Description
指定对象的说明。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskSizeMB
指定磁盘的大小(以兆字节为单位), (MB) 。
Type: | UInt64 |
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 |
-LogicalUnitCopyMethod
指定数组用于复制现有逻辑单元的方法。 有效值:克隆、快照。
Type: | StorageLogicalUnitCopyMethod |
Accepted values: | Snapshot, Clone, RemoteMirror |
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 |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProvisioningType
指定存储预配类型。 有效值为:精简、固定。
精简表示容量按需提交存储逻辑单元。
已修复指示容量已完全提交到固定大小的存储逻辑单元。
Type: | StorageProvisioningType |
Accepted values: | Unknown, Thin, Fixed |
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 |
-SetLogicalUnitCopySource
指示指定的存储逻辑单元是从中复制克隆的源。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageLogicalUnit
指定存储逻辑单元对象。
Type: | StorageLogicalUnit |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StoragePool
指定存储池对象。
Type: | StoragePool |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TargetStoragePool
指定目标存储池。
Type: | StoragePool |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostGroup
指定一个虚拟主机组对象。
Type: | HostGroup |
Position: | Named |
Default value: | None |
Required: | False |
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 |
输出
StorageLogicalUnit
此 cmdlet 返回 StorageLogicalUnit 对象。