How to increase capacity in a virtual drive from a storage pool in Windows Server 2019

Steven Webb 0 Reputation points
2024-07-10T10:28:36.9266667+00:00

I am trying to resize a volume on a VM while keeping the disk as a 'Basic' drive type.

I have created a new drive in Azure and allocated it to the machine, and have initialised it.

After adding it to the Storage Pool, I can see it has free space but I'm not able to allocate this.

Please let me know the steps to allocate this to the drive.

mRemoteNG_GB7FHHL0J9.png

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,599 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
643 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 6,675 Reputation points
    2024-07-10T14:26:08.1033333+00:00

    Hello

    To increase the capacity of a virtual drive from a storage pool in Windows Server 2019 while keeping the disk as a 'Basic' drive type, you can follow these general steps:

     

    Add the new drive to the storage pool: You've already initialized the new drive and added it to the Storage Pool, which is the correct first step.

     

    Extend the virtual disk: Once the new drive is part of the storage pool, you can extend the virtual disk that is associated with the volume you want to expand. This can be done using the Server Manager or PowerShell commands.

     

    Extend the volume: After the virtual disk is extended, you'll need to extend the volume within the operating system to make use of the new space. This can be done through the Disk Management snap-in or with PowerShell.

     

    Here are some PowerShell cmdlets that can help you with each step:

     

    To add a drive to a storage pool:

     

    Add-PhysicalDisk -StoragePoolFriendlyName "YourStoragePoolName" -PhysicalDisks $newDrive

     

    To extend the virtual disk:

     

    Resize-VirtualDisk -FriendlyName "YourVirtualDiskName" -Size (NewSize)

     

    To extend the volume:

     

    Resize-Partition -DriveLetter X -Size (NewSize)

     

    Make sure to replace "YourStoragePoolName", "YourVirtualDiskName", and "X" with the actual names of your storage pool, virtual disk, and the drive letter of the volume, respectively. Also, replace (NewSize) with the new size you want to set, which should be larger than the current size. https://learn.microsoft.com/en-us/windows-server/storage/storage-spaces/deploy-standalone-storage-spaces

    0 comments No comments