Solved

Linux df command

Posted on 2014-11-28
6
231 Views
Last Modified: 2014-12-15
Hi Experts,
I've this Linux machine:
Linux version 2.6.18-371.3.1.el5xen (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54))

I run df command:

[ora11g@hy]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vg_ora
                             9.7G  6.8G  2.5G  74%       /u01
/dev/lv_ora
                              59G   47G  8.2G  86%      /sxr/oracle
                                
      
I'd like to know Why the total size 9.7G isn't the same as Used+Available 6.8G + 2.5G (9.3G) and total 59G isn't the same as 47G + 8.2G (55.2)?

Thanks in advance!
0
Comment
Question by:ralph_rea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 40470362
Automatically reserved for root (during disaster, like storage fully filled, root can still log in, and do some work).
0
 

Author Comment

by:ralph_rea
ID: 40470376
I Know that 5% of the disk might be reserved for root but with plus 5% is still less of total size 59G
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 40470400
0
Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

 
LVL 40

Expert Comment

by:omarfarid
ID: 40470468
The difference in size you observed is due to file system over head, There is no exact ratio for this as it depends on factor like number of files or dirs and their sizes.
0
 
LVL 78

Expert Comment

by:arnold
ID: 40470885
Amount of space used is based on number of files and their space, inodes have a minimum file size (often 4k)such that a 1character file (1 byte)  will account for 4k of space used when computing how much space is left while not being reflected in actual space used.
0
 
LVL 62

Expert Comment

by:gheist
ID: 40471926
Can you post df output without parameters?
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question