Use the following task map for a list of management tasks you can perform on disks.
|
The following list summarizes the commands available for displaying information about file size and disk space.
zpool list – displays pool space size, how much space is allocated to datasets and internal metadata and how much space is unallocated. See the zpool(1M) man page.
zfs list – displays amount of space consumed by datasets and any descendents, the amount of space available to the dataset and its descendents, and the amount of data that is referenced by this dataset, which may or may not be shared with other datasets in the pool. See the zfs(1M) man page.
df – reports the number of free disk blocks and files. See the df(1M) man page.
du – summarizes disk space allocated to each subdirectory. See the du(1) man page.
find –size – searches recursively through a directory based on the size specified with the –size option. See the find(1) man page.
ls – lists the size of a file in the power of 1024 scaling. See the ls(1) man page.
The zpool list and zfs list commands are better than the legacy df and du commands for determining your available ZFS storage pool and file system space. With the legacy commands, you cannot easily discern between pool and file system space, nor do the legacy commands account for space that is consumed by descendent file systems or snapshots.