Sponsored Content
Operating Systems AIX why a directory size is different on two servers? Post 302294843 by wrl on Friday 6th of March 2009 03:26:48 AM
Old 03-06-2009
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?
 

10 More Discussions You Might Find Interesting

1. Solaris

How to find size of data trasnfered between 2 servers ?

Hi, I have setup 2 Sun Solaris server at my home. I put them in network.. Network is ok. How can I find that how much data is transfered between these 2 servers and on specific port ? Thanks NeeleshG (7 Replies)
Discussion started by: neel.gurjar
7 Replies

2. Filesystems, Disks and Memory

Shared Home directory between Unix servers

Hi Im working in an environment where 2 production and 2 testing unix servers are used.. All these servers share the same home directory.. how is it done where would the home directory be located (0 Replies)
Discussion started by: raghav288
0 Replies

3. Shell Programming and Scripting

How to check directory exist on servers

There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script. #! /bin/ksh ARRAY_DIRECTORIES="/c/dev/custom/bin" ARRAY_DIRECTORIES="/c/dev/db/custom/src" ARRAY_ENV="remoteName200" ARRAY_ENV="remoteName201"... (2 Replies)
Discussion started by: weonpc
2 Replies

4. Shell Programming and Scripting

to compare total directory structure and get sizes of all f on two different servers

Hello every one, Iam newbie to this forum and shell programming &scripting. i needed to compare each and every folder of two separate servers. Actually I have copied some directory structure from one server to second server, to build on second server the files all should be copied... (3 Replies)
Discussion started by: mannam srinivas
3 Replies

5. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

6. UNIX for Dummies Questions & Answers

directory tree with directory size

find . -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/' Can someone explain how this works..?? How can i add directory size to be listed in the above command's output..?? (1 Reply)
Discussion started by: vikram3.r
1 Replies

7. Solaris

directory compare in two different servers

How can we get the directory tree along with the size in two different servers and find the difference between the list..?? Eg, Server1 dirTree1 -size Server 2 dirTree2 -size how can we find the directory tree with its size, and find the difference, where the servers are different... (1 Reply)
Discussion started by: vikram3.r
1 Replies

8. Shell Programming and Scripting

Comparing files names in directory over two servers

Hi folks I need to write a shell script to check whether source and the destination has the same files. The source and destination are over two servers and connecting through ssh. It should even compare the date i.e, the complete file name, date stamp and size should match. Should list out all the... (3 Replies)
Discussion started by: Olivia
3 Replies

9. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

10. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
GZEXE(1)						      General Commands Manual							  GZEXE(1)

NAME
gzexe - compress executable files in place SYNOPSIS
gzexe name ... DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files: -rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb -rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~ /usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are sure that /usr/bin/gdb works properly. This utility is most useful on systems with very small disks. OPTIONS
-d Decompress the given executables instead of compressing them. SEE ALSO
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1) CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail). BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases, using chmod or chown. GZEXE(1)
All times are GMT -4. The time now is 10:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy