Hi,
I'm running at Server 2012 R2 file server cluster on VMs, using shared VHDXs. I have scripted a process for expanding a shared VHDX (basically, detaching the VHDX from all nodes, adding space, reattaching, then extending the volume). It would be easiest to use the Get-PartitionSupportedSize to extend the volume, but this command takes just about forever to return a value. Is anyone else seeing this sort of slow performance?
My alternative is to use DiskPart, which extends the volume right away. The downsize to DiskPart is that I need to parse the output of "list vol" | DiskPart to determine a volume number for the command "sel vol #","extend" | DiskPart. Obviously, this can be done, but I worry that I will screw it up--especially because I want my input script to accept drive letter, file system name, or mount point.
Is there a better way to do this? Better yet, none of this would be necessary if shared VHDXs could be extended online--anyone heard of that feature coming down the pipe?
Thanks!
Matthew
Matthew