The Repository Manager makes a log entry each time an activity that affects the repository takes place and generates two types of log files: mtb_server.log and log.00000000nn. You can run the following steps to clean up those log files periodically.
The maximum size for mtb_server.log is 4 GB. When the log exceeds that size, the Scheduler does not start. If you encounter this problem, either rename the current log file or move it to a new location.
To clean up mtb_server.log file
-
Go to the logs directory in your repository directory.
Example
C:/ProgramData/Trillium Software/MBSW/version/Data/logs -
Locate the file mtb_server.log.
-
Rename the file or move it to a new location. A new log file is aTomatically created next time a log activity takes place.
To clean up repository log files
-
Open the Windows Control Panel > Administrative Tools > Services.
-
Right-click on the Service named TSSversion- Scheduler and select Stop.
-
From the Start menu, select Programs > Trillium Software > TSSversion > Repository Administration Command Prompt.
-
At the login: prompt, enter the repository administrator name and press Enter.
-
At the password: prompt, enter the password for the repository administrator and press Enter.
-
At the repository: prompt, enter the name of the repository you are working with and press Enter.
-
Type the following command at the command prompt and press Enter.
expert -
Type the following command in one line and press Enter.
foreach path [::com::avellino::metabase::archive abs]{file delete $path} -
Go to the _txnlogs directory in your repository directory.
Example
C:/ProgramData/Trillium Software/MBSW/version/Data/metabase/repository_name/_txnlogs -
Verify that there is only one log file left in the directory.