# Cloud SQL instance storage full — instance becomes read-only / suspended

**Code:** `storage full` · **Category:** Google Cloud / Firebase · **Seen on:** Google Cloud, PostgreSQL, MySQL

The Cloud SQL disk reached its limit, so writes fail and the instance can enter a read-only state.

## Meaning

Enable automatic storage increase, manually increase the disk (it can't be shrunk), find large tables/binlogs/temp data, and clean up (purge binary logs, drop unused data). PostgreSQL WAL accumulating from a stuck replication slot is a common cause.

## Common causes

- Auto storage increase disabled
- Large tables or binary logs/WAL
- Replication slot not consumed (PostgreSQL)
- Temp files from big queries
- Point-in-time recovery logs

## Quick fix

1. Increase storage and enable automatic increase
2. Drop/archive large data and purge logs
3. Drop abandoned replication slots

## Detailed fix by platform

### Shell

1. `gcloud sql instances patch INSTANCE --storage-size=200GB --storage-auto-increase`

## How to diagnose

1. **Disk** — 100%?
2. **Auto increase** — Enabled?
3. **Slot/binlog** — Growing?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/gcp/cloudsql-instance-storage-full-read-only)
