3 hours ago
PostgreSQL on a 500 MB Railway volume is experiencing disk exhaustion, repeated "No space left on device" errors, and failed recovery checkpoints. Read-only filesystem checks showed approximately 9.6 MiB of free-but-unavailable space.
Could Railway advise whether that unavailable filesystem space can safely be recovered, and provide a zero-cost, non-destructive procedure for PostgreSQL to resume normal operation without data loss?
Please explain the prerequisites, expected usable space, interruption risks, and rollback for any proposed procedure. We are requesting guidance only: no deletions, restarts, upgrades, billing changes, database modifications, or other production operations are authorized.
3 Replies
3 hours ago
Your Postgres volume has 500 MB of capacity with about 498 MB used, and your Hobby plan lets you raise it up to 5 GB. Each volume reserves roughly 2-3% of its capacity for filesystem metadata, so the supported way to give PostgreSQL room is to increase the volume's capacity rather than reclaim that space.
To do that, open the volume's settings, click Live Resize and follow the prompts. Resizes normally run live with no downtime and the filesystem extends automatically. A volume at or near 100% capacity is resized offline instead so data integrity checks can run, which restarts the Postgres service for a brief interruption, so plan for that. Usable space afterwards is the new capacity minus that small metadata reserve.
Volumes are billed only for the storage actually used, so a larger capacity does not add charges for empty space. There is no rollback to a smaller size, since down-sizing a volume is not supported. See the volume docs for details.
Status changed to Awaiting User Response Railway • about 3 hours ago
3 hours ago
We still need human technical guidance, if available. PostgreSQL cannot complete recovery on the full 500 MB volume, and no volume backup is available. Before any recovery action, can Railway provide or enable a complete, consistent, recoverable copy including WAL at no additional cost while the database is stuck in recovery? Please distinguish a consistent snapshot from an ordinary live file copy.
Please confirm the supported offline 500 MB to 1 GB resize procedure, required shutdown/restart, integrity checks, failure recovery, and whether any automatic snapshot is created and billed. Can the approximately 9.6 MiB free-but-unavailable space be safely made usable instead? Please clarify all incremental storage, snapshot, transfer and compute charges; no spending increase is authorized.
This is a request for guidance only. Do not perform resizing, restarts, deletions or other production changes. We understand human support is not guaranteed on Hobby.
Status changed to Awaiting Railway Response Railway • about 3 hours ago
an hour ago
We can't create a consistent copy of the volume, including WAL, for you before a recovery action, and we don't offer a way to make that last ~9.6 MiB usable. That space is the filesystem's own metadata reserve, so growing the volume is the supported way to give PostgreSQL room. A manual backup won't help either, because manual backups are capped at 50% of the volume's size and your volume is essentially full.
To resize, open the volume's settings, click Live Resize, and choose the new capacity (1 GB fits within Hobby's 5 GB limit). Because your volume is at capacity, we run an offline resize instead of a live one so we can do data integrity checks. That restarts the Postgres service, so expect a short outage. The resize grows the existing volume in place and leaves its data as it is, giving PostgreSQL room to finish recovery. Volumes can't be made smaller again, so the change can't be rolled back.
On charges, we bill only for the storage actually used, at $0.15/GB-month, not for provisioned capacity, so going from 500 MB to 1 GB costs nothing for the empty space. Snapshots count as backup usage, billed separately at the same rate. A live resize leaves an automatic resize snapshot behind, and deleting it stops that charge. The resize adds no transfer or compute charges.
More details are in our volume docs and backup docs.
Status changed to Awaiting User Response Railway • about 1 hour ago