On 08/09/18 14:57, mark wrote:
Can I go to an existing xfs file system, and apply a soft quota to each
user on it? If I do, can I then run a report, and see who's using how
much, or does it only apply to files created after the quotas are applied?


After remounting XFS filesystem with option "usrquota" you can issue the command similar to:

xfs_quota -x -c "limit bsoft=8g bhard=10g -d" /home

This command will enable the limits above for all users (-d flag), except users who have their limits existing already (usually ones who preformed fs operations).

For those who already have some limits set you can still can change these limits, but with individual command, say in the loop, like:

for i in `cat user_list`; \
do xfs_quota -x -c "limit bsoft=8g bhard=10g $i; \
done

I hope, this helps.

Valeri


        mark

_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

Reply via email to