Your Amazon RDS instance shows storage-full in the console, or the FreeStorageSpace graph is falling towards zero and the application has started logging errors such as MySQL's ERROR 1114 (HY000): The table '...' is full or PostgreSQL's could not extend file ... No space left on device. AWS calls storage-full a critical status and tells you to fix it immediately by scaling up storage. This guide, for RDS for MySQL and RDS for PostgreSQL, shows how to add space now, what storage autoscaling can and cannot do, how to find what filled the volume, and which alarms warn you next time.
- Fix a
storage-fullinstance by modifying it: raise--allocated-storageby at least 10% with--apply-immediately. You cannot shrink it later. - Since 15 July 2026 there is no fixed six-hour wait between storage changes. The next change can start once storage optimization finishes, up to four changes in a rolling 24 hours. Optimization can take more than 24 hours, so size the first increase for the whole incident.
- Storage autoscaling triggers at 10% free space for five minutes, and it stops at the maximum storage threshold. Set that threshold at least 26% above allocated storage.
- On MySQL, check
binlog retention hours, themysql.general_logandmysql.slow_logtables, temporary tablespaces, and undo growth. On PostgreSQL, check inactive replication slots, temporary files, bloat, andrds.log_retention_period. - Alarm on
FreeStorageSpace, plusBinLogDiskUsage(MySQL) orReplicationSlotDiskUsageandTransactionLogsDiskUsage(PostgreSQL), and subscribe to thelow storageevent category.
Scope and review date: November 2026. This post covers Amazon RDS for MySQL (8.0 and 8.4) and RDS for PostgreSQL (13 and later) DB instances on gp2, gp3, io1, or io2 storage. It does not cover Aurora, whose storage grows on its own. Limits, status names, procedures, and metrics were checked against the Amazon RDS User Guide, the AWS What's New announcement of 15 July 2026, and the MySQL and PostgreSQL manuals on 25 November 2026. The commands were not run in a lab, so rehearse them on a non-production instance first.
What happens when an RDS instance reaches storage-full?
The DB instance status table defines storage-full as "The DB instance has reached its storage capacity allocation" and marks it critical. The engine can no longer extend data files, write temporary files, or write new log records, so writes fail first. What fails after that depends on the engine and on which file needed the next block. You are still billed for the instance while it is in this state.
RDS sends two events in the low storage category before and at that point. RDS-EVENT-0089 fires when the instance has used more than 90% of its allocated storage. RDS-EVENT-0007 reads "Allocated storage has been exhausted. Allocate additional storage to resolve." If nobody subscribed to those events, the first signal is usually the application's error log.
aws rds describe-events \
--source-type db-instance \
--source-identifier orders-db \
--event-categories "low storage" \
--duration 1440Interpretation: this lists the last 24 hours (1,440 minutes) of low storage events for the instance. The timestamp on RDS-EVENT-0089 tells you how long you had between the 90% warning and the outage, which is the lead time your new alarm must beat.
How do I check how much free storage is left?
Start with three facts: the instance status, the allocated size, and whether autoscaling is on. MaxAllocatedStorage is present only when storage autoscaling is enabled.
Reading status, size, and autoscaling limit in one call
Illustrative output: an instance with 500 GiB allocated, gp3 storage, and no autoscaling
Read the third column: None means storage autoscaling was never enabled. A number equal to the second column means it is turned off. Field names are from the DescribeDBInstances API reference.
Then pull the free-space trend from CloudWatch. FreeStorageSpace is reported in bytes in the AWS/RDS namespace and applies to every engine.
aws cloudwatch get-metric-statistics \
--namespace AWS/RDS \
--metric-name FreeStorageSpace \
--dimensions Name=DBInstanceIdentifier,Value=orders-db \
--start-time 2026-07-19T00:00:00Z \
--end-time 2026-07-20T00:00:00Z \
--period 3600 \
--statistics Minimum \
--output tableInterpretation: a steady slope over days points to growth in data, binary logs, or retained WAL. A cliff over an hour or two points to a single event: a bulk load, a large sort spilling to temporary files, an ALTER TABLE that copies the table, or a replication consumer that stopped. The shape of the curve tells you which section below to read first.
How do I add storage to a full RDS instance right now?
Modify the instance and raise its allocated storage. The scaling-up procedure sets three rules. The increase must be at least 10% of the current value, or the request fails. Scaling storage "usually doesn't cause any outage or performance degradation." The instance then enters storage-optimization, and no further storage change is possible until that finishes.
The rule on how often you can change storage changed this year. On 15 July 2026, AWS announced that RDS for MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, and Db2 allow up to four storage modifications per instance in a rolling 24-hour window. A new modification can start as soon as optimization of the previous one completes, without waiting out the old six-hour cool-off. Older runbooks and forum answers that say "wait six hours" are out of date. The binding constraint is now optimization time. The status table warns that optimization "is usually short, but can sometimes take up to and even beyond 24 hours." If your first increase is too small, the second may be a day away.
Recovering an RDS instance from storage-full
Seven steps; steps 2 and 3 happen while writes are failing
-
Confirm the valid storage range
This shows the sizes RDS accepts for this instance class and storage type before you submit anything.
aws rds describe-valid-db-instance-modifications \ --db-instance-identifier orders-db \ --query 'ValidDBInstanceModificationsMessage.Storage' -
Stop whatever is writing hardest
Writes failingPause the bulk load, batch job, or migration. Every gigabyte it writes now comes out of the space you are about to add.
-
Raise allocated storage immediately
Writes failingAdd at least 10%, and size it to cover growth until you have found the cause. Without --apply-immediately the change waits for the maintenance window.
aws rds modify-db-instance \ --db-instance-identifier orders-db \ --allocated-storage 650 \ --apply-immediately -
Watch the status change
The instance leaves storage-full and shows storage-optimization while RDS finishes in the background. The instance stays available during optimization.
aws rds describe-db-instances \ --db-instance-identifier orders-db \ --query 'DBInstances[0].[DBInstanceStatus, StorageOperationStatus, StorageOperationPercentProgress]' -
Turn on autoscaling with a ceiling
A maximum above allocated storage turns autoscaling on. RDS applies this immediately, even without --apply-immediately.
aws rds modify-db-instance \ --db-instance-identifier orders-db \ --max-allocated-storage 1000 -
Find what consumed the space
Use the MySQL or PostgreSQL checks below. Added storage buys time; it does not fix a stuck slot or an unbounded log.
-
Add alarms and event subscriptions
Alarm on free space well above the 90% event, so a person acts before autoscaling and optimization are both needed at once.
Main risk: there is no rollback for step 3. Allocated storage cannot be reduced, so the new size is permanent and billed from now on. The rules are in the scaling-up procedure.
For MySQL and PostgreSQL, RDS stripes storage across four volumes from 400 GiB. AWS documents that a modification from one volume to four does not use Elastic Volumes. RDS copies the data to new volumes, which can take several hours, raise I/O latency, and keep the instance in the modifying state. If you are at 360 GiB and full, going to 396 GiB and going to 500 GiB are very different operations.
Why didn't storage autoscaling prevent it?
Either it was off, or it hit one of its documented limits. The storage autoscaling page says RDS starts a modification only when all three conditions hold: free space is at or below 10% of allocated storage, that has lasted at least five minutes, and the previous storage modification has finished optimizing with fewer than four modifications in the past 24 hours. Each step adds the largest of 10 GiB, 10% of allocated storage, or the growth predicted for the next seven hours from the last hour of FreeStorageSpace.
The common failure modes, all from the same page:
- The ceiling. Autoscaling does not run if the increment would exceed the maximum storage threshold. RDS sends
RDS-EVENT-0225when allocated storage reaches 80% of that threshold, which is why AWS recommends setting it at least 26% above allocated storage. The minimum allowed is 10% above. - Fast loads. AWS states that autoscaling "can't completely prevent storage-full situations for large data loads." If one step is not enough, the instance can stay in
storage-fullfor hours while the step optimizes. - Your own change wins. If you start a storage change while autoscaling is starting one, autoscaling is cancelled.
aws rds describe-db-instances \
--query 'DBInstances[].[DBInstanceIdentifier,Engine,AllocatedStorage,MaxAllocatedStorage]' \
--output tableInterpretation: any row where MaxAllocatedStorage is None has autoscaling off. Any row where it is less than 1.26 times AllocatedStorage will soon trigger RDS-EVENT-0225 and then stop growing. Autoscaling operations are not logged by CloudTrail, so use RDS events to see when they happened.
What is filling storage on RDS for MySQL?
Begin with the biggest tablespaces, then work through the four RDS-specific suspects. INNODB_TABLESPACES reports file sizes directly, so it avoids the cached statistics in INFORMATION_SCHEMA.TABLES.
SELECT NAME,
ROUND(FILE_SIZE / 1024 / 1024 / 1024, 1) AS file_gib,
ROUND(ALLOCATED_SIZE / 1024 / 1024 / 1024, 1) AS allocated_gib
FROM INFORMATION_SCHEMA.INNODB_TABLESPACES
ORDER BY ALLOCATED_SIZE DESC
LIMIT 20;Interpretation: if the top tablespaces add up to most of the used space, the cause is data growth and the fix is capacity or archiving. If they add up to much less than used storage, the gap is binary logs, log tables, temporary files, or undo, covered next.
Binary logs held by binlog retention hours
RDS for MySQL turns on binary logging whenever automated backups are on. By default RDS purges each binary log as soon as possible. The mysql.rds_set_configuration reference says the default for binlog retention hours is NULL, meaning nothing is retained, and the maximum for MySQL is 168 hours (7 days). Teams raise it for Debezium, AWS DMS, or an external replica, and then forget it.
CALL mysql.rds_show_configuration;
SHOW BINARY LOGS;Interpretation: if retention is 168 and SHOW BINARY LOGS lists a week of large files, that is your space. The BinLogDiskUsage CloudWatch metric shows the same total over time.
-- Lower retention to what your slowest CDC consumer actually needs
CALL mysql.rds_set_configuration('binlog retention hours', 24);Interpretation: confirm with the owner of every CDC task first. A consumer that is further behind than the new window loses its position and needs a fresh snapshot. The value 0 is not accepted. The setting survives reboots and failovers. For purge mechanics and sizing, see MySQL binlog retention, rotation, and purge.
General and slow logs written to tables
On RDS for MySQL, log_output defaults to TABLE, so turning on general_log writes every statement into mysql.general_log. The MySQL log overview says RDS rotates log tables only when they use more than 20% of allocated storage or all logs exceed 10 GB (10% and 5 GB once the instance is over 90% full). A general log left on can still take a large share of the volume.
SELECT TABLE_NAME,
ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS size_mib
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'mysql'
AND TABLE_NAME IN ('general_log', 'slow_log',
'general_log_backup', 'slow_log_backup');Interpretation: sizes here are approximate because of cached statistics, but a gigabyte-scale general_log is unmistakable. Set general_log to 0 in the parameter group, then rotate.
CALL mysql.rds_rotate_general_log;
CALL mysql.rds_rotate_general_log;Interpretation: rotation copies the current table to mysql.general_log_backup after deleting any existing backup, then empties the current table. The second call therefore removes the copy made by the first. Export the rows first if you need them. mysql.rds_rotate_slow_log does the same for the slow log.
Temporary tablespaces and undo growth
Large sorts, GROUP BY queries, and online ALTER TABLE operations spill to disk. The MySQL 8.4 temporary tablespace page says session temporary tablespaces are truncated and returned to the pool when the session disconnects. The global temporary tablespace ibtmp1 gives space back only when the server restarts, which on RDS means a reboot.
SELECT ID, SPACE, PATH, SIZE, STATE, PURPOSE
FROM INFORMATION_SCHEMA.INNODB_SESSION_TEMP_TABLESPACES
ORDER BY SIZE DESC
LIMIT 10;
SELECT FILE_NAME, TOTAL_EXTENTS * EXTENT_SIZE AS total_bytes
FROM INFORMATION_SCHEMA.FILES
WHERE TABLESPACE_NAME = 'innodb_temporary';Interpretation: a large session tablespace with STATE = ACTIVE belongs to a live connection; the ID column is the session ID to look up in SHOW PROCESSLIST. Killing that session releases the space. A large ibtmp1 needs a planned reboot.
Undo logs grow when a long-running transaction stops purge from removing old row versions. Truncation of undo tablespaces above innodb_max_undo_log_size (default 1 GiB) can only happen after purge frees them, per the undo tablespaces page.
SELECT NAME, COUNT
FROM INFORMATION_SCHEMA.INNODB_METRICS
WHERE NAME = 'trx_rseg_history_len';
SELECT trx_id, trx_started, trx_mysql_thread_id
FROM INFORMATION_SCHEMA.INNODB_TRX
ORDER BY trx_started
LIMIT 5;Interpretation: a history list length in the millions next to a transaction that started hours ago is the pattern. End that transaction and purge catches up; undo tablespaces then shrink at the next truncation cycle.
What is filling storage on RDS for PostgreSQL?
On PostgreSQL the most common surprise is write-ahead log (WAL) that cannot be removed because a replication slot still needs it. A slot pins WAL from its restart_lsn onwards whether or not anything is reading from it, so a stopped AWS DMS task, a deleted Debezium connector, or an abandoned logical subscription keeps WAL growing until storage runs out.
How an inactive replication slot fills an RDS for PostgreSQL volume
The slot keeps every WAL segment after its restart point; nothing is consuming them
Lead: a slot is a promise to keep WAL. Drop the slot, or bring its consumer back, and PostgreSQL can recycle the WAL at the next checkpoint.
SELECT slot_name,
slot_type,
database,
active,
wal_status,
pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn)) AS retained_wal
FROM pg_replication_slots
ORDER BY pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn) DESC NULLS LAST;Interpretation: a row with active = f and tens or hundreds of gigabytes in retained_wal is the cause. In the pg_replication_slots view, wal_status = extended means the slot is holding WAL beyond max_wal_size, and lost means the slot is no longer usable anyway. The CloudWatch metrics ReplicationSlotDiskUsage and TransactionLogsDiskUsage show the same growth over time, and OldestReplicationSlotLag shows the lag of the slot that is furthest behind.
-- Only after the slot's owner confirms it is abandoned
SELECT pg_drop_replication_slot('dms_orders_slot');Interpretation: dropping a slot is permanent. The DMS task, Debezium connector, or subscription that used it cannot resume and must start again from a new snapshot. If the consumer is merely paused, restarting it is the safer fix. On PostgreSQL 13 and later, max_slot_wal_keep_size caps how much WAL any slot can hold, at the cost of invalidating that slot when it falls too far behind. For the full retention model, see PostgreSQL WAL file retention.
Temporary files from sorts and hashes
When a sort or hash exceeds work_mem, PostgreSQL writes temporary files to the data volume. AWS's temporary files guide shows how to see them per backend with pg_ls_tmpdir(), available on RDS for PostgreSQL 13 and higher.
SELECT replace(left(name, strpos(name, '.') - 1), 'pgsql_tmp', '') AS pid,
count(*),
pg_size_pretty(sum(size)) AS temp_size
FROM pg_ls_tmpdir()
GROUP BY pid
ORDER BY sum(size) DESC;Interpretation: look up each PID in pg_stat_activity to find the query. Cancelling it with pg_cancel_backend(pid) removes its files. AWS also notes that after a crash, RDS for PostgreSQL keeps orphaned temporary files until a restart unless remove_temp_files_after_crash is set to 1 (PostgreSQL 14 and higher). A per-query cap with temp_file_limit stops one report from filling the disk again.
Bloat and retained log files
Dead tuples that autovacuum has not reclaimed make tables and indexes larger than their live data. Find the largest relations first.
SELECT c.relname,
pg_size_pretty(pg_total_relation_size(c.oid)) AS total_size,
s.n_live_tup,
s.n_dead_tup,
s.last_autovacuum
FROM pg_class c
JOIN pg_stat_user_tables s ON s.relid = c.oid
ORDER BY pg_total_relation_size(c.oid) DESC
LIMIT 15;Interpretation: a large table whose n_dead_tup is close to or above n_live_tup is bloated. Plain VACUUM makes that space reusable inside the table but rarely returns it to the volume. VACUUM FULL and pg_repack do return it, but both build a full new copy first, so they need free space roughly equal to the live size of the table. Run them after you add storage, not instead of it. PostgreSQL table bloat and pg_repack covers the procedure.
Engine log files also live on the instance. rds.log_retention_period defaults to 4,320 minutes (3 days) and accepts 1,440 to 10,080 minutes, according to the PostgreSQL logging parameters page. Verbose settings such as log_statement = all, or adding csvlog to log_destination (which more than doubles log storage), can fill gigabytes in three days.
aws rds describe-db-log-files \
--db-instance-identifier orders-db \
--query 'sum(DescribeDBLogFiles[].Size)'Interpretation: the result is the total size in bytes of the log files RDS currently keeps on the instance. The same call works for RDS for MySQL. If it is large, publish logs to CloudWatch Logs and shorten retention or reduce verbosity.
Where the space usually goes, by engine
Switch engines to compare the usual suspects and the metric that shows each one
RDS for MySQL
| Suspect | RDS for MySQL |
|---|---|
| Change log kept for consumers | Binary logs held by binlog retention hours (max 168) |
| Metric to alarm on | BinLogDiskUsage |
| Spill from big queries | Session temporary tablespaces and ibtmp1 |
| Old row versions | Undo growth behind a long transaction |
| Diagnostic logs | mysql.general_log and mysql.slow_log tables |
| Space returned by | Purging logs, ending sessions, OPTIMIZE TABLE |
RDS for PostgreSQL
| Suspect | RDS for PostgreSQL |
|---|---|
| Change log kept for consumers | WAL pinned by inactive or lagging replication slots |
| Metric to alarm on | ReplicationSlotDiskUsage and TransactionLogsDiskUsage |
| Spill from big queries | Temporary files in pgsql_tmp |
| Old row versions | Dead tuples (bloat) not yet vacuumed |
| Diagnostic logs | Log files kept for rds.log_retention_period |
| Space returned by | Dropping slots, cancelling queries, pg_repack |
Lead: in both engines, the fastest-growing consumer is usually a change log kept for a CDC tool. Metric names are from the RDS CloudWatch metrics reference.
Can I shrink RDS storage after the incident?
No, not in place. AWS states that you can't reduce the storage of a DB instance after it has been allocated, and autoscaling never scales down. The autoscaling page lists two ways to get a smaller volume. One is a blue/green deployment whose green instance is created with less storage, then switched over. The other is a new instance with less storage, a data migration, and an endpoint change.
aws rds create-blue-green-deployment \
--blue-green-deployment-name orders-db-shrink \
--source arn:aws:rds:ap-south-1:111122223333:db:orders-db \
--target-allocated-storage 500Interpretation: the blue/green creation guide sets the floor: the green instance must keep at least 20% free space above the storage used on blue, so 300 GiB used means at least 360 GiB. A reduction also triggers a storage configuration upgrade on green, which takes longer to create. On RDS for PostgreSQL versions that use logical replication for blue/green, blue keeps WAL until green replays it, so check free space on blue before you start. The switchover causes a short write outage. Often the cheaper answer is to keep the larger volume and stop the growth that caused the incident.
Which CloudWatch alarms stop it happening again?
The storage-full status description itself recommends CloudWatch alarms on low storage. Alarm on an absolute number of bytes that represents hours of headroom at your normal write rate, not only on a percentage.
aws cloudwatch put-metric-alarm \
--alarm-name orders-db-free-storage-low \
--namespace AWS/RDS \
--metric-name FreeStorageSpace \
--dimensions Name=DBInstanceIdentifier,Value=orders-db \
--statistic Minimum \
--period 300 \
--evaluation-periods 2 \
--threshold 53687091200 \
--comparison-operator LessThanThreshold \
--alarm-actions arn:aws:sns:ap-south-1:111122223333:db-oncallInterpretation: this pages when free space stays under 50 GiB (53,687,091,200 bytes) for two five-minute periods. Pick the threshold from the growth rate you measured earlier. Add a second alarm on BinLogDiskUsage (MySQL) or ReplicationSlotDiskUsage (PostgreSQL) with the same command and a different metric name, because those catch a stuck consumer before free space looks alarming.
aws rds create-event-subscription \
--subscription-name orders-db-storage-events \
--sns-topic-arn arn:aws:sns:ap-south-1:111122223333:db-oncall \
--source-type db-instance \
--source-ids orders-db \
--event-categories "low storage" "notification" "failure"Interpretation: low storage delivers RDS-EVENT-0089 and RDS-EVENT-0007. notification includes RDS-EVENT-0225 (approaching the autoscaling ceiling), and failure includes RDS-EVENT-0224, sent when a pending autoscaling task would reach or exceed the maximum threshold. The event IDs are listed in the RDS event messages reference.
Frequently asked questions
How do I fix an AWS RDS instance in storage-full status?
Modify the instance and raise allocated storage by at least 10% with --apply-immediately. The instance moves to storage-optimization and stays available. Size the increase for the whole incident, because the next storage change cannot start until optimization finishes, which can take more than 24 hours. Then find the consumer: binary logs or log tables on MySQL, replication slots or temporary files on PostgreSQL.
Do I still have to wait six hours between RDS storage changes?
No. Since AWS's 15 July 2026 update, RDS for MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, and Db2 allow a new storage modification as soon as optimization of the previous one completes, up to four in a rolling 24-hour window. The waiting time is now however long storage optimization takes, which is usually short but can exceed a day.
Can I reduce allocated storage on RDS after increasing it?
Not in place. RDS cannot reduce allocated storage, and storage autoscaling only scales up. To get a smaller volume, create a blue/green deployment with less storage on the green instance and switch over, or create a new smaller instance and migrate the data. Both need a short write outage at cutover.
Why didn't RDS storage autoscaling stop my instance from filling up?
Autoscaling only acts when free space is at or below 10% for five minutes, and only after the previous change has finished optimizing. It also stops at the maximum storage threshold you set. A fast bulk load can outrun it, and AWS says it cannot fully prevent storage-full situations for large data loads. Check that the threshold is at least 26% above allocated storage.
Key takeaways
- Recover first: raise allocated storage by at least 10% with
--apply-immediately, and size it generously, because optimization of that change can block the next one for hours. - The fixed six-hour wait between storage changes ended on 15 July 2026; the limits now are optimization time and four changes per rolling 24 hours.
- Allocated storage cannot be reduced, so stopping the growth matters more than adding space.
- MySQL suspects:
binlog retention hours, table-based general logs, temporary tablespaces, and undo behind long transactions. PostgreSQL suspects: inactive replication slots, temporary files, bloat, and log retention. - Alarm on absolute
FreeStorageSpace, on the engine's change-log metric, and subscribe tolow storage,notification, andfailureevents.
Get help with RDS storage incidents from JusDB
JusDB's Amazon RDS for MySQL team and Amazon RDS for PostgreSQL team can review your instances for the storage risks in this guide: retention settings, replication slots, autoscaling ceilings, and alarms. We can also help plan capacity or a blue/green move to a right-sized volume.
Bring your instance list, recent FreeStorageSpace history, and the CDC tools that read from each database. Your team approves every production change.
Related reading
- AWS RDS High CPU Usage: Find the Cause on MySQL and PostgreSQL
- How to Migrate MySQL to AWS RDS: Methods, Pre-Flight Checks, and Cutover
- MySQL binlog retention, rotation, and purge: production guide
- PostgreSQL WAL file retention: wal_keep_size and replication slots
- PostgreSQL table bloat and pg_repack
- Amazon RDS documentation: managing capacity automatically with storage autoscaling