You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted 2023-07-19T13:20:31.062438835Z The files belonging to this database system will be owned by user "postgres". 2023-07-19T13:20:31.062519442Z This user must also own the server process. 2023-07-19T13:20:31.062530644Z 2023-07-19T13:20:31.062536366Z The database cluster will be initialized with locale "en_US.utf8". 2023-07-19T13:20:31.062543682Z The default database encoding has accordingly been set to "UTF8". 2023-07-19T13:20:31.062548451Z The default text search configuration will be set to "english". 2023-07-19T13:20:31.062572944Z 2023-07-19T13:20:31.062578018Z Data page checksums are disabled. 2023-07-19T13:20:31.062592916Z 2023-07-19T13:20:31.081540211Z initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted 2023-07-19T13:20:31.083994705Z fixing permissions on existing directory /var/lib/postgresql/data ...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to mount postgres volume in space?
could someone help me with this
`apiVersion: v1
kind: Namespace
metadata:
name: volume-teste
apiVersion: com.ie.ibm.hpsys/v1alpha1
kind: Dataset
metadata:
name: test-dataset
namespace: volume-teste
spec:
local:
type: "COS"
accessKeyID: "xxxOxxxxxxxxxxx"
secretAccessKey: "xxxxxmxxxxxxxxxxxxxxxxxxxxcxxxxx"
endpoint: "https://xxxxxxxxxxxxx"
bucket: "volume-teste"
apiVersion: v1
kind: Pod
metadata:
name: postgres
namespace: volume-teste
spec:
containers:
- name: postgres
image: "postgres:13"
env:
- name: POSTGRES_USER
value: "xxxxxxxx"
- name: POSTGRES_PASSWORD
value: "xxxxxxxx"
volumeMounts:
- mountPath: "/var/lib/postgresql/data"
name: "test-dataset"
volumes:
- name: "test-dataset"
persistentVolumeClaim:
claimName: "test-dataset"`
Output:
![image](https://private-user-images.githubusercontent.com/84182592/254590638-338b6752-ec72-4e05-975d-da08989ef7eb.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyOTI0MjUsIm5iZiI6MTcxOTI5MjEyNSwicGF0aCI6Ii84NDE4MjU5Mi8yNTQ1OTA2MzgtMzM4YjY3NTItZWM3Mi00ZTA1LTk3NWQtZGEwODk4OWVmN2ViLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDA1MDg0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1YTdhZjdlNzcyMWE1NTA0ODE3MjhhZTcyYjg2NWIxNDY4NzEzOGQ2MGM1N2RhNzQzY2Y3ZWRiNDZkMWI0YmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HMQ-SUf6v0iX4SOIDSuIty8ozn20BJlEJ-7nMf1BrKg)
chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted 2023-07-19T13:20:31.062438835Z The files belonging to this database system will be owned by user "postgres". 2023-07-19T13:20:31.062519442Z This user must also own the server process. 2023-07-19T13:20:31.062530644Z 2023-07-19T13:20:31.062536366Z The database cluster will be initialized with locale "en_US.utf8". 2023-07-19T13:20:31.062543682Z The default database encoding has accordingly been set to "UTF8". 2023-07-19T13:20:31.062548451Z The default text search configuration will be set to "english". 2023-07-19T13:20:31.062572944Z 2023-07-19T13:20:31.062578018Z Data page checksums are disabled. 2023-07-19T13:20:31.062592916Z 2023-07-19T13:20:31.081540211Z initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted 2023-07-19T13:20:31.083994705Z fixing permissions on existing directory /var/lib/postgresql/data ...
could someone help me with this please
Beta Was this translation helpful? Give feedback.
All reactions