Full Storage of RDS for SQL Server Instances
When the storage usage of an instance reaches 97% or higher, RDS sets the instance to read-only to protect the disk from becoming abnormal. The instance status changes to Storage full.
Possible Causes
- Service volume increase
- Too large LDF files in some databases
- Temporary database (tempdb) occupying too much storage
Solution
- Scale up the storage.
- In the instance list, choose More > Scale Storage Space.
- On the displayed page, the system determines the minimum space required.
Figure 1 Scaling up storage space
- After the scale-up is successful, check that the instance status becomes Available.
Figure 2 Checking the instance status
- If the full storage is caused by too large LDF files in some databases, shrink the databases.
For details, see Shrinking Databases.
Figure 3 Checking the LDF file size
- If the tempdb database occupies too much space, perform the following operations:
- Query the tempdb database size.
SELECT name AS FileName, size*1.0/128 AS FileSizeInMB, CASE max_size WHEN 0 THEN 'Autogrowth is off.' WHEN -1 THEN 'Autogrowth is on.' ELSE 'Log file grows to a maximum size of 2 TB.' END, growth AS 'GrowthValue', 'GrowthIncrement' = CASE WHEN growth = 0 THEN 'Size is fixed.' WHEN growth > 0 AND is_percent_growth = 0 THEN 'Growth value is in 8-KB pages.' ELSE 'Growth value is a percentage.' END FROM tempdb.sys.database_files;
- Shrink the tempdb database by referring to Shrinking Databases. If the tempdb database is frequently used, the storage usage cannot be effectively reduced.
- In the instance list, choose More > Reboot to reboot the instance. In this way, the free space of tempdb will be released.
After the reboot, the instance status becomes Available.
An instance reboot can resolve the full storage problem caused by tempdb. But if the full storage is caused by large LDF files in some databases, a reboot does not work. It may cause databases with large transaction logs to enter the inRecovery state, in which the databases cannot be accessed for a long time. For higher security, you are advised to scale up storage.
- Query the tempdb database size.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot