Skip to content

Commit

Permalink
Merge pull request #4881 from EnterpriseDB/content/docs/epas/15/db_2501
Browse files Browse the repository at this point in the history
EPAS 15 - Updated, modifying the data directory location as per DB-2501
  • Loading branch information
nidhibhammar authored Oct 5, 2023
2 parents 481c62e + 4f200e6 commit 8a89417
Showing 1 changed file with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,17 @@ By default, data files reside under the `/var/lib/edb/as15/data` directory. To u
cp /usr/lib/systemd/system/edb-as-15.service /etc/systemd/system/
```

- After copying the unit file to the new location, create the service file `/etc/systemd/system/edb-as-15.service`.

- In the `/lib/systemd/system/edb-as-15.service` file, update the following values with the new location of the data directory:
- In the `/etc/systemd/system/edb-as-15.service` file, update the following values with the new location of the data directory:

```text
Environment=PGDATA=/var/lib/edb/as15/data
PIDFile=/var/lib/edb/as15/data/postmaster.pid
```

- Delete the content of the `/etc/systemd/system/edb-as-15.service` file except the following line:

```text
.include /lib/systemd/system/edb-as-15.service
```

- Initialize the cluster at the new location:
- Go to bin directory and initialize the cluster with the new location:

```text
PGSETUP_INITDB_OPTIONS="-E UTF-8" /usr/edb/as15/bin/edb-as-15-setup initdb
```

- Reload systemd, updating the modified service scripts:

```text
systemctl daemon-reload
./edb-as-15-setup initdb
```

- Start the EDB Postgres Advanced Server service:
Expand Down

0 comments on commit 8a89417

Please sign in to comment.