Expand-EmcHostVolume

Expands the volume of a host.

 

Syntax

 

Parameters

-HostSystem <IHostSystem>

Attributes: Required, Position: named

Specifies the ESI host system object. You can add a host system object to ESI by using the Get-EmcHostSystemCredential and Connect-EmcSystem cmdlets. You can get a host system object by using the Get-EmcHostSystem cmdlet. The object can be a stand-alone host system, a virtual machine, or a hypervisor.

 

-Volume <Volume>

Attributes: Required, Position: named

Specifies the volume of host.

 

-CapacityToAdd <UInt64>

Attributes: Optional, Position: named

Specifies the new capacity to be added to host.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-ClusterSystem <IWindowsFailoverClusterSystem>

Attributes: Required, Position: named

Specifies the ESI cluster system object. You can add a cluster system object to ESI by using the Get-EmcClusterSystemCredential and Connect-EmcSystem cmdlets. You can get a cluster system object by using the Get-EmcClusterSystem cmdlet.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$s=Get-EmcStorageSystem -Id *124

C:\PS>$pool = Get-EmcStoragePool -ID *1000 -StorageSystem $s

C:\PS>$system=Get-EmcHostSystem *43

C:\PS&gt;$lun = new-emclun -Pool $pool -Capacity 1GB -Name &quot;lun_1&quot;

C:\PS>Set-EmcLunAccess -HostSystem $system -Lun $lun -Available

C:\PS>$disk = Find-EmcHostDisk -HostSystem $system -Lun $lun

C:\PS>Initialize-EmcHostDisk -HostSystem $system -HostDisk $disk -PartitionStyle mbr

C:\PS>$volume = New-EmcVolume -HostSystem $system -HostDisk $disk -FileSystemType ntfs -AllocationUnitSizeInBytes 64KB -Label lun_1

C:\PS>Expand-EmcLun -Lun $lun -NewCapacity 5GB

C:\PS>Expand-EmcHostVolume -HostSystem $system -Volume $volume

This example expands the host volume.

 

-------------- Example 2 --------------

C:\PS>$s=Get-EmcStorageSystem -Id *124

C:\PS>$pool = Get-EmcStoragePool -ID *1000 -StorageSystem $s

C:\PS>$system=Get-EmcClusterSystem *220

C:\PS>$lun = new-emclun -Pool $pool -Capacity 1GB -Name "lun_1"

C:\PS>Set-EmcLunAccess -ClusterSystem $system -Lun $lun -Available

C:\PS>$disk = Find-EmcHostDisk -ClusterSystem $system -Lun $lun

C:\PS>Initialize-EmcHostDisk -ClusterSystem $system -HostDisk $disk -PartitionStyle mbr

C:\PS>$volume = New-EmcVolume -ClusterSystem $system -HostDisk $disk -FileSystemType ntfs -AllocationUnitSizeInBytes 64KB -Label lun_1

C:\PS>Add-EmcHostDiskToCluster -HostLunIdentifier $disk.HostLunIdentifier -ClusterSystem $cluster -ClusterGroupName "Available Storage"

C:\PS>Expand-EmcLun -Lun $lun -NewCapacity 5GB

C:\PS>Expand-EmcHostVolume -ClusterSystem $system -Volume $volume

This example expands the host volume of a cluster.