Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Displaying Information About Disk Space

The command you use to obtain information about the use of disk space on your system depends on the file system. The following sections show how to use the appropriate command for the file system to display data about disk use.

Use of Disk Space on ZFS File Systems

To display information about how ZFS disk space is used, use the zpool command as follows:

# zpool list root-pool

where root-pool is the name of the root pool on the system. The following example provides information about rpool, which has 10.0 Gbyte allocated and 580 Gbyte free.

# zpool list rpool
NAME   SIZE  ALLOC   FREE  CAP  HEALTH  ALTROOT
rpool   68G  10.0G  58.0G  14%  ONLINE  -

The command's –r option enables you to compare available space with actually used space in the root pool.

# zfs list -r rpool
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                      10.2G  56.8G   106K  /rpool
rpool/ROOT                 5.04G  56.8G    31K  legacy
rpool/ROOT/solaris         5.04G  56.8G  5.04G  /
rpool/dump                 1.00G  56.8G  1.00G  -
rpool/export                 63K  56.8G    32K  /export
rpool/export/home            31K  56.8G    31K  /export/home
rpool/swap                 4.13G  56.9G  4.00G  -

Use of Disk Space on UFS File Systems

To display information about how UFS disk space is used, use the df command.

$ df
/                  (/dev/dsk/c0t0d0s0 ):  101294 blocks   105480 files
/devices           (/devices          ):       0 blocks        0 files
/system/contract   (ctfs              ):       0 blocks 2147483578 files
/proc              (proc              ):       0 blocks     1871 files
/etc/mnttab        (mnttab            ):       0 blocks        0 files
/etc/svc/volatile  (swap              ):  992704 blocks    16964 files
/system/object     (objfs             ):       0 blocks 2147483530 files

To find out how disk space is used per user, use the quot command.

# quot /ufsfs
/dev/rdsk/c3t3d0s0:
21048   root
350   amy
250   rory

Note - The quot command works only on local legacy UFS file systems.