Azure Stack HCI Stretched Cluster Volumes - Expand volumes

Jamie Childs 21 Reputation points
2023-08-21T08:49:44.2033333+00:00

We have deployed an Azure Stack HCI Stretched Cluster across two sites. We have also deployed a a small stretched volume across the two sites for testing purposes. we would now like to test the volume expansion capability but when using Windows Admin Centre to change the size on the volume, the option is greyed out.

If I deploy a single site volume and try the same process we have the option to increase the size.

Is it supported to expand a stretched cluster volume? and if so what would be the method to achieve this?

Thanks in advance.

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
342 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Trent Helms - MSFT 2,541 Reputation points Microsoft Employee
    2023-08-21T13:30:15.24+00:00

    Hi Jamie,

    Yes, it is supported to expand a replicated cluster volume. If the volume is thin provisioned, the option to extend the volume will be greyed out in WAC (this is a known limitation). You will need to perform the expansion via PowerShell.

    If the volume was created using WAC, it was created as a tiered volume. As such, you would need to expand the tiers first, then expand the partition. You will need to do this for both the data and replica volumes. You should then be able to resize the partition.

    The sample script below is one way of doing this. I have also seen instances where the method below of extending the partitions did not work, but using diskpart to expand the partition did.

    NOTE: The script below is provided as-is with no warranties or guarantees of support. It is up to you as the user to verify and test the script thoroughly. Microsoft accepts no liability from the use of this script in any form.

    #Confirm the FriendlyName of the storage tiers you wish to expand
    Get-StorageTier
    
    #Expand the storage tiers
    Resize-StorageTier -InputObject (Get-StorageTier -FriendlyName "Name of storage tier") -Size <size to be expanded>
    
    #Confirm the FriendlyName of the virtual disk you wish to expand
    Get-VirtualDisk 
    
    #Set the virtual disk as a variable
    $virtualdisk = Get-VirtualDisk <Name of virtual disk>
    
    #Confirm the partition number you want to expand
    $virtualdisk | Get-Disk | Get-Partition
    
    #Set the partition as a variable
    $partition = $virtualdisk | Get-Disk | Get-Partition | Where PartitionNumber -eq <Value>
    
    #Expand the partition to the maximum size
    $partition | Resize-Partition -Size ($partition | Get-PartitionSupportedSize).SizeMax
    

    Hope this helps!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.