LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-08-2021, 04:33 PM   #1
jong105
LQ Newbie
 
Registered: May 2021
Posts: 1

Rep: Reputation: Disabled
Question Strange disk usage discrepancy between 2 servers


Hi,

I'm copying some files (using rsync/ssh) between 2 servers. The source is a Debian machine using ZFS, and the destination is Fedora on XFS.

When I run du -h -d 0 . on the source directory, I get '124G'. When I run the same command on the destination, I get '175G'... and it's still copying!

Compression is enabled on the ZFS dataset, but I don't believe that should make a difference to the output of 'du'. I really don't understand what's going on here.

Any pointers would be greatly appreciated.

Jon

Edit:
Just a couple of minutes after I posted this, the rsync finished, with the destination directory showing usage of 176G. I'm still not seeing any obvious relationship between those vastly different numbers.

Last edited by jong105; 05-08-2021 at 04:51 PM. Reason: Updated info
 
Old 05-08-2021, 06:18 PM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by jong105 View Post
Hi,

I'm copying some files (using rsync/ssh) between 2 servers. The source is a Debian machine using ZFS, and the destination is Fedora on XFS.

When I run du -h -d 0 . on the source directory, I get '124G'. When I run the same command on the destination, I get '175G'... and it's still copying!

Compression is enabled on the ZFS dataset, but I don't believe that should make a difference to the output of 'du'. I really don't understand what's going on here.

Any pointers would be greatly appreciated.

Jon

Edit:
Just a couple of minutes after I posted this, the rsync finished, with the destination directory showing usage of 176G. I'm still not seeing any obvious relationship between those vastly different numbers.
You will find that this has been discussed many times over...
Take a look at this page; has some good pointers:
https://unix.stackexchange.com/quest...-the-same-file
 
1 members found this post helpful.
Old 05-09-2021, 01:36 AM   #3
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,779

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
How did you copy the files?
Maybe hard-linked or even soft-linked files got separated?
Search for links with
Code:
find startdir \( -type l - o -type f -links +1 \) -ls
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gparted and gnome-disk-utils discrepancy in disk size reported mazinoz Linux - Security 3 04-18-2015 07:53 PM
Strange discrepancy in system local longus Slackware 5 11-12-2013 02:13 PM
Slackware vs Arch: discrepancy in usage data rng Linux - Distributions 2 03-16-2012 01:04 PM
(Large) Memory usage discrepancy between top and gnome-system-monitor dahc Linux - General 2 02-09-2012 09:58 PM
Discrepancy In Reported Memory Between (BIOS ,MCC) & (/proc/meminfo, kinfocenter) sleepyz Linux - General 3 08-13-2008 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration