Hi,
I have an old SQL Server Web Edition (14.00.3381.3.v1) in storage-full state. What would be the best way to resolve this situation?
I have tried to follow e.g. guides:
I tried to add more storage but it stays in this state
"PendingModifiedValues": {
"AllocatedStorage": 200
},
I also tried to enable Storage autoscaling many days ago but it hasn't helped either.
From RDS events we can see the following:
Storage for tempdb log files is almost full. Shrink the tempdb files, or reboot the DB instance to reset the file size.
The free storage capacity for DB Instance: <name> is low at 0% of the provisioned storage [Provisioned Storage: 39.87 GB, Free Storage: 0 B]. You may want to increase the provisioned storage to address this issue.
But the suggested reboot is not an option as it's not allowed when db is in the storage-full state.
Connection to Database works and I have tried to understand and fix the issue, but unfortunately failed. Some information is below:
"2023-01-10 00:50:55.420" "spid53" "The transaction log for database 'msdb' is full due to 'LOG_BACKUP'."
"2023-01-10 00:51:01.290" "Backup" "Error: 18210, Severity: 16, State: 1."
"2023-01-10 00:51:01.290" "Backup" "BackupIoRequest::ReportIoError: write failure on backup device 'D:\rdsdbdata\BACKUP\mas***.database_backup'. Operating system error 112(There is not enough space on the disk.)."
"2023-01-10 00:51:01.290" "Backup" "Error: 3041, Severity: 16, State: 1."
"2023-01-10 00:51:01.290" "Backup" "BACKUP failed to complete the command BACKUP DATABASE mas***. Check the backup application log for detailed messages."
"2023-01-10 00:51:55.030" "spid54" "Error: 9002, Severity: 17, State: 2."
DBCC SQLPERF(LOGSPACE);
Returns
Database Name | Log Size (MB) | Log Space Used (%) | Status |
---|
mas*** | 0,9921875 | 57,0374 | 0 |
tempdb | 1,875 | 52,57813 | 0 |
msdb | 0,9921875 | 100 | 0 |
rdsadmin | 81,99219 | 100,0048 | 0 |
users | 4,367188 | 16,13372 | 0 |
Shrinking the files hasn't been working for me with the command DBCC SHRINKFILE
Pretty much all the commands against msdb
and rdsadmin
databases have failed because of insufficient rights.
Even deleting the database (from the AWS console) fails with a message saying "We're sorry, your request to delete DB instance <name> has failed".
I'm not specialized MSSQL/RDS so any pointers on how to proceed would be highly appreciated!
Thanks!
Thanks for your suggestion. Unfortunately, I'm not sure how to do that as the admin user does not have permission to change rdsadmin database (as far as I know). https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.MasterAccounts.html