Hello John,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Issue:
PostgreSQL flexible server storage increase does not get reflected.
Error Message:
After scaling up the storage of a PostgreSQL flexible server from 32GB to 64GB, the status shows "succeeded" and the information reflects 64GB. However, the free space percentage on the machine remains unchanged, and the sum of "available" and "used" storage still shows 32GB instead of the scaled-up 64GB.
Solution:
Customer solved the solved the issue by creating a new machine based on a snapshot. Interestingly, the platform recreated the server with an error (the specification was 64GB, but in reality it was 32GB).
They attempted to increase the space to 128GB, which, surprisingly, worked, and the machine's space was increased from 32GB to 128GB.
The reported machine was deleted, perhaps increasing the space from (the phantom 64GB) to 128 would have had the same result.
For references and how to solve the above:
Step 1: To snapshot and recreate, you can use az postgres flexible-server geo-backup show or snapshot tools. - Recreate server from backup/snapshot - https://free.blessedness.top/en-us/azure/postgresql/flexible-server/concepts-backup
Step 2: To verify actual specs after recreation:
az postgres flexible-server show \
--name <server-name> \
--resource-group <resource-group>
https://free.blessedness.top/en-us/cli/azure/postgres/flexible-server
Step 3: Resize the storage an if spec mismatch occurs:
az postgres flexible-server update \
--name <server-name> \
--resource-group <resource-group> \
--storage-size 128
https://free.blessedness.top/en-us/azure/postgresql/flexible-server/how-to-scale-storage-size
Step 4: To enable autogrow
az postgres flexible-server update \
--name <server-name> \
--resource-group <resource-group> \
--storage-auto-grow Enabled
Step 5: To monitor and create alert, you can use Azure Monitor:
- Set alerts for storage usage > 80%.
- Track actual disk metrics.
https://free.blessedness.top/en-us/azure/azure-monitor/alerts/alerts-overview
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.