# Postgres vacuum failing with "could not resize shared memory segment"

**URL:** <https://forum.ansible.com/t/postgres-vacuum-failing-with-could-not-resize-shared-memory-segment/10292>\
**Category:** Get Help\
**Tags:** awx, kubernetes\
**Created:** [October 15, 2024, 8:27am UTC](https://forum.ansible.com/t/postgres-vacuum-failing-with-could-not-resize-shared-memory-segment/10292 "2024-10-15T08:27:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibhor\_agarwalin](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@vibhor\_agarwalin](https://forum.ansible.com/u/vibhor_agarwalin)\
**Post date:** [October 15, 2024, 8:27am UTC](https://forum.ansible.com/t/postgres-vacuum-failing-with-could-not-resize-shared-memory-segment/10292/1 "2024-10-15T08:27:48Z")

</div>

Hello Folks,

Using AWX 23.9.0 with postgres 13 under k3s.

Vacuum commands are failing as below:  
`ERROR: could not resize shared memory segment "/PostgreSQL.226752521" to 67145696 bytes: No space left on device`

Believe this is a limitation with kubernetes & /dev/shm size cannot be increased.

Googling gave below option:  
`https://stackoverflow.com/questions/43373463/how-to-increase-shm-size-of-a-kubernetes-container-shm-size-equivalent-of-doc`

However, don’t find an option to mount volume in postgres pod.  
`https://ansible.readthedocs.io/projects/awx-operator/en/latest/user-guide/advanced-configuration/custom-volume-and-volume-mount-options.html`

Request thoughts & inputs on how to get going.
