help in reading "df" results


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat help in reading "df" results
# 1  
Old 04-13-2010
help in reading "df" results

Hi All
I am newbie to RED HAT and I am trying to check the disk space I have available doing "df -h".

The result is reported below.
Do you know how to understand which line is the one telling how many Gb remain in my physical hard disk?
I know that probably my Network Admin mounted something as using some networked kind of disk but I don't know how to reckon it readnig these lines.
Is there any specific command giving me this information
Thanks all
MNST


Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       71G   27G   40G  41% /
/dev/sda1              99M   11M   83M  12% /boot
tmpfs                1005M     0 1005M   0% /dev/shm
netapp2:/vol/vol1     356G  258G   99G  73% /mnt/vol1


Last edited by pludi; 04-13-2010 at 08:38 AM.. Reason: code tags, please...
# 2  
Old 04-13-2010
The top columns explain it for you.

Size is the total size of the disk/volume. Used is the amount you subtract from the size. Avail is that figure, with the math done for you, so in your case:


/dev/mapper/VolGroup00-LogVol00 corresponds to your / or (root) directory

It is 71GB and you have used 27GB. You have used 41% and have 40GB remaining.

Also, realize that while df -h is more readable, the numbers are slightly rounded as there is more precision in smaller increments.

Should you be interested in finding what files themselves are taking up space, please look up "du"

Also, there are some debates about this, but you have carved up a volume group into a logical volume with a single mount point (excluding /boot, which can't go onto the logical volume). This is simple, but gives you some issues if a single process or directory fills up, it fills the entire disk.

You should be ok, as if you did this as a normal install, EXT3 (the file system most commonly used) will allocate 5% of the disk as unusable to all except root for just this type of occurrence.


This line:
netapp2:/vol/vol1 356G 258G 99G 73% /mnt/vol1

is what your Network Admin probably mounted. This is a remote file system attached to your device named "netapp2" and provides an additional 356GB, of which 73% is used, so you have 99GB free.
# 3  
Old 04-19-2010
look for a colon (':') to identify NFS filesystems

- when you find a name in the "Filesystem" column of `df' that has a colon (':'), it indicates an NFS (Networked File System) mounted on your host ;

- by the output of `df' you posted, I'd say
Code:
netapp2:/vol/vol1     356G  258G   99G  73% /mnt/vol1

is an NFS ;

good luck, and success !

alexandre botao
<< botao {dot} org >>
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Search file containing ps results for a match "my.cnf" and then for a second match . "ok:" and

I need to find two matches in the output from ps. I am searching with ps -ef |grep mysql for: my.cnf /bin/sh /usr/bin/mysqld_safe --defaults-file=/data/mysql/master/agis_core/etc/my.cnf after this match I want to search back and match the hostname which is x number of lines back, above the... (2 Replies)
Discussion started by: bash_in_my_head
2 Replies

3. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

4. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

5. UNIX for Dummies Questions & Answers

Confused over results using "tee" in piped command

First post here, so hopefully all guidelines are followed, and thanks in advance for any replies. I'm working on a shell script(BASH) that processes a csv file and performs various tasks with the data. All is well, except I want to use 'tee' to send output from 'wc' to a file as well as pipe it... (4 Replies)
Discussion started by: jazzmusic
4 Replies

6. Shell Programming and Scripting

Awk find in columns with "if then" statement and print results

I have a file1.txt file1.txt F-120009210","Felix","U-M-F-F-F-","white","yes","no","U-M-F-F-F-","Bristol","RI","true" F-120009213","Fluffy","U-F-","white","yes","no","M-F-","Warwick","RI","true" U-120009217","Lity","U-M-","grey","yes","yes","","Fall River","MA","true"... (4 Replies)
Discussion started by: charles33
4 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question