Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
One of redhat server using hide space. unabel to find which space.
/opt has 10gb space, it has using only 500mb. when I do run df -h, it shows 90% use.
please help to find out.
Did you use `du -s /opt' to get the 500 MB number?
Is /opt on it's own partition. df will report on the free space and usage of the entire filesystem, not just of a directory.
Another possibility is a sparse file which uses less actual physical space then its size indicates.
A deleted file can still be open by a process, resulting in less free space available. This will be found in /var/run/, /var/tmp/ and /tmp/. Processes do this to prevent accidental temporary file name collisions, and to delete the file automatically if the process crashes. But du won't count it because it isn't in the directory listing.
Processes can keep files open although they are no longer on the system (e.g. deleted). df will include the size of those files while du does not see them.
The easiest is to reboot the system as that will clear it. The alternative is to use lsof and see which processes have files open and restart those processes.
You haven't indicated if /opt is a mount point for a partition or if it is a directory on the root file system. If it is a directory, then df is reporting on the disk usage of /.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.