Postgres volume mount has incorrect permissions

Solution In Progress - Updated -

Issue

When attempting to start the Postgres Service, the PV (Persistent Volume) is created and mounted correctly into the pod, however the database fails to start with the following error:

mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied

Environment

OpenShift Container Platform 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content