Solved

cp > 2 Gb file URGENT

Posted on 2007-04-06
7
277 Views
Last Modified: 2010-04-21
I am trying to copy a file 6 GB in size using the following command, (MKS emulator on Windows platform)
$cp sourcefile.dbf <target directory>

Getting error:
cp: Error copying file J:/PHLCISUT/DBDATA/CISD01.DBF to h:/PHLCISUT/dbdata/CISD01.DBF: Insufficient system resources exist to complete the requested service.
Is there an alternate command for copying

Thanks
0
Comment
Question by:Greens8301
  • 3
  • 3
7 Comments
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
Comment Utility

Hi Greens8301,

Any of several things could be at play here.

-  Is there enough room on the destination device to hold a 6GB file?
-  Some systems and emulators have a 2GB file limit.  I don't know about MKS.

The 2GB file limit is based on the ff_blk structure having a 32 bit integer value for file position.  It's hard to do I/O past the 2GB position when you can't reference it.


Kent
0
 

Author Comment

by:Greens8301
Comment Utility
Kdo,
The windows is a 32bit architecture
6 GB is the database file which is being used fine no problem at the database end
When I copy for backup I get the error

There is suffiecient room in the target directory

is there a command other than "cp" to try, something like .."io.."

Greens8301
0
 

Author Comment

by:Greens8301
Comment Utility
Kent,

Do you think it is not possible to backup at all,  files > 2 GB with any available unix command

Greens8301
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 45

Expert Comment

by:Kdo
Comment Utility
Hi Greens8301,

I suspect that it's an issue with MKS.

I've never used it so I can only speak from what I read, but it appears that there are 32 and 64-bit versions of it.  There may well be an issue with the 32-bit.

It's easy to test.  

--  Create a 1GB file.  Copy it somewhere else.
--  Cat the new file to the end of the original (making a 2GB file).
--  Copy the 2GB file somewhere else.
--  Cat the 1GB file to the new file (making a 3GB file).
--  Copy the 3GB file somewhere else.

If that 3GB copy fails, you can be reasonbly sure that there a problem with MKS.


Kent
0
 
LVL 6

Expert Comment

by:DocGyver
Comment Utility
Going out on a limb here but is the destination drive NTFS?  If it is FAT32 then you can't have a file greater than 2G on it.
0
 
LVL 45

Expert Comment

by:Kdo
Comment Utility

Hi Doc,

That seems like a pretty stable limb.   :)


Kent
0
 

Author Comment

by:Greens8301
Comment Utility
Kent,

I used oracle RMAN copy istead. and it copied the 6 GB file byte per byte successfully

When I have time , will try your test

Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now