Is there a way either through the API or by a built-in MMC or something to monitor the creation of new files? Tons of space is disappearing from a network share and we can't figure out why from simple examination. Thanks in advance.
This is a discussion on Windows Server: monitoring file creation within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way either through the API or by a built-in MMC or something to monitor the creation of ...
Is there a way either through the API or by a built-in MMC or something to monitor the creation of new files? Tons of space is disappearing from a network share and we can't figure out why from simple examination. Thanks in advance.
-Jake
Hazudra Fodder
Currently looking at / set up a trace log.
-Jake
Hazudra Fodder
Monitoring in code or monitoring through some other means?
First make sure you have things set so you can see hidden and system files ... Windows is bad for this, hiding stuff from users.
If you want to do this in code/Windows... look up Change Notices on MSDN... Windows will signal when a directory or file is altered.
Also... (and forgive me if this is too obvious... but a lot of people get tripped up on it)... make sure you limit the sizes of your "garbage cans". Dleted files still occupy space!
Last edited by CommonTater; 12-14-2011 at 11:55 AM.
Monitoring by any means. I went to lunch today and we had 106 GB free on the server. I came back and we had 79 GB left. We desperately need to know who is moving/copying what.
Right now I set up a trace log for disk input/output under performance monitoring. Going to first try the tracerpt tool to produce a report and when that doesn't tell me anything, I'll probably just write a python script to parse it.
-Jake
Hazudra Fodder
You could also use Process Monitor. Set the filters for disk activity, 'path' to the shared drive and 'operation' to WriteFile and it'll spew out which process is writing to what file, and the offset and size of the write.
I was using that for a bit and started to look at the filters but it looked too complex, figured there was any easier way. I'll take a look at it again. Thanks
-Jake
Hazudra Fodder
Okay, that actually looks pretty good. Thanks!
-Jake
Hazudra Fodder
The two most useful tools as a network admin are WinDirStat and Process Monitor.
Also, check things like Shadow Copies (which can "consume" space on the drive as time goes by unless you set the options to a fixed size).
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.
I've always been fond of Extensions for Windows - The Unofficial Windows Upgrade myself.
-Jake
Hazudra Fodder
Are you using windows backup regularly? - How to remove Exchange Server transaction log files
Stab in the dark, but this happened to me once and the exchange transaction logs ate all disk space because I want using an "exchange aware" backup
Exchange is on a different server. This is just a file server running server 2003. We use Norton backup exec to backup stuff onto tapes.
-Jake
Hazudra Fodder