Page 1 of 1

Very Large Logfile

Posted: Tue Apr 08, 2008 7:02 am
by holger
Hi,

i´ve got a Problem with my Logfile it grows and grows and grows until there is no free space left on my Harddisk. At least it grows to about 12GB in less than one week.

In the Starwind.cfg i made the following changes:

Code: Select all

<logging>
	<!--LogLevel values: 0-Disabled, 1-Errors, 2-Warnings, 3-all messages	-->
	<LogLevel value="0"/>
	<!--Don't change the LogMask if you have no idea what does it mean!-->
	<LogMask value="0xC000ffff"/>
</logging>
My Logfiel looks like this.

Code: Select all

4/8 9:22:51.234 24c MIR -> Mirror_ScsiExec: >>
4/8 9:22:51.234 24c MIR: Mirror_ScsiExec: (0x15DC4B), CDB: 00 00 00 00 00 00 00 00 00 00 00 00
4/8 9:22:51.234 24c Ssc: SscScsi_GetReservationMode: Reservation mode 1
4/8 9:22:51.234 24c MIR: Mirror_ScsiExec: SCSIOP_TEST_UNIT_READY...
4/8 9:22:51.234 24c MIR -> Mirror_ScsiCompleteRequest: >>
4/8 9:22:51.234 24c MIR: Mirror_ScsiCompleteRequest: Req 0000000001F70590, refs 0, Ssc 000000000015DC4B
4/8 9:22:51.234 24c MIR <- Mirror_ScsiCompleteRequest: <<
4/8 9:22:51.234 24c MIR <- Mirror_ScsiExec: <<
4/8 9:22:53.921 bc MIR: Mirror_FlushCache: Beginning flush of cache... 
4/8 9:22:56.921 bc MIR: Mirror_FlushCache: Beginning flush of cache... 
4/8 9:22:59.921 bc MIR: Mirror_FlushCache: Beginning flush of cache... 
4/8 9:23:02.921 bc MIR: Mirror_FlushCache: Beginning flush of cache... 
4/8 9:23:05.921 bc MIR: Mirror_FlushCache: Beginning flush of cache... 
4/8 9:23:08.921 bc MIR: Mirror_FlushCache: Beginning flush of cache...
isn´t it possible to limit the log size?

Thank you for you help

Posted: Tue Apr 08, 2008 9:24 pm
by anton (staff)
Change loglevel variable in the StarWind.cfg from "0" to "2".

P.S. How did it happen you've enabled verbose logging??

Posted: Wed Apr 09, 2008 6:24 am
by holger
I changed it manually.

i found it on this topic.

http://www.starwindsoftware.com/forums/ ... hlight=log

but why is the verbose loglevel and not disabled ?????

<!--LogLevel values: 0-Disabled, 1-Errors, 2-Warnings, 3-all messages -->

Posted: Wed Apr 09, 2008 6:33 am
by anton (staff)
We have only errors enabled by default AFAIK, so I don't know how did it happen you have verbose... Probably we\ve asked you to turn it ON when we were helping with some issue on your machine and later we've forgot to turn it OFF.

Posted: Wed Apr 09, 2008 6:47 am
by Bohdan (staff)
Hi.
Please try the following values:

<logging>
- <!-- LogLevel values: 0-Disabled, 1-Errors, 2-Warnings, 3-all messages
-->
<LogLevel value="1" />
- <!-- Don't change the LogMask if you have no idea what does it mean!
-->
<LogMask value="0x8fffffff" />
</logging>
And restart StarWind service.

Also please make sure that you haven't configured loglevel parameters in plugins section.

"loglevel value="0-3" - override log level for a plugin (by default global LogLevel value is used).

Thanks!

Posted: Wed Apr 09, 2008 8:29 am
by holger
I tried your values.

The size of the Logfile grows in 1 hour to 78 MB.
with loglevel 2 it grows in 1 hour to 146 MB.

In my opinion this ist much to big.

Posted: Wed Apr 09, 2008 1:32 pm
by Bohdan (staff)
Is it possible for you to zip and send us latest logfile?
If it's size is to big we can provide you with ftp account to upload that file.

Posted: Wed Apr 09, 2008 7:53 pm
by Val (staff)
holger wrote:I tried your values.

The size of the Logfile grows in 1 hour to 78 MB.
with loglevel 2 it grows in 1 hour to 146 MB.

In my opinion this ist much to big.
Hi,

To disable verbose logs in the Mirror module open your StarWind.cfg file with Notepad and find the Mirror plugin descriptor:
<plugin module="Mirror.dll">
Change it as follows:
<plugin module="Mirror.dll" loglevel="1">
After restarting of the service the problem should be fixed.