diff --git a/README.md b/README.md index 4ca4850..7312d30 100644 --- a/README.md +++ b/README.md @@ -170,9 +170,9 @@ Prepare directories for Persistent Volumes defined in `base/pv.yaml`. These dire ```bash sudo mkdir -p /data/postgres-15/data sudo mkdir -p /data/projects -sudo chmod 700 /data/postgres-15/data sudo chown 26:0 /data/postgres-15/data sudo chown 1000:0 /data/projects +sudo chmod 700 /data/postgres-15/data ``` ### Deploy AWX diff --git a/backup/README.md b/backup/README.md index 018701f..5fc3493 100644 --- a/backup/README.md +++ b/backup/README.md @@ -23,8 +23,8 @@ Prepare directories for Persistent Volumes to store backup files that defined in ```bash sudo mkdir -p /data/backup -sudo chmod 700 /data/backup sudo chown 26:0 /data/backup +sudo chmod 700 /data/backup ``` Then deploy Persistent Volume and Persistent Volume Claim. diff --git a/containergroup/README.md b/containergroup/README.md index 597c13b..ffc1649 100644 --- a/containergroup/README.md +++ b/containergroup/README.md @@ -35,8 +35,8 @@ Prepare directories for Persistent Volumes defined in `containergroup/case1/pv.y ```bash sudo mkdir -p /data/work -sudo chmod 700 /data/work sudo chown 1000:0 /data/work +sudo chmod 700 /data/work ``` Create PV and PVC. @@ -188,8 +188,8 @@ Prepare directories for Persistent Volumes defined in `containergroup/case2/pv.y ```bash sudo mkdir -p /data/demo -sudo chmod 700 /data/demo sudo chown 1000:0 /data/demo +sudo chmod 700 /data/demo ``` Create Namespace, PV, and PVC. diff --git a/galaxy/README.md b/galaxy/README.md index 3e2e313..f3ff66d 100644 --- a/galaxy/README.md +++ b/galaxy/README.md @@ -123,8 +123,8 @@ Prepare directories for Persistent Volumes defined in `galaxy/galaxy/pv.yaml`. sudo mkdir -p /data/galaxy/postgres-13 sudo mkdir -p /data/galaxy/redis sudo mkdir -p /data/galaxy/file -sudo chmod 700 /data/galaxy/postgres-13 sudo chown 1000:0 /data/galaxy/file +sudo chmod 700 /data/galaxy/postgres-13 ``` ### Deploy Galaxy NG diff --git a/restore/README.md b/restore/README.md index 67fa9fa..bc6bd4e 100644 --- a/restore/README.md +++ b/restore/README.md @@ -41,9 +41,9 @@ Then prepare directories for your PVs. `/data/projects` is required if you are r ```bash sudo mkdir -p /data/postgres-15/data sudo mkdir -p /data/projects -sudo chmod 700 /data/postgres-15/data sudo chown 26:0 /data/postgres-15/data sudo chown 1000:0 /data/projects +sudo chmod 700 /data/postgres-15/data ``` Then deploy PV and PVC. It is recommended that making the size of PVs and PVCs same as the PVs which your AWX used when the backup was taken. diff --git a/rulebooks/README.md b/rulebooks/README.md index 21c0b21..95546f3 100644 --- a/rulebooks/README.md +++ b/rulebooks/README.md @@ -117,8 +117,8 @@ Prepare directories for Persistent Volumes defined in `base/pv.yaml`. This direc ```bash sudo mkdir -p /data/eda/postgres-13/data -sudo chmod 700 /data/eda/postgres-13/data sudo chown 26:0 /data/eda/postgres-13/data +sudo chmod 700 /data/eda/postgres-13/data ``` ### Deploy EDA Server diff --git a/tips/troubleshooting.md b/tips/troubleshooting.md index d2769d5..491da92 100644 --- a/tips/troubleshooting.md +++ b/tips/troubleshooting.md @@ -310,18 +310,18 @@ drwxr-xr-x. 2 root root 18 Aug 20 10:09 /data/postgres-13 drwxr-xr-x. 3 root root 20 Aug 20 10:09 /data/postgres-13/data ``` -In my environment, `755` and `root:root` (`0:0`) works correctly. So you can try following commands. +For example, `755` and `root:root` (`0:0`) should work. So you can try following commands. ```bash -sudo chmod 755 /data/postgres-13 /data/postgres-13/data sudo chown 0:0 /data/postgres-13 /data/postgres-13/data +sudo chmod 755 /data/postgres-13 /data/postgres-13/data ``` Or, you can also try `999:0` as owner/group for the directory. `999` is [the UID of the `postgres` user which used in the container](https://github.com/docker-library/postgres/blob/master/13/bullseye/Dockerfile#L13). ```bash -sudo chmod 755 /data/postgres-13 /data/postgres-13/data sudo chown 999:0 /data/postgres-13 /data/postgres-13/data +sudo chmod 755 /data/postgres-13 /data/postgres-13/data ``` For the PostgreSQL 15 that deployed by **AWX Operator 2.13.0 or later**, if you followed my guide, it would be `/data/postgres-15`. There is additional `data` directory created by K3s under `/data/postgres-15`. @@ -332,11 +332,11 @@ drwxr-xr-x. 2 root root 18 Aug 20 10:09 /data/postgres-15 drwxr-xr-x. 3 26 root 20 Aug 20 10:09 /data/postgres-15/data ``` -In my environment, `700` and `26:0` works correctly. So you can try following commands. `26` is [the UID of the user which used in the container](https://github.com/sclorg/postgresql-container/blob/master/15/Dockerfile.c9s#L86). +For example, `700` and `26:0` should work. So you can try following commands. `26` is [the UID of the user which used in the container](https://github.com/sclorg/postgresql-container/blob/master/15/Dockerfile.c9s#L86). ```bash -sudo chmod 700 /data/postgres-15 /data/postgres-15/data sudo chown 26:0 /data/postgres-15 /data/postgres-15/data +sudo chmod 700 /data/postgres-15 /data/postgres-15/data ``` ## Troubles during Daily Use diff --git a/tips/upgrade-operator.md b/tips/upgrade-operator.md index 95b8e89..735f3fb 100644 --- a/tips/upgrade-operator.md +++ b/tips/upgrade-operator.md @@ -39,8 +39,8 @@ If you are using AWX Operator `0.14.0` or later and want to upgrade to newer ver > ```bash > # Required only when upgrading from 2.12.2 or earlier to 2.13.1 or later > sudo mkdir -p /data/postgres-15/data -> sudo chmod 700 /data/postgres-15/data > sudo chown 26:0 /data/postgres-15/data +> sudo chmod 700 /data/postgres-15/data > cat < pv-postgres-15.yaml > --- > apiVersion: v1