Skip to main content
Druva Documentation

How to enable or disable debug logging for DRaaS

This article applies to:

  • Product edition: Phoenix

Overview

This article describes the procedure to enable and disable debug logging to troubleshoot the DRaaS issues.

Enable and disable debug logging for DRaaS

Enable debug logging

  1. Login into the AWS proxy with user name "centos" and press enter when prompted for a password.
    1.  Go to the AWS Console > EC2 Console.
    2. From the IPV4 Public IP field, copy the proxy server IP.
    3. From the Key pair name field, see the key pair associated with the proxy server.
    4. Using an SSH client (for example, Putty), connect to the proxy server. 
    5. Specify the hostname or IP. 
    6. Provide the key pair you had associated with the proxy server.
    7. Login with default username centos.
  2. Elevate to root by running the following command:

    sudo su -
  3. Open the terminal with admin rights and stop the Phoenix Agent service using the following command:

    /etc/init.d/Phoenix stop
  4. Verify if any Phoenix processes are still running. If any process is still found running, kill the process with the following command:

    ps -ef| grep -i Phoenix
    Kill -9 <process id>

     
  5. Browse to /etc/Phoenix/DR/Phoenix.cfg and take backup of the Phoenix.cfg file.
  6. Open Phoenix.cfg in VI editor and change value of DEBUGLEVEL = 0 to DEBUGLEVEL = 9.
  7. Save-Quit the changes.
  8. Start Phoenix Agent Client Service and initiate a backup/restore job.

    /etc/init.d/Phoenix start

Disable debug logging

  1. Log in to the AWS backup proxy.(Putty).
  2. Open a terminal with Admin rights and stop the Phoenix Agent service using the following command:

    /etc/init.d/Phoenix stop
  3. Verify if any Phoenix processes are still running. If any process is still found running, kill the process with the following command:

    ps -ef| grep -i Phoenix
    Kill -9 <process id>
  4. Browse to /etc/Phoenix/DR/Phoenix.cfg and take backup of the Phoenix.cfg file.
  5. Open Phoenix.cfg in VI editor and change value of DEBUGLEVEL = 9 back to DEBUGLEVEL = 0.
  6. Save-Quit the changes.
  7. Start Phoenix Agent Client Service and initiate a backup/restore job.

    /etc/init.d/Phoenix start

Upload files

After the job finishes or terminates, zip and upload following files to the case:

  • Zip of /var/log/Phoenix from the AWS proxy.
  • System logs from the AWS proxy /var/log/messages.
  • Job logs of the failed or terminated DRaaS job.
  • Output of VMImportChecker script (optional).
  1. Create a directory in /home using the following command:
    mkdir /home/DruvaLogs
  2. Copy the log files using the following command:
    cp -r /var/log/Phoenix /home/DruvaLogs
  3. Change the permission of the copied files using the following command:
    chmod -R 755 /home/DruvaLogs
  4. Connect to the proxy using the WinSCP tool and copy /home/DruvaLog directory to your local machine.
  5. Copy system logs /var/log/messages.
  6. Zip all the files and upload them to the required portal.