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
The "Backup" method in the "PGO v4 to PGO v5" guide no longer has specific steps for adjusting the permissions of the PGO v4 pgBackRest repo for those using NFS or HostPath storage. This is because the the specific steps provided do not work consistently in all Kubernetes envs (e.g. OpenShift will not allow "chown" to be run when using the "restricted" SCC). Additionally, the specific permissions applied could also vary depending on the specific type of storage being utilized (e.g. NFS or HostPath), as well as how the storage is configured, provisioned, etc. Instead, a warning is now displayed for NFS and HostPath users indicating that they should properly adjust their repo volume permissions prior to creating a PGO v5 cluster using that repo. Please note that the specific wording utilized was pulled from the "Migrate Data Volumes to New Clusters" guide to keep all guidance consistent.
Copy file name to clipboardExpand all lines: docs/content/guides/v4tov5.md
+8-44Lines changed: 8 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,57 +152,21 @@ pgo backup hippo
152
152
153
153
Please ensure that the backup completes. You will see the latest backup appear using the `pgo show backup` command.
154
154
155
-
2. If you are using a pgBackRest repository that is using S3 (or a S3-like storage system) or GCS, or if you are using a PVC-based pgBackRest repository
156
-
that supports `fsGroup` (please see the [Kubernetes Security Context documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for additional details), you can delete the cluster while keeping the backups (using the `--keep-backups` flag) and skip ahead to the [Migrate to PGO v5](#step-2-migrate-to-pgo-v5-1) section:
155
+
2. Next, delete the cluster while keeping backups (using the `--keep-backups` flag):
157
156
158
157
```
159
158
pgo delete cluster hippo --keep-backups
160
159
```
161
160
162
-
Otherwise, if you are using a PVC-based pgBackRest repository that does not support `fsGroup` (for instance, if using hostPath or NFS, as described [here](https://github.com/kubernetes/examples/issues/260)), shut down and continue following the directions in this section:
161
+
{{% notice warning %}}
163
162
164
-
```
165
-
pgo update cluster hippo --shutdown
166
-
```
167
-
168
-
Wait for the shutdown to complete.
169
-
170
-
3. At this point, the pgBackRest dedicated repository host should no longer be running. Scale the dedicated pgBackRest repo host Deployment back up in order to adjust the repository permissions that are required for the PGO v5 migration:
The Deployment is named following the pattern `<clusterName>-backrest-shared-repo`.
177
-
178
-
4\. Identify the name of the pgBackRest repo Pod. You can do so with the following command:
179
-
180
-
```
181
-
kubectl get pod --selector=pg-cluster=hippo,pgo-backrest-repo=true -o name
182
-
```
163
+
Additional steps are required to set proper file permissions when using certain storage options,
164
+
such as NFS and HostPath storage, due to a known issue with how fsGroups are applied. When
165
+
migrating from PGO v4, this will require the user to manually set the group value of the pgBackRest
166
+
repo directory, and all subdirectories, to `26` to match the `postgres` group used in PGO v5.
167
+
Please see [here](https://github.com/kubernetes/examples/issues/260) for more information.
183
168
184
-
For convenience, you can store this value to an environmental variable:
185
-
186
-
```
187
-
export BACKREST_POD_NAME=$(kubectl get pod --selector=pg-cluster=hippo,pgo-backrest-repo=true -o name)
188
-
```
189
-
190
-
5\. The PGO v5 Postgres cluster will need to be able to access the pgBackRest repository data. Exec into the pgBackRest repository host and grant group ownership for the pgBackRest repository to the `postgres` group and group read/write access to the repository:
0 commit comments