Skip to main content

How to move Phoenix logs and Phoenix configuration directory to a custom location

Updated over a week ago

Overview

This article describes the steps to move the Phoenix log and configuration directories from their default location in Windows and Linux servers to a custom location. The default location in Windows is C:\ProgramData\Phoenix while the default location in Linux is var/Phoenix (Phoenix Configuration file) and /var/log/Phoenix (Logs). Use these steps when the default drive where Phoenix is installed does not have sufficient disk space. Druva recommends checking the system requirements before you install Phoenix on Windows or Linux servers. We use junction points in Windows and symbolic links in Linux to move these files in Linux.

For information on prerequisites and configuration details for Phoenix, refer:

Procedure for Windows servers

Prerequisite:Stop all the Phoenix processes running on the server.

  1. Open Services console(services.msc) and stop Agent Client Service.

    Agent Version 6.x.x: Hybrid Workloads Agent Client Service.

    ​​Agent Version 7.x.x: Druva-EnterpriseWorkloads Service

  2. Copy the Phoenix directory

    Agent Version 6.x.x: C:\ProgramData\Phoenix to the target location, for example D:\Phoenix Agent\.

    Agent Version 7.x.x: C:\ProgramData\Druva\EnterpriseWorkloads\ to the target location, for example D:\Phoenix Agent\.

  3. You can choose any location which has sufficient space to store data.

  4. Rename the Phoenix directory at the default location

    Agent Version 6.x.x: C:\ProgramData\Phoenix to C:\ProgramData\Phoenix.Moved.

    Agent Version 7.x.x: C:\ProgramData\Druva\EnterpriseWorkloads\ to C:\ProgramData\Druva\EnterpriseWorkloads.Moved.

  5. Open the command prompt as administrator and run command:

    Agent Version 6.x.x: C:\Users\Administrator>mklink /j "C:\ProgramData\Phoenix" "D:\Phoenix Agent\Phoenix"

    This creates a junction point under C:\ProgramData\Phoenix.

    Agent Version 7.x.x: C:\Users\Administrator>mklink /j "C:\ProgramData\Druva\EnterpriseWorkloads" "D:\Phoenix Agent\Druva\EnterpriseWorkloads"

  6. Start Phoenix agent services and verify whether all the services are running correctly.


📝 Note
After verifying all the Phoenix agent services are running perfectly, you can delete the Phoenix directory from C:\ProgramData\Phoenix.Moved.


Procedure for Linux servers

Prerequisite:Stop all the Phoenix processes running on the server.

  1. Stop Agent Client Service.

    Agent Version 6.x.x: service Phoenix stop

    Agent Version 7.x.x: service Druva-EnterpriseWorkloads stop

  2. Copy the Phoenix directory

    Agent Version 6.x.x: cp -R /etc/Phoenix /abc/xyz/Phoenix to the target location, for example /mnt/Phoenix.

    Agent Version 7.x.x: cp -R /etc/Druva/EnterpriseWorkloads/ to the target location, for example /mnt/Druva.

  3. You can choose any location which has sufficient space to store data.

  4. Rename the Phoenix directory at the default location

    Agent Version 6.x.x: mv /etc/Phoenix to /etc/Phoenix.Moved.

    Agent Version 7.x.x: mv /etc/Druva/EnterpriseWorkloads/ to /etc/Druva/EnterpriseWorkloads.Moved.

  5. Create Symlink:

    Agent Version 6.x.x: ln -s /abc/xyz/Phoenix /etc/Phoenix

    This creates a junction point under /etc/Phoenix.

    Agent Version 7.x.x: ln -s /abc/xyz/Phoenix /etc/Druva/EnterpriseWorkloads

  6. Start Phoenix agent services and verify whether all the services are running correctly.

Did this answer your question?