|
|
Size difference when copying LARGE file
Hi, Im trying to take a database backup. one of the files is 26 GB. I
am using cp -pr to create a backup copy of the database. after the
copying is complete, if i do du -hrs on the folders i saw a difference
of 2GB.
The weird fact is that the BACKUP folder was 2 GB more than the
original one!
when i did du -hrs * inside each of the 2 folders and compared the
output, i found the culprit. it was a file temp.dbf which was 26 GB on
the source(original) folder and 28 GB in the BACKUP folder. I tried the
copy procedure twice and I am getting the same result.
does anyone have any explanation for this. please let me know. I want
to make sure everything is right here in the copy.
PS:- Solaris SPARC 23 BIT.
Thanks
|
|
0
|
|
|
|
Reply
|
0ktalmagik (9)
|
6/3/2006 10:59:11 PM |
|
0ktalmagik <0ktalmagik@gmail.com> wrote:
> Hi, Im trying to take a database backup. one of the files is 26 GB. I
> am using cp -pr to create a backup copy of the database. after the
> copying is complete, if i do du -hrs on the folders i saw a difference
> of 2GB.
>
> The weird fact is that the BACKUP folder was 2 GB more than the
> original one!
>
> when i did du -hrs * inside each of the 2 folders and compared the
> output, i found the culprit. it was a file temp.dbf which was 26 GB on
> the source(original) folder and 28 GB in the BACKUP folder. I tried the
> copy procedure twice and I am getting the same result.
>
> does anyone have any explanation for this. please let me know. I want
> to make sure everything is right here in the copy.
>
> PS:- Solaris SPARC 23 BIT.
>
> Thanks
>
Are you copying a live file, or something in use by the database?
What does ls -l show for file size for original and copy?
|
|
0
|
|
|
|
Reply
|
Cydrome
|
6/4/2006 12:27:33 AM
|
|
In article <1149375551.171299.25960@c74g2000cwc.googlegroups.com>,
0ktalmagik <0ktalmagik@gmail.com> wrote:
>Hi, Im trying to take a database backup. one of the files is 26 GB. I
>am using cp -pr to create a backup copy of the database. after the
>copying is complete, if i do du -hrs on the folders i saw a difference
>of 2GB.
>The weird fact is that the BACKUP folder was 2 GB more than the
>original one!
What does "ls -ls" show for the original and the copy?
Database files are frequently sparse, they have holes that have
never been written to and don't occupy actual disk space. Eg:
% dd if=/dev/zero of=t1 bs=1k count=1 seek=10k
% cp t1 t2
% ls -ls t1 t2
40 -rw-r--r-- 1 jgp 10486784 Jun 5 17:17 t1
10256 -rw-r--r-- 1 jgp 10486784 Jun 5 17:18 t2
% du -s t1 t2
40 t1
10256 t2
t1 is only 40k on disk even though the final byte is at lseek
position 10486784. One copied it grows to 10M since the holes
get filled in.
I believe ufsdump/ufsrestore are the only tools standard tools that
preserve holes in files.
Star ( http://cdrecord.berlios.de/old/private/star.html ) handles them.
--
Jim Prescott - Computing and Networking Group jgp@seas.rochester.edu
School of Engineering and Applied Sciences, University of Rochester, NY
|
|
0
|
|
|
|
Reply
|
jgp
|
6/5/2006 9:24:01 PM
|
|
In article <e627dh$g4v@harn.ceas.rochester.edu>,
Jim Prescott <jgp@harn.ceas.rochester.edu> wrote:
>I believe ufsdump/ufsrestore are the only tools standard tools that
>preserve holes in files.
>
>Star ( http://cdrecord.berlios.de/old/private/star.html ) handles them.
If you use a pre S-2.6 or a recent Solaris, star is able to correctly copy
holes too. With star there is no need to be root in order to do this (at least
not on a recent Solaris version - the old Solaris hole interface forces you to
be root too).
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
|
|
0
|
|
|
|
Reply
|
js
|
6/5/2006 10:01:12 PM
|
|
|
3 Replies
295 Views
(page loaded in 0.063 seconds)
Similiar Articles: Xemacs: syntax highlighting problem for large files - comp.emacs ...InDesign problem - comp.sys.mac.apps Size difference when copying LARGE file - comp.unix.solaris ... Xemacs: syntax highlighting problem for large files - comp.emacs ... InDesign problem - comp.sys.mac.appsXemacs: syntax highlighting problem for large files - comp.emacs ... InDesign problem - comp.sys.mac.apps Size difference when copying LARGE file - comp.unix.solaris ... File size difference, InDesign vs Distiller - comp.text.pdf ...large (page size) PDF problems - comp.text.pdf File size difference, InDesign vs Distiller - comp.text.pdf ... File size difference, InDesign vs Distiller - comp.text.pdf Making file sizes smaller ?? - comp.cad.solidworksFile size difference, InDesign vs Distiller - comp.text.pdf ... print large page - comp.text.pdf Ralf example "places" a copy of the PDF file onto a series of smaller pages ... HELP! Downloading large files disconnects my ethernet/network ...Copying Large files in HPUX - comp.sys.hp.hpux HELP! Downloading ... fcopy -size limit - comp.lang.tcl HELP! Downloading large files disconnects my ethernet/network ... why filesize is different? - comp.soft-sys.sasFile size difference, InDesign vs Distiller - comp.text.pdf ... df output after deleting large file - comp.unix.solaris Sorted NO > > File Size (bytes) 17260544 ... large (page size) PDF problems - comp.text.pdfFile size difference, InDesign vs Distiller - comp.text.pdf ... large (page size) PDF problems - comp.text.pdf InDesign problem - comp.sys.mac.apps File size difference ... Tar problem, large file - comp.unix.solarisIf I use other program, I get negative size value of tarred large file. Probably value is ... HPUX - comp.sys.hp.hpux tar > 2GB file - comp.sys.hp.hpux Copying Large files ... Measuring file copy speed - comp.unix.solaris... time and/or megs per sec) to copy larges files. ... the speed of your line and the size of the file ... are crucial for measuring the difference ... The entire file is too large ... Large file problems - block pattern - comp.lang.awkYou mean the record size or the file size? What awk are you using? Any difference with GNU awk (or ... /bin/du problem with large files - comp.unix.solaris Large file ... Strange difference in file size when copying LARGE file.. - The ...Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp - pr to create a backup copy of the database. after the copying is complete, if i do ... GatherBird Copy Large FilesDifference between the free trial and the registered version How ... errors encountered and the speed of the network Copy Large Files automatically adjusts the size of the ... 7/15/2012 8:23:31 AM
|
|
|
|
|
|
|
|
|