PC Review


Reply
Thread Tools Rate Thread

Copy hangs - File opened twice?

 
 
Joachim Hofmann
Guest
Posts: n/a
 
      14th Sep 2006
Hello,

There is a batch job with some copy commands in it, located on server_1. It is
run by an automatic task, and the copy command "pulls" the file(s) from a share
of server_2.

This works except with one big file (1.5G). The copy job hangs, we dont know why
yet.

I noticed: In the local computer management console, in the node "Open Files" I
see that the account which runs the copy job has opened the file twice resp.
there are two entries for READ on the file.

Q: Is this "double opening" normal?

Anyone has an idea how to surround the problem?

[Win2K SP4]

Thank You

Joachim
 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      14th Sep 2006
In microsoft.public.win2000.file_system Joachim Hofmann wrote:

> Hello,
>
> There is a batch job with some copy commands in it, located on
> server_1. It is run by an automatic task, and the copy command
> "pulls" the file(s) from a share of server_2.
>
> This works except with one big file (1.5G). The copy job hangs,
> we dont know why yet.
>
> I noticed: In the local computer management console, in the node
> "Open Files" I see that the account which runs the copy job has
> opened the file twice resp. there are two entries for READ on
> the file.
>
> Q: Is this "double opening" normal?
>
> Anyone has an idea how to surround the problem?
>
> [Win2K SP4]


Not immediately. But try using XCOPY instead of COPY for good
measure.
 
Reply With Quote
 
KeithMail
Guest
Posts: n/a
 
      15th Sep 2006
Some suggestions..
If you download and run filemon (on both source and target machines) from
sysinternals.com and watch the file accesses as the batch file runs, they
will indicate if a failed file access failure is occurring and may help
pinpoint what kind of a failure is happening.

If the BIG file is copied temporarily locally to server_1 and the batch job
modified to copy from that "local source" this will eliminate the server_2
and if the problem still exists, tell you if the problem may lie in
something on the server_1 , anti virus s/w, bad disk sectors even.

Ditto the same on server_2, can the file be copied around on that pc without
problem to eliminate its disk failing.

If all works "locally" then really all you have is the network, do all BIG
file copies fail? we had some network devices which failed to "honour" the
tcp/IP MTU (Maximum transmission unit) value and when a PC filled a packet
with data over a certain byte count the packets were lost by the physical
network switch and the connection "hung"

Test this by (assuming its a tcp/ip connection) using the ping command with
an incrementing packet size and seeing how big the packets get before you
get packet loss. Some packet loss is to be expected but above a certain
value you may get 100% loss which indicates a configuration problem or
network switch malfunction.
do this from BOTH server_1 to Server_2 and server2 to Server_1

On Server_1, from a cmd prompt type

Ping -l 1024 Server_2 Repat this from the other server but change the
target name to Server_1

The -1 is a lower case L (LIMA) and the value is the byte size you want to
fill the packet with
Change the 1024 to 2048, repeat with 4096 8192 16384 etc

You will see it tell you it is pinging the (IPADDRESS) with xxx bytes of
data and hopefully a summary at the end with packet loss indicated (if any)

If this fails with any of these values I would be asking for the network to
be investigated, it is possible to restrict the size of a data packet that
is sent on a network card so the packet will never exceed the maximum you
have proven the network can accept but that MUST be seen as a temporary
issue.

Articles about PMTU and black hole discovery may be helpful if this is the
case.

Remember with most problems involving multiple variables (in yr case 2
servers, their o/s, anti virus s/w and a network), eliminate them one at a
time as best you can.

Forgive if it sounds patronising but in these forums no one knows the others
skill sets so I've pitched it at reasonable techy level is that OK?
Keith

"Mark V" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In microsoft.public.win2000.file_system Joachim Hofmann wrote:
>
> > Hello,
> >
> > There is a batch job with some copy commands in it, located on
> > server_1. It is run by an automatic task, and the copy command
> > "pulls" the file(s) from a share of server_2.
> >
> > This works except with one big file (1.5G). The copy job hangs,
> > we dont know why yet.
> >
> > I noticed: In the local computer management console, in the node
> > "Open Files" I see that the account which runs the copy job has
> > opened the file twice resp. there are two entries for READ on
> > the file.
> >
> > Q: Is this "double opening" normal?
> >
> > Anyone has an idea how to surround the problem?
> >
> > [Win2K SP4]

>
> Not immediately. But try using XCOPY instead of COPY for good
> measure.



 
Reply With Quote
 
Joachim Hofmann
Guest
Posts: n/a
 
      18th Sep 2006
OK Thanks, I'll work through it...
 
Reply With Quote
 
Joachim Hofmann
Guest
Posts: n/a
 
      24th Nov 2006

Thank You all,

i saved your information for the next trouble situation.. for this time it had
been (again in this company) just a simple virus scanner configuration.

Joachim
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get path to file used as a template from opened copy =?Utf-8?B?WFA=?= Microsoft Excel Programming 1 15th Oct 2007 09:30 PM
Excel VB to make a copy of opened file Chrisso Microsoft Excel Programming 3 9th May 2007 10:12 AM
macro to autofilter other file and copy in opened file matthias Microsoft Excel Programming 4 17th Aug 2006 10:52 AM
copy opened access database file Jay Microsoft Access Forms 1 29th Jun 2006 11:33 AM
Copy cells from xls file opened in browser escorido Microsoft Excel Programming 0 6th Jul 2004 04:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:20 AM.