content/operate/rs/7.22/installing-upgrading/install/customize-install-directories.md
When you install Redis Enterprise Software on Red Hat Enterprise Linux, you can customize the installation directories.
The files are installed in the redislabs directory located in the path that you specify.
When you install with custom directories, the installation does not run as an RPM file.
If a redislabs directory already exists in the path that you specify, the installation fails.
All nodes in a cluster must be installed with the same file locations.
Custom installation directories are not supported for databases using Auto Tiering.
Configure different mount points for data and log directories.
You can specify these file locations:
| Files | Installer flag | Example parameter | Example file location |
|---|---|---|---|
| Binaries files | --install-dir | /opt | /opt/redislabs |
| Configuration files | --config-dir | /etc/opt | /etc/opt/redislabs |
| Data and log files | --var-dir | /var/opt | /var/opt/redislabs |
These files are not in the custom directories:
OS files
Installation reference files
To specify directories during [installation]({{< relref "/operate/rs/7.22/installing-upgrading/install/install-on-linux" >}}), include installer flags as [command-line options]({{< relref "/operate/rs/7.22/installing-upgrading/install/install-script" >}}) when you run the install.sh script. For example:
sudo ./install.sh --install-dir <path> --config-dir <path> --var-dir <path>
To configure different mount points for data and log directories, use symbolic links:
Create a symbolic link for the data directory:
ln -s /var/opt/redislabs/data </path/to/data/mount/point>
Create a symbolic link for the log directory:
ln -s /var/opt/redislabs/log </path/to/log/mount/point>
When you install Redis Enterprise Software to custom directories, you can specify custom storage paths for persistent and ephemeral storage during [cluster setup]({{< relref "/operate/rs/7.22/clusters/new-cluster-setup" >}}) or when [adding nodes]({{< relref "/operate/rs/7.22/clusters/add-node" >}}).
Specify the custom file location with the --var-dir option when you install Redis Enterprise Software:
sudo ./install.sh --var-dir <path>
Grant the redislabs user access to the custom directories:
$ sudo chown -R redislabs:redislabs /path/to/custom/storage
$ sudo chmod -R 755 /path/to/custom/storage
Confirm the storage path is properly mounted:
$ df -h /path/to/custom/storage
$ mount | grep /path/to/custom/storage
Verify the directory exists and is accessible:
ls -l /path/to/custom/storage
For more information about storage requirements, see [Persistent and ephemeral node storage]({{< relref "/operate/rs/7.22/installing-upgrading/install/plan-deployment/persistent-ephemeral-storage" >}}).
Several Redis Enterprise Software installation reference files are installed to the directory /etc/opt/redislabs/ even if you use custom installation directories.
As a workaround to install Redis Enterprise Software without using any root directories, do the following before installing Redis Enterprise Software:
Create all custom, non-root directories you want to use with Redis Enterprise Software.
Mount /etc/opt/redislabs to one of the custom, non-root directories.