UNSOLVED

ECN-APJ

updated

13 years ago

EA

ECN-APJ

2 Intern

•

308 Posts

0

3410

November 7th, 2013 01:00

Change client log retention

Change client log retention

Introduction

This article will introduce how to change the retention of backup log file (avtar.log) on backup client (Windows and Linux).


Detailed Information

How to change the retention of backup log file (avtar.log) on backup client?

We can use "--loglifetime = DAYS" this parameter to change the retention of log file. The default setting for this parameter is 14 days. The parameter can be used for any client which has avagent. Such as Windows, Linux, Unix and MAC. In this article, we will introduce how to change the retention of backup log file on windows and linux clients.

Before the change, we need to know where are the Avamar client log files stored.

The location of the client logs will vary depending on the platform:

On Windows:  C:\program files\avs\var\

On Linux:  /usr/local/avamar/var

On other UNIX platforms:  /opt/AVMRclnt/var

On NetWare:  sys:\avamar\var

On MAC: /private/var/avamar

Then, let us look at how to change the retention of backup log file (avtar.log) on Windows and Linux clients.

      For Windows:

1.     Enter C:\Program Files\avs\var\, create an avagent.cmd file


2.     Add the following content then save

--loglifetime=DAYS (Specifies the number of DAYS of log and maintenance files to retain)

3.     Right-click Computer,Select Manage->Services->Backup Agent,then click Restart button to restart Backup Agent service

4.     Open avagent.log file under C:\Program Files\avs\var,use Ctrl+f to search keyword loglifetime, you will see --loglifetime=DAYS related message. This shows that the settings have taken effect

For Linux:

1.     Create an avagent.cmd file under /usr/local/avamar/var/

#vi avagent.cmd 

2.     Add the following content then save

--loglifetime=DAYS (Specifies the number of DAYS of log and maintenance files to retain)

3.     Modify the file’s permissions

#chmod 755 avagent.cmd 

4.     Restart avagent service

# /etc/rc.d/init.d/avagent restart

5.     Open avagent.log file under /usr/local/avamar/var/,search keyword loglifetime, you will see --loglifetime=DAYS related message. This shows that the settings have taken effect

The same way, you can also use "--loglifetime=DAYS" parameter to change the retention of log file on other clients.

Notes: Understand that if you want to change the retention to less than 14 days, you need to take the risk of losing logs. In addition, change log retention is not a good way to solve disk space issue, which can be solved by reinstalling the Avamar plugin in a different disk with enough space.


Ensure that the disk has enough space when you change retention to more than 14 days.




Author: Leo Li

             

iEMC APJ

Please click here for for all contents shared by us.

  • emcmobile_ws

    1 Rookie

    •

    19 Posts

    1593

    0

    Posted November 13th, 2013 03:00

    test reply. please ignore.

  • umichklewis

    4 Apprentice

    •

    1190 Posts

    1593

    0

    Posted November 13th, 2013 09:00

    This article seems to relate to Avamar, but is showing up in VNXe Support.

  • ECN-APJ

    2 Intern

    •

    308 Posts

    1593

    0

    Posted November 13th, 2013 17:00

    Thanks for the reminder. This thread has been moved to the "Avamar Support Forum".