Skip to main content

How to enable or disable debug logging for DRaaS

Updated today

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. SSH into the AWS proxy.

  2. Run: sudo su -

  3. Stop Agent Client Service.

    Agent Version 6.x.x: /etc/init.d/Phoenix stop

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

  4. Verify if any Druva or Phoenix related processes.

    Agent Version 6.x.x: ps -ef| grep -i Phoenix

    Agent Version 7.x.x: ps -ef | grep -i EnterpriseWorkloads

  5. If any process is still found running, kill the process with the following command:

    Kill -9 <process id>

  6. Take a backup of the Configuration File

    Agent Version 6.x.x: /etc/Phoenix/DR/Phoenix.cfg

    Agent Version 7.x.x: /etc/Druva/EnterpriseWorkloads/Config.yaml

  7. Open the file in VI editor and change the debug value from 0 to 9

    Agent Version 6.x.x: change the value from DEBUGLEVEL = 0 to DEBUGLEVEL = 9

    Agent Version 7.x.x: change the value from debug_level: 0 to debug_level: 9

  8. Save the changes.

  9. Then Start Agent Client Service.

    Agent Version 6.x.x: /etc/init.d/Phoenix start

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

  10. Initiate the backup or the restore job.

Disable debug logging

  1. SSH into the AWS proxy.

  2. Run: sudo su -

  3. Stop Agent Client Service.

    Agent Version 6.x.x: /etc/init.d/Phoenix stop

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

  4. Verify if any Druva or Phoenix related processes.

    Agent Version 6.x.x: ps -ef| grep -i Phoenix

    Agent Version 7.x.x: ps -ef | grep -i EnterpriseWorkloads

  5. If any process is still found running, kill the process with the following command:

    Kill -9 <process id>

  6. Take a backup of the Configuration File

    Agent Version 6.x.x: /etc/Phoenix/DR/Phoenix.cfg

    Agent Version 7.x.x: /etc/Druva/EnterpriseWorkloads/Config.yaml and

  7. Open the file in VI editor and change the debug value from 9 to 0

    Agent Version 6.x.x: change the value from DEBUGLEVEL = 9 to DEBUGLEVEL = 0

    Agent Version 7.x.x: change the value from debug_level: 9 to debug_level: 0

  8. Save the changes.

  9. Then again start Agent Client Service.

    Agent Version 6.x.x: /etc/init.d/Phoenix start

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

  10. Initiate the backup or the 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?