Search code examples
amazon-web-servicesamazon-aurora

Aurora PostgreSQL engine: no space left on device


I am working with the AWS Aurora PostgreSQL 10.4 engine. I am trying to cluster table ... using index and getting an error like

could not write block .... of temporary file: no space left on device

If I were managing my own PostgreSQL instance I would be looking at the space available on individual volumes with df. (See also: I get an error "could not write block .... of temporary file no space left on device ..." using postgresql)

But with Aurora, AWS should be managing the storage and automatically expanding it on demand. So I'm wondering how I would go about fixing this condition if I'm not managing the storage myself. I'm guessing that that the PG engine's temp storage is separate from the Aurora-managed virtualized storage layer, but not sure how to change it.


Solution

  • Temp space uses the local “ephemeral” volume on the instance. Currently the only way to increase that space is to move to a larger instance size.