Very Large Logfile

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
holger
Posts: 7
Joined: Tue Mar 11, 2008 8:49 am
Location: Germany

Tue Apr 08, 2008 7:02 am

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
User avatar
anton (staff)
Site Admin
Posts: 4010
Joined: Fri Jun 18, 2004 12:03 am
Location: British Virgin Islands
Contact:

Tue Apr 08, 2008 9:24 pm

Change loglevel variable in the StarWind.cfg from "0" to "2".

P.S. How did it happen you've enabled verbose logging??
Regards,
Anton Kolomyeytsev

Chief Technology Officer & Chief Architect, StarWind Software

Image
holger
Posts: 7
Joined: Tue Mar 11, 2008 8:49 am
Location: Germany

Wed Apr 09, 2008 6:24 am

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 -->
User avatar
anton (staff)
Site Admin
Posts: 4010
Joined: Fri Jun 18, 2004 12:03 am
Location: British Virgin Islands
Contact:

Wed Apr 09, 2008 6:33 am

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.
Regards,
Anton Kolomyeytsev

Chief Technology Officer & Chief Architect, StarWind Software

Image
User avatar
Bohdan (staff)
Staff
Posts: 435
Joined: Wed May 23, 2007 12:58 pm

Wed Apr 09, 2008 6:47 am

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!
Last edited by Bohdan (staff) on Wed Apr 09, 2008 10:27 am, edited 1 time in total.
holger
Posts: 7
Joined: Tue Mar 11, 2008 8:49 am
Location: Germany

Wed Apr 09, 2008 8:29 am

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.
User avatar
Bohdan (staff)
Staff
Posts: 435
Joined: Wed May 23, 2007 12:58 pm

Wed Apr 09, 2008 1:32 pm

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.
Val (staff)
Posts: 496
Joined: Tue Jun 29, 2004 8:38 pm

Wed Apr 09, 2008 7:53 pm

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.
Best regards,
Valeriy
Post Reply