df Command Netapp Cluster mode Awesome examples

df command Netapp cluster mode displays statistics about the amount of free disk space in one or all volumes and aggregates in cluster. All sizes are reported in 1024-byte blocks, unless otherwise requested by different options.

In cluster mode df command will give more flexible to fetch the information, we can also sort

Let’s Start using df command Netapp Cluster Mode (C Mode)

df command without any options will disk utilization Used space, Available Space, Used Capacity in Percentage (%), Mount Point, VServer Name and Total Space

  • Filesystem = Full volume Path
  • kbytes = Total volume Size in kilobytes
  • Used = Current Data size which is used space
  • Avail = Available space Total-Used=Avail
  • Mounted on = Which is the mount point where the volume data can be accessible
  • VServer = volume hosted on virtual storage
ArkIT-Cluster::> df
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/FINANCE/      1073741824    4202896 1069538928       0%  /FINANCE                  SVM1
/vol/FINANCE/.snapshot      0     661012          0       0%  /FINANCE/.snapshot        SVM1
/vol/SVM1_root/     996148        396     995752       0%  /                          SVM1
/vol/SVM1_root/.snapshot
                         52428       2008      50420       4%  //.snapshot                SVM1

show aggregate utilization

The following command shows the disk utilization for all aggregates including snapshot size.

ArkIT-Cluster::> df -A
Aggregate               kbytes       used      avail capacity
aggr1NA01 21055458816
                              18039816944 3015641872      86%
aggr1NA01/.snapshot 0          0          0       0%
aggr1-NA03 21055458816
                              17716967532 3338491284      84%
aggr1-NA03/.snapshot 0          0          0       0%

show Aggregate utilization without snapshot lines

Excluding snapshot lines from df command output and show only aggregate disk utilization. Space shows in bytes which is little bit difficult to see.

AtkIT-Cluster::> df -A -skip-snapshot-lines
Aggregate               kbytes       used      avail capacity
aggr1_NA01 21055458816
                              18039816872 3015641944      86%
aggr1_NA03 21055458816
                              17718328120 3337130696      84%

Same as above with human readable format

ArkIT-Cluster::> df -A -skip-snapshot-lines -autosize
Aggregate                total       used      avail capacity
aggr1_NA01        19TB       16TB     2875GB      86%
aggr1_NA03        19TB       16TB     3182GB      84%

ArkIT-Cluster::> df -fs-type active
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/CIFS/      1073741824    4202876 1069538948       0%  /CIFS                          SVM1
/vol/CIFS1/     996148        380     995768       0%  /                                  SVM1

show disk utilization with custom fields

As in cluster mode DATA ONTAP we can also use custom list with custom fields along with df command. Below is the example

ArkIT-Cluster::> df -fields aggregate,filesys-name,mounted-on,vserver,volume Volume1 -skip-snapshot-lines
vserver volume                  aggregate fs-type filesys-name                  mounted-on
------- ----------------------- --------- ------- ----------------------------- ----------
SVM1 Volume1 -         active  /vol/Volume1/ ---

inode information

check inode information, available inodes, used inodes and percentage

ArkIT-Cluster::> df -i
Filesystem               iused      ifree  %iused  Mounted on                 Vserver
/vol/CIFS1/          166802   31709887      0%  /CIFS1                  SVM1
/vol/SVM1_root/        115      31007      0%  /                          SVM1

sort by free inodes

Sort output by more than specified free inodes. shows all volumes with more than 10000 inodes free

ArkIT-Cluster::> df -inodes-free >10000
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/CIFF1/      1073741824    4202876 1069538948       0%  /CIFS1                  SVM1
/vol/SVM1_root/     996148        372     995776       0%  /                          SVM1

Below is the example which shows all volumes with de-duplication savings of less than 10%, skipping snapshot lines.

ArkIT-Cluster::> df -dedupe-saved <10 -skip-snapshot-lines
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/SVM1_root/     996148        372     995776       0%  /                          SVM1
/vol/Shared/   2147483648 1658288272  489195376      77%  /Shared               SVM1

show volumes from specified vserver

ArkIT-Cluster::> df -vserver CIFS1
Filesystem              kbytes       used      avail capacity  Mounted on
/vol/CIFS_vol1/      1073741824    4202876 1069538948       0%  /CIFS_vol1

Show particular volume disk utilization

ArkIT-Cluster::> df -volume na01
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/na01/          2147483648 1713742644  433741004      80%  /na01                      SVM1
/vol/na01/.snapshot          0   31025868          0       0%  /na01/.snapshot            SVM1
2 entries were displayed.

ArkIT-Cluster::> df -volume na01 -skip-snapshot-lines
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/na01/          2147483648 1713742656  433740992      80%  /na01                      SVM1

ArkIT-Cluster::> df -volume na01 -skip-snapshot-lines -h
Filesystem               total       used      avail capacity  Mounted on                 Vserver
/vol/na01/              2048GB     1634GB      413GB      80%  /na01                      SVM1

Sort the volume (Disk utilization) which are more then 90% utilized. Below is the example.

ArkIT-Cluster::> df -h -percent-used-space >90%
Filesystem               total       used      avail capacity  Mounted on                 Vserver
/vol/Oracle_vol1/  100GB       90GB     9482MB      91%  ---                        ORA1
/vol/Oracle_vol2/ 1536GB     1393GB      142GB      91%  ---                        ORA1

Sort by Compression

Sort output by percentage of disk space saved using compression, the command displays information only about the volumes with the specified percentage saving through compression. Acceptable values for percentage are 50, 50%, 150%, -20, -40%, <30%, > 20. df command Netapp cluster mode

We can also make use of -compression-saved [KB|MB|GB|TB|PB]

ArkIT-Cluster::> df -percent-compression-saved >10% -autosize
There are no entries matching your query.

ArkIT-Cluster::> df -percent-compression-saved <10% -autosize
Filesystem               total       used      avail capacity  Mounted on                 Vserver
/vol/CIFS1/          1024GB     4104MB     1019GB       0%  /CIFS1                  SVM1

There are lot many options to show disk utilization with df command Netapp cluster mode

Few of them are below

  • -k = KB
  • -m = MB
  • -g = GB
  • -t = TB
  • -p = PB
  • –used-space [KB|MB|GB|TB|PB]
  • –reserved-space [KB|MB|GB|TB|PB]
  • -total-saved <integer>[KB|MB|GB|TB|PB]
  • -mounted-on <text>

For more information about df command Netapp Cluster mode refer below links

Netapp Disk Utilization

Thanks for the Read. Please provide your valuable feedback on the same.

Related Articles

All Netapp cluster mode commands

How to Setup Netapp Cluster Step by Step guide

Thanks for your wonderful Support and Encouragement

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

2 Responses

  1. Amol Ghadigaonkar says:

    Good one…. You posts are always informative.. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *