The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
size of directory redbeard_06 Shell Programming and Scripting 19 08-08-2008 05:08 AM
to compare total directory structure and get sizes of all f on two different servers mannam srinivas Shell Programming and Scripting 3 04-07-2008 05:21 AM
How to check directory exist on servers weonpc Shell Programming and Scripting 2 03-06-2008 06:29 AM
Shared Home directory between Unix servers raghav288 Filesystems, Disks and Memory 0 02-22-2008 04:45 AM
How to find size of data trasnfered between 2 servers ? neel.gurjar SUN Solaris 7 06-01-2007 12:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-06-2009
wrl wrl is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 7
why a directory size is different on two servers?

I had a directory dir001 on server a, and its size was 1024 bytes, and below was its content.

$ ls -li
total 184
30728 -rwxr-x--- 1 user1 grp1 2187 Feb 26 14:33 Exxxxxx
30729 -rwxr-x--- 1 user1 grp1 22197 Feb 26 14:33 Sxxxxxx
30730 -rwxr-x--- 1 user1 grp1 2153 Feb 26 14:33 Sxxxxxx
30733 -rwxr-x--- 1 user1 grp1 12493 Feb 26 14:33 Sxxxxxx
30734 -rwxr-x--- 1 user1 grp1 2900 Feb 26 14:33 Sxxxxxx
30732 -rwxr-x--- 1 user1 grp1 3340 Feb 26 14:33 Sxxxxxx
30736 -rwxr-x--- 1 user1 grp1 9464 Feb 26 14:33 Txxxxxx
30737 -rwxr-x--- 1 user1 grp1 2173 Feb 26 14:33 Txxxxxx
30740 -rw-r----- 1 user1 grp1 15444 Feb 27 16:38 Txxxxxx
30739 -rwxr-x--- 1 user1 grp1 2416 Feb 26 14:33 Txxxxxx

then i had created its archive by tar and transfered it to server b through sftp, but this time its size was 512 bytes, and below was its content.

# ls -li
total 184
108550 -rwxr-x--- 1 user1 grp1 2187 Feb 26 14:33 Exxxxxx
108551 -rwxr-x--- 1 user1 grp1 22197 Feb 26 14:33 Sxxxxxx
108552 -rwxr-x--- 1 user1 grp1 2153 Feb 26 14:33 Sxxxxxx
108554 -rwxr-x--- 1 user1 grp1 12493 Feb 26 14:33 Sxxxxxx
108555 -rwxr-x--- 1 user1 grp1 2900 Feb 26 14:33 Sxxxxxx
108553 -rwxr-x--- 1 user1 grp1 3340 Feb 26 14:33 Sxxxxxx
108556 -rwxr-x--- 1 user1 grp1 9464 Feb 26 14:33 Txxxxxx
108557 -rwxr-x--- 1 user1 grp1 2173 Feb 26 14:33 Txxxxxx
108559 -rw-r----- 1 user1 grp1 15444 Feb 27 16:38 Txxxxxx
108558 -rwxr-x--- 1 user1 grp1 2416 Feb 26 14:33 Txxxxxx


does anybody know the reason and how to detect? can this command istat <i-node> <file system> meet the requirement?
  #2 (permalink)  
Old 03-10-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,586
Where do you see different size?
If I take the first file:
30728 -rwxr-x--- 1 user1 grp1 2187 Feb 26 14:33 Exxxxxx
And compare with:
108550 -rwxr-x--- 1 user1 grp1 2187 Feb 26 14:33 Exxxxxx

To me they seem very identical indeed - or Im still sleeping...
  #3 (permalink)  
Old 03-10-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,808
Oh.

The size of a directory file has very little to do with what is actuall in the directory.
That type of file just grows in size. If you remove some files - it stays the same size.
So as an explanation - how about at one time the 1024 size directory had more files than it does now? When copied to another box it required 512 bytes for the new directory.
  #4 (permalink)  
Old 04-15-2009
wrl wrl is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 7
thank you jim mcnamara, your judgement is quite right.

i've done some tests according to your advise and they are very positive.
Closed Thread

Bookmarks

Tags
unresolved

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0