Network Appliance(TM)

Manual Pages


Table of Contents

NAME

df - display free disk space

SYNOPSIS

df [ -i ] [ pathname ]

DESCRIPTION

df displays statistics about the amount of free disk space in the system. All sizes are reported in 1024-byte blocks.

If a pathname is specified, df will report only on the corresponding volume; otherwise, it will report on every online volume in the system.

For each volume, df displays statistics about snapshots on a separate line from statistics about the active file system. The snapshot line reports the amount of space consumed by all the snapshots in the system. Blocks that are referenced by both the active file system and by one or more snapshots are counted only in the active file system line, not in the snapshot line.

If snapshots consume more space than has been reserved for them by the snap reserve command (see na_snap(1)), then the excess space consumed by snapshots is reported as used by the active file system as well as by snapshots. In this case, it may appear that more blocks have been used in total than are actually present in the file system.

With the -i option, df displays statistics on the number of free inodes.

EXAMPLES

Show file system disk space usage:
  toaster> df
  Filesystem           kbytes   used    avail      capacityMounted on
  /vol/root            4339168  1777824 2561344       41%  /vol/root
  /vol/root/.snapshot  1084788   956716  128072       88%  /vol/root/.snapshot

If snapshots consume more than 100% of the space reserved for them, then either the snapshot reserve should be increased (using snap reserve) or else some of the snapshots should be deleted (using snap delete). After deleting some snapshots, it may make sense to alter the volume's snapshot schedule (using snap schedule) to reduce the number of snapshots that are kept on line.

Show file system inode usage:



Data ONTAP 5.0     Last change: 7 August 1997                   1






User Commands                                            na_df(1)



  toaster> df -i
  Filesystem         iused  ifree   %iusedMounted on
  /vol/root          164591 14313     92% /vol/root

The number of inodes in the file system can be increased at any time using the maxfiles command (see maxfiles(1)).

SEE ALSO

na_maxfiles(1), na_rc(1), na_snap(1)

BUGS

On some NFS clients, the df command does not follow the NFS protocol specification correctly and may display incorrect information about the size of large file systems. Some versions report negative file system sizes; others report a maximum file system size of 2 GB, no matter how large the file system actually is.


Table of Contents