Operating System - HP-UX
1753707 Members
5115 Online
108799 Solutions
New Discussion юеВ

disk usage (du) result compare 2 identical file system

 
SOLVED
Go to solution
Camel_1
Valued Contributor

disk usage (du) result compare 2 identical file system

Hi there,

I just copied a file system from one node to another node. The file system size, VG extend size, PE size are the same. But what explain the source is a little bit bigger then the target, please see the following output


Source:
# du -sk abc
34069440 abc

Target:
# du -sk abc
34054468 abc


3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: disk usage (du) result compare 2 identical file system

Look at the directory size itself.

Run:

ls -ld abc

on both systems and compare the sizes. Also do this for any subdirectories under 'abc'.

The directory on the source system may have grown over time, but may not need to be as large on the target due to fewer files (the directory size will grow, but never shrink).
Kenan Erdey
Honored Contributor

Re: disk usage (du) result compare 2 identical file system

Hi,

also compare file count of two directories. there may be sparse files which you can see size in ls output. but indeed no data within.

take look at this thread.

http://h30499.www3.hp.com/t5/System-Administration/Find-sparse-file/m-p/3875418#M279127

Computers have lots of memory but no imagination
Camel_1
Valued Contributor

Re: disk usage (du) result compare 2 identical file system

excellent. Thanks all.