diff --git a/product_docs/docs/epas/15/installing/linux_install_details/managing_an_advanced_server_installation/modifying_the_data_directory_location.mdx b/product_docs/docs/epas/15/installing/linux_install_details/managing_an_advanced_server_installation/modifying_the_data_directory_location.mdx index e890265315f..1406e794994 100644 --- a/product_docs/docs/epas/15/installing/linux_install_details/managing_an_advanced_server_installation/modifying_the_data_directory_location.mdx +++ b/product_docs/docs/epas/15/installing/linux_install_details/managing_an_advanced_server_installation/modifying_the_data_directory_location.mdx @@ -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: