Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have two server with scsi disk, i have put the same files on both the server and it report a different space occupation 2.0mb and 2.2mb, a list of the folder report the same size of each files but the total size is different!!!! i have check also block size and on both is 4096
server1:
root@lakis [/home/user/www/admin/images]# du -h
2.0M .
server2:
root@ares [/home/user/www/admin/images]# du -h
2.2M .
i add also the partition info
server1:
Disk /dev/sda: 73.2 GB, 73274490880 bytes
255 heads, 63 sectors/track, 8908 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 129 1036161 83 Linux
/dev/sda2 130 1021 7164990 83 Linux
/dev/sda3 1022 1531 4096575 83 Linux
/dev/sda4 1532 8908 59255752+ f Win95 Ext'd (LBA)
/dev/sda5 1532 1786 2048256 82 Linux swap
/dev/sda6 1787 1915 1036161 83 Linux
/dev/sda7 1916 8908 56171241 83 Linux
server2:
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 131 1052226 83 Linux
/dev/sda2 132 1409 10265535 83 Linux
/dev/sda3 1410 2687 10265535 83 Linux
/dev/sda4 2688 17769 121146165 5 Extended
/dev/sda5 2688 3209 4192933+ 82 Linux swap
/dev/sda6 3210 3340 1052226 83 Linux
/dev/sda7 3341 17769 115900911 83 Linux
Are these ext3 filesystems? If so check if the one with more space used has the DIR_INDEX option turned on (check with tune2fs -l <partition>). Using indexing on directories provides for faster access in many cases at the cost of extra space to store the index.
OK, that's weird, but there's probably a reasonable explanation for it. Can you take the md5sum of both files and post it? Also please post the tune2fs -l output for both partitions.
Only #2 had directory indexes turned on. If the md5 sums of the files match, then this is undoubtedly the cause of the size differences. I ran into this myself when migrating data from non-indexed to indexed file systems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.