Some troubles with Logfiles
Hi
I made a copyjob to copy a Logfile to the local drive and add the date to it.
To the local logfile are ~10 Rules attached, to parse some keywords like error, access etc.
Now i have continously noise to this rules:
Application Log Module Failed Execution
Alert Description
Source: <Servername>
Error accessing log file
Directory = D:\Logfile
Log File = D:\Logfile\ERROR.LOG
Error: 0x80070020
One or more workflows were affected by this.
Workflow name: many
Instance name: many
Instance ID: many
Management group: <MgmtGroupname>
I guess its acces voilation, but how can i move the file without locking it?
Thanks
July 23rd, 2010 5:18pm
Don't move the file.
Microsoft Corporation
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2010 6:16pm
Well the File is on a SAN based Disk, managed with Veritas Storage Foundation HA.
Everytime i move the Disk from NodeA to NodeB all the Logentries are scanned from scratch so i have old messages but new Alerts...
July 25th, 2010 12:31pm
Hi,
What do you mean the D drive where the log file is located, the source or the destination? Do you mean the error above appears when the files are moved?
If possible, please try copy operation instead of moving.
If anything I misunderstood, please feel free to let me know.
Hope this helps. Thanks.
Nicholas Li - MSFT
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2010 12:36pm
Hi
Drive D: is the destination. The Source Drive is a SAN Based Clusterdisk.
I copy the File with a timed Rule and the script looks like this:
Sub FileCopy
If fso.FileExists(strFile) = True Then
fso.CopyFile strFile, strDestination
WScript.Quit
ElseIf fso.FileExists(strFile) = False Then
WScript.Quit
End If
End Sub
July 28th, 2010 10:28am
Hi,
Thank you for your update. Please try to perform the copy operation with the following tools and see how it works:
RichCopy
http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx
Robocopy
http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx
Thanks.
Nicholas Li - MSFT
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2010 12:53pm
Thanks for the suggestion, ill try it with robocopy.
July 28th, 2010 1:50pm
Still the same error:
Error accessing log file
Directory = D:\Logfile
Log File = D:\Logfile\ERROR.LOG
Error: 0x80070020
One or more workflows were affected by this.
Workflow name: many
Instance name: many
Instance ID: many
Management group: <ManagementGroup>
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Free Windows Admin Tool Kit Click here and download it now
July 29th, 2010 1:28pm
i think you are getting the error while copying as this error translates to (0x80070020 = win32 error 32 > net helpmsg 32) "The process cannot access the file because it is being used by another process".
So i guess Dan is right, don't move the file or don't access the file while copying.
Rob Korving
http://jama00.wordpress.com/
July 29th, 2010 2:24pm
don't access the file while copying.
And how? I mean, this is the Logfile Module from Opsmgr
Free Windows Admin Tool Kit Click here and download it now
July 29th, 2010 3:04pm
Hi,
No activity for a long time. I will mark this thread as answered.Feel free to re-open it.Anders Bengtsson | Microsoft PFE | blog at http://www.contoso.se
December 26th, 2010 10:00am