![Storage pricing in azure Storage pricing in azure](/uploads/1/2/4/2/124230267/887420046.png)
INTRODUCTIONRetaining data in the same VM requires us to increase the disk space when the utilization of allocated space is full. Increasing the disk space in Azure is quite easy with a few clicks.There may be some challenges faced by the administrators if the desired details are not provided. For example, the VM owner would need to increase the size of the data disk, but not be aware about the details which need to be provided or how these can be gathered.
I have some tips for people who are running out of space or just want to have more space in their Azure Stack environment. The Azure Stack installation script intentionally leaves some space in the S2D (Storages Spaces Direct) ‘SU1Pool’ for extending,rebuilding and maintenance purposes. You can use the remaining space to extend the virtual disk, but only if you do not have the plan to add extra physical drives for this Azure Stack deployment in the future. Otherwise, you have to add the new drives first and then extend the ‘virtual disk’, do not extend the virtual disk before you have added the new physical disks. The reason behind this is because the virtual disk cant be extended with space from newly added disks when you already used up all the available space in the storage pool. S2D cant redistribute the extents to newly added disks when there is no remaining space left on the existing physical disks. Therefore, I recommend to add new disks first and then resize/extend the virtual disk. Not planning to add new disks for this deployment?
Dec 29, 2015 Aidan Finn shows us how to implement Storage Spaces inside a Windows Server 2012 R2 Azure virtual machine to aggregate the capacity and performance potential of multiple data disks. Introduction Yesterday we talked about the combination of Azure+S2D+SOFS+MSSQL. Here we had a cluster where each node had two P20 disks. What if at a given point we would need more than 1TB of disk space? We'll be extending the pool (and virtual disk etc). So let's take a look what that would look like?
Then go ahead and use all the remaining space in the ‘SU1Pool’ to extend the ‘SU1Volume1’ virtual disk. Extend the virtual diskOf course you can check out the disks and their sizes via server manager, however, if you want to have a good overview via PowerShell then execute the commands below.
PowerShell- Resize Virtual DiskIf you experience the ‘not enough storage’ error then try to resize with small increments (10GB) on top of the existing virtual disk size. Build that up until you used the maximum virtual disk size, this size is close to the maximum size of the pool. If you added new physical disks and still got errors with PowerShell or Server Manager then wait a few hours. That gives the system time to redistribute and rebalance the extents from the existing disks onto the new disks, it should allow you to extend again. If that still fails, then as a last step try to execute the PowerShell command ‘Optimize-StoragePool -FriendlyName ‘SU1Pool’ and try again.
Extend PartitionWhen you successfully extended the virtual disk then you also need to extend the volume/partition, you can do this via server manager or disk management but of course its always more easy to do it via PowerShell. Below are the PowerShell commands, no input needed. Get -virtualdisk get -disk Get-Partition get -volumeVerify the new storage space with the last PowerShell command above. The MAS-ACS01 or the Host NEED to be restarted after you extended or modified the partition in any way.
![How How](/uploads/1/2/4/2/124230267/180145576.png)
Extending the partition/volume triggers a bug in one of the ServiceFabric hosted applications, the Marketplace is broken (gallery artifacts) and you will see ‘nocdn’ in the address bar. Restart MAS-ACS01 and see if the issue is resolved. Otherwise, restart the Host and wait twenty minutes or so for the fabric VMs to come up, the ‘ColdStartMachine’ scheduled task at startup will start them in the right order.Now go to the portal and see the newly added space in the capacity view of the Azure Stack Storage RP. Tip: Pin the ‘storage capacity’ view to the portal’s dashboard, its very useful, you see the usage every time you login.Thats it! Also, dont forget to change the for the storage accounts and run the, it fixes several TP2 storage space consumption issues.Happy Stacking,RuudThanks to for support in troubleshooting the inner workings of S2D.