opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jfs-discussion@www-124.ibm.com 18 February 2005 • 8:05AM -0500

[Jfs-discussion] df vs. du, again
by Christian

REPLY TO AUTHOR
 
REPLY TO GROUP



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi list,

i'm using jfs for my /var partition and although i realize that the "used
space" shown by df does not always match the output of du [1]. but the
difference on my partition here is quite large:

root@sheep:~# find /var -maxdepth 1 -mindepth 1 -type d -exec du -sh \
'{}' \;

4.7M    /var/backups
32M     /var/cache
284M    /var/lib
137M    /var/local
20K     /var/lock
577M    /var/log
308K    /var/mail
72K     /var/opt
400K    /var/run
26M     /var/spool
6.5M    /var/tmp
8.0M    /var/www

(which sums up to about 1075MB)

root@sheep:~# df -h /var/
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb2             2.0G  2.0G   17M 100% /var

root@sheep:~# mount | grep var
/dev/sdb2 on /var type jfs (rw,noexec,nosuid,nodev,noatime)
/var/tmp on /tmp type none (rw,noexec,nosuid,nodev,bind,noatime)

as you can see, 2GB space seems to be exhausted, but only half of it seems
to be used. i'll probably enlarge /var, disk space is pretty cheap thes
days, but i wonder why the difference is *that* large.

i don't have much experience with jfs yet. i tried it several times (years
ago, and it always destroyed my data ;)), but now it's pretty stable, no
hassles so far.

this all is on linux/i386, running debian/unstable, 2.6.11-rc2-bk10.
i can provide more information if anything is unclear (e.g. output of
jfs_logdump 1.1.7?)

thanks,
Christian.

[1] i assume this is a faq and universal to several filesystems:
http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html
"Q: 'df' command says partition is full, while 'du' reports free space"
- --
BOFH excuse #296:

The hardware bus needs a new token.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCFTFWC/PVm5+NVoYRAkaBAJ9EEpQd142yt9MWos4ogdwrKktIwACglWOc
DwSd/Ic5llpzB3YYZNB5JP0=
=0ybE
-----END PGP SIGNATURE-----
_______________________________________________
Jfs-discussion mailing list
Jfs-discussion@www-...
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.