The ZFS filesystem is an alternative to XFS. While introduced originally in the Solaris OS, ZFS has been ported to ZFS_on_Linux. See also the OpenZFS developers page.
Furthermore, we have written a ZFS filesystems quick configuration guide.
The files in the present repository augment the tools provided by the ZFS software stack. Mainly lacking are tools for handling user disk quotas.
We provide the following scripts for checking ZFS user quotas by the root user only:
-
zfsrepquota Report ZFS disk quotas, use
-u username
to limit to a single user. -
zfsdefaultquota Set default quotas for all users in a filesystem
-
zfssetquota Set quotas for one or more users in a filesystem
-
zfs_over_quota Send E-mail alerts from the file server to users who are getting close to their quota limit.
Copy these scripts to the /usr/local/sbin/
folder.
The Makefile will install the scripts.
Periodic reports can be sent by a crontab
job, for example:
10 8,13,17 * * * /usr/local/sbin/zfs_over_quota
The zfs userspace
command is only permitted for the root user.