How to enable or disable debug logging for DRaaS
Updated over a week ago

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

  • Login into the AWS proxy with user name "centos" and press enter when prompted for a password.

    • Go to the AWS Console > EC2 Console.

    • From the IPV4 Public IP field, copy the proxy server IP.

    • From the Key pair name field, see the key pair associated with the proxy server.

    • Using an SSH client (for example, Putty), connect to the proxy server.

    • Specify the hostname or IP.

    • Provide the key pair you had associated with the proxy server.

    • Login with default username (for centos proxy use username as "centos" or for ubuntu proxy use username as "ubuntu")and press enter when prompted for a password.

  • Elevate to root by running the following command:

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

    /etc/init.d/Phoenix stop
  • 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>
  • Browse to /etc/Phoenix/DR/Phoenix.cfg and take backup of the Phoenix.cfg file.

  • Edit Phoenix.cfg file using vi editor using below command:

vi Phoenix.cfg

Type ‘ i ‘ to activate insert mode

Change the value of DEBUGLEVEL from 0 to 9.

Type esc key followed by :wq to save and exit file.

Verify if value of Debug Level has changed to 9 using below command

cat Phoenix.cfg

  • Save-Quit the changes.

  • Start Phoenix Agent Client Service and initiate a backup/restore job.

/etc/init.d/Phoenix start
  • Trigger the backup/restore job.

Disable debug logging

  • Login into the AWS proxy with user name "centos" and press enter when prompted for a password.

    • Go to the AWS Console > EC2 Console.

    • From the IPV4 Public IP field, copy the proxy server IP.

    • From the Key pair name field, see the key pair associated with the proxy server.

    • Using an SSH client (for example, Putty), connect to the proxy server.

    • Specify the hostname or IP.

    • Provide the key pair you had associated with the proxy server.

    • Login with default username (for centos proxy use username as "centos" or for ubuntu proxy use username as "ubuntu")and press enter when prompted for a password.

  • Elevate to root by running the following command:

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

    /etc/init.d/Phoenix stop
  • 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>
  • Browse to /etc/Phoenix/DR/Phoenix.cfg and take backup of the Phoenix.cfg file.

  • Edit Phoenix.cfg file using vi editor using below command:

vi Phoenix.cfg

Type ‘ i ‘ to activate insert mode

Change the value of DEBUGLEVEL from 9 to 0.

Type esc key followed by :wq to save and exit file.

  • Verify if value of Debug Level has changed to 0 using below command

cat Phoenix.cfg

  • Save-Quit the changes.

  • Start Phoenix Agent Client Service and initiate a backup/restore job.

/etc/init.d/Phoenix start
  • Trigger the backup/restore job.

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).

  • Create a directory in /home using the following command:

    mkdir /home/DruvaLogs
  • Copy the log files using the following command:

    cp -r /var/log/Phoenix /home/DruvaLogs
  • Change the permission of the copied files using the following command:

    chmod -R 755 /home/DruvaLogs
  • Connect to the proxy using the WinSCP tool and copy /home/DruvaLog directory to your local machine.

  • Copy system logs /var/log/ messages.

  • Zip all the files and upload them to the required portal.

See also

Did this answer your question?