Check if your zfs filesystem in question is using compression and/or deduplication.
That can cause confusion with du, if you are not aware that it is turned on.
GNU du has --apparent-size which can be usefull on zfs filesystems and is present as gdu on Solaris 11 and later.
Also you might want to run md5sum or cksum to check if the files are the same on source and destination.
Hope that helps
Regards
Peasant.
Deduplication is what I was talking about in post #2 in this thread. But comparing the source and destination is going to fail if du is showing that the destination is growing over time after the copy completes.
I asked for the EXACT du command that was being used to look at the size of the destination file and was told that the command used was:
which will not tell you the number of blocks allocated to any particular file; it gives you the number of disk blocks allocated to all files in the file hierarchy rooted in the current working directory that are in the same filesystem as the current working directory.
The fact that ls -l shows the correct file size is a clear indicatory that the copy completed successfully and if:
is showing destination_file with in initial allocation of 0 blocks after the copy completes and an increasing allocation as time passes, it means that new blocks are being allocated to destination_file as blocks in source_file and/or destination_file are being changed after the copy completed.
Hello,
I try to copy a small file e.g. /etc/hosts from my workstation to my office Pc via serial cable on Port b. (/dev/term/b)
But I donīt now how!
On the Pc I can only use the HyperTerm on NT because this is the released software. There is an option to send or receive data but i have no idea... (11 Replies)
Hi,
- on a solaris box what is the best utility to copy a whole file system from one place to other? - the aim of the operation is to place the contents of
the whole file system to other file system within the discs
cp ? - cpio? - tar?
- what about file systemes containing symbolic links ?... (1 Reply)
Hi
my OS is solaris 9 , we have requirement to copy 1 file from solaris box to windows machine , so which utility or commands any idea will be appreciated
Regards (3 Replies)
Hi,
I was copying a bunch of files from one folder to another.. while copy command was running i pressed 'ctrl C'...now these files are not present in the parent directory nor in the target folder... :eek:
Where can find these files...
Is there any way to get this files back.. :confused:... (2 Replies)
Hello, more of a windows wscript guy. However I took a new position that requires me to support some solaris servers. So... issue is that I need to copy all lines from a file to a temporary file and then copy them back into the original file starting at line 1. Reason I need to do this is... (5 Replies)
Hi,
I have an excel file generated by system in windows. I am zipping it, transfering to unix and unzipping there. But i'm getting below output while unzipping.
$ /usr/bin/unzip -a 123.zip -d .
Archive: 123.zip
inflating: ./123/Index.xls
When i copy this unzipped xls file to... (0 Replies)
Hi,
Gretings,
While viewing the contents of a file using more/cat in Reflection,
I am neither able to see the text beyond the width of screen, nor able to type it as well.
I have tried changing windows settings also, but of no vail.
Even if I cat/more a file and try to copy its contents, it... (1 Reply)
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Hi,
I have a shell script which is having copy command. My need is to copy all the files in a directory into its subdirectory.
My directory structure is like this.
Dir1
file1.txt
file2.txt
file3.txt
subDir1
subDir1 is a subdirectory in Dir1.
Now I... (2 Replies)