Error "mkdir cannot create directory /var/lib/pgsql/data/userdata : Permission denied" when deploying Postgresql with persistent storage on Openshift Container Platform 3

Solution Verified - Updated -


Unable to deploy the postgreSQL (persistent) template from the Openshift catalog. Getting the following error:

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

At Events log:

Unable to mount volumes for pod "postgresql-1-aaaa": timeout expired waiting for volumes to attach/mount for pod "postgresql-1-aaaa". list of unattached/unmounted volumes=[postgresql-data]


Red Hat Openshift Container Platform 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In