- Newest
- Most votes
- Most comments
Hello,
The issue is likely due to the 7-day backup retention period, which is the default for RDS. Even though you've shrunk the tempdb, the backup files are still consuming storage space.
Reduce the backup retention period: Lower the retention period to a minimum of 1 day to reduce the storage consumed by backups. You can do this in the RDS dashboard, under "Instance settings" > "Backup & maintenance".
Verify backup storage usage: Use the AWS CLI command:
aws rds describe-db-instances --db-instance-identifier <instance-id> --query 'DBInstances[0].BackupStorageUsed'
to check the backup storage usage.
Check for other storage consumers: Run the query:
SELECT * FROM sys.dm_db_file_space_usage
to identify any other files or objects consuming storage space. Monitor storage usage: Regularly check the storage usage in the RDS dashboard to ensure it's within the expected range.
AWS RDS Backup and Restore: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html
AWS RDS Storage: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html
Relevant content
- Accepted Answerasked 6 months ago
- Accepted Answerasked 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
Great, thanks for the quick reply.