Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

df and du commands

ChiwatelFeb 9 2017 — edited Feb 9 2017

Hi All,

We are running a Linux machine :

Linux testmachine 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

We are looking for some space to put some big files. I then issue a df -h command and I have this result :

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/vg_system-lv_root

                       16G  3.0G   12G  20% /

/dev/mapper/vg_system-lv_srv

                      992M   34M  908M   4% /srv

/dev/mapper/vg_system-lv_tmp

                      9.7G  179M  9.1G   2% /tmp

/dev/mapper/vg_system-lv_opt

                       20G  579M   18G   4% /opt

/dev/mapper/vg_system-lv_sgbd

                       30G   23G  5.7G  80% /opt/sgbd

/dev/mapper/vg_system-lv_exploit

                      3.9G  3.8G     0 100% /exploit

/dev/mapper/vg_system-lv_var

                      7.8G  706M  6.7G  10% /var

/dev/mapper/vg_system-lv_vartmp

                      3.9G  215M  3.5G   6% /var/tmp

/dev/mapper/vg_system-lv_home

                      7.8G  241M  7.2G   4% /home

/dev/cciss/c0d0p1     494M   25M  444M   6% /boot

tmpfs                 7.9G  149M  7.7G   2% /dev/shm

/dev/mapper/vg_system-lv_aguila

                     1008M  115M  843M  12% /opt/aguila

/dev/mapper/vg_system-lv_oemcc

                      2.0G  952M  1.1G  48% /opt/oemcc

So to me, I have 18Gb free on /opt.

But when I issue the disk usage command on /opt a : du -h /opt, it says that my directory opt is using 24 Gb of space !

928K    ./emulex/rhel5/x86_64/lib64

936K    ./emulex/rhel5/x86_64

784K    ./emulex/rhel5/i386/lib

792K    ./emulex/rhel5/i386

1.7M    ./emulex/rhel5

1.8M    ./emulex

du: cannot read directory `./bb': Permission denied

24G     .

So I am a bit lost... Please help :-)

Many thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2017
Added on Feb 9 2017
5 comments
995 views