Select a documentation version: <button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">15.5.2</button>

- [Current (18.4.0)](https://docs.cloud.google.com/alloydb/omni/containers/current/docs/configure-omni.md.txt)
- [18.4.0](https://docs.cloud.google.com/alloydb/omni/containers/18.4.0/docs/configure-omni.md.txt)
- [18.3.0](https://docs.cloud.google.com/alloydb/omni/containers/18.3.0/docs/configure-omni.md.txt)
- [18.1.0](https://docs.cloud.google.com/alloydb/omni/containers/18.1.0/docs/configure-omni.md.txt)
- [17.10.0](https://docs.cloud.google.com/alloydb/omni/containers/17.10.0/docs/configure-omni.md.txt)
- [17.9.0](https://docs.cloud.google.com/alloydb/omni/containers/17.9.0/docs/configure-omni.md.txt)
- [17.7.0](https://docs.cloud.google.com/alloydb/omni/containers/17.7.0/docs/configure-omni.md.txt)
- [17.5.0](https://docs.cloud.google.com/alloydb/omni/containers/17.5.0/docs/configure-omni.md.txt)
- [16.14.0](https://docs.cloud.google.com/alloydb/omni/containers/16.14.0/docs/configure-omni.md.txt)
- [16.13.0](https://docs.cloud.google.com/alloydb/omni/containers/16.13.0/docs/configure-omni.md.txt)
- [16.11.0](https://docs.cloud.google.com/alloydb/omni/containers/16.11.0/docs/configure-omni.md.txt)
- [16.9.0](https://docs.cloud.google.com/alloydb/omni/containers/16.9.0/docs/configure-omni.md.txt)
- [16.8.0](https://docs.cloud.google.com/alloydb/omni/containers/16.8.0/docs/configure-omni.md.txt)
- [16.3.0](https://docs.cloud.google.com/alloydb/omni/containers/16.3.0/docs/configure-omni.md.txt)
- [15.18.0](https://docs.cloud.google.com/alloydb/omni/containers/15.18.0/docs/configure-omni.md.txt)
- [15.17.0](https://docs.cloud.google.com/alloydb/omni/containers/15.17.0/docs/configure-omni.md.txt)
- [15.15.0](https://docs.cloud.google.com/alloydb/omni/containers/15.15.0/docs/configure-omni.md.txt)
- [15.13.0](https://docs.cloud.google.com/alloydb/omni/containers/15.13.0/docs/configure-omni.md.txt)
- [15.12.0](https://docs.cloud.google.com/alloydb/omni/containers/15.12.0/docs/configure-omni.md.txt)
- [15.7.1](https://docs.cloud.google.com/alloydb/omni/containers/15.7.1/docs/configure-omni.md.txt)
- [15.7.0](https://docs.cloud.google.com/alloydb/omni/containers/15.7.0/docs/configure-omni.md.txt)
- [15.5.5](https://docs.cloud.google.com/alloydb/omni/containers/15.5.5/docs/configure-omni.md.txt)
- [15.5.4](https://docs.cloud.google.com/alloydb/omni/containers/15.5.4/docs/configure-omni.md.txt)
- [15.5.2](https://docs.cloud.google.com/alloydb/omni/containers/15.5.2/docs/configure-omni.md.txt)

<br />

This page shows how to configure AlloyDB Omni after you have [installed it](https://docs.cloud.google.com/alloydb/omni/containers/15.5.2/docs/install.md.txt).

<br />

#### Change your data directory location

AlloyDB Omni has a default configuration file named
`dataplane.conf` that's present in the `/var/alloydb/config` directory.
To change your server's data directory location, update the `DATADIR_PATH` variable in the `dataplane.conf` file.

To update the `DATADIR_PATH` variable in `dataplane.conf`, run the
following command:

```bash
sudo sed -i "s|^\(DATADIR_PATH=\).*|\1DATA_DIRECTORY|" /var/alloydb/config/dataplane.conf
```

Replace <var translate="no">`DATA_DIRECTORY`</var> with the full
file system path to the existing directory that you want to contain
your AlloyDB Omni installation.

Alternately, use a text editor to open `dataplane.conf` and update the
value of the `DATADIR_PATH` directive.

> [!NOTE]
> **Note:** Set the value of `DATADIR_PATH` to the directory that contains the `data` subdirectory---for example, `$HOME/alloydb` and not `$HOME/alloydb/data`.

#### Configure other server options

The `/var/alloydb/config` directory also contains the following two standard
PostgreSQL configuration files:

- [`postgresql.conf`](https://www.postgresql.org/docs/current/config-setting.html)
- [`pg_hba.conf`](https://www.postgresql.org/docs/15/auth-pg-hba-conf.html)

The AlloyDB Omni installer populates both of these files with
default values to get you started. You can update both files in whatever
way is appropriate for your own needs.

> [!CAUTION]
> **Caution:** AlloyDB Omni copies these files into your data directory for its own runtime use. Edit only the files in `/var/alloydb/config`, and not the copies in your data directory. Otherwise, any changes you make to those files risk being overwritten.
>
> ## What's next
>
> - [Run and connect to AlloyDB Omni](https://docs.cloud.google.com/alloydb/omni/containers/15.5.2/docs/run-connect.md.txt).
>
> - [Manage AlloyDB Omni](https://docs.cloud.google.com/alloydb/omni/containers/15.5.2/docs/manage.md.txt).
>
> - [Create a read-only replica](https://docs.cloud.google.com/alloydb/omni/containers/15.5.2/docs/set-up-read-replica.md.txt).
>