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
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
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
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
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
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
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
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
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
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
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
sulog(4) File Formats sulog(4)
NAME
sulog - su command log file
SYNOPSIS
/var/adm/sulog
DESCRIPTION
The sulog file is a record of all attempts by users on the system to execute the su(1M) command. Each time su(1M) is executed, an entry
is added to the sulog file.
Each entry in the sulog file is a single line of the form:
SU date time
result port user-newuser
where
date The month and date su(1M) was executed. date is displayed in the form mm/dd where mm is the month number and dd is the
day number in the month.
time The time su(1M) was executed. time is displayed in the form HH/MM where HH is the hour number (24 hour system) and MM
is the minute number.
result The result of the su(1M) command. A ` + ' sign is displayed in this field if the su attempt was successful; otherwise a
` - ' sign is displayed.
port The name of the terminal device from which su(1M) was executed.
user The user id of the user executing the su(1M) command.
newuser The user id being switched to with su(1M).
EXAMPLES
Example 1: A sample sulog file.
Here is a sample sulog file:
SU 02/25 09:29 + console root-sys
SU 02/25 09:32 + pts/3 user1-root
SU 03/02 08:03 + pts/5 user1-root
SU 03/03 08:19 + pts/5 user1-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/14 08:31 + pts/4 user1-root
FILES
/var/adm/sulog su log file
/etc/default/su contains the default location of sulog
SEE ALSO
su(1M)
SunOS 5.10 6 Jun 1994 sulog(4)