[CentOS] xfs quota question

mark m.roth at 5-cent.us
Thu Aug 9 21:24:09 UTC 2018


Valeri Galtsev wrote:
> 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.

Will that work if I do a mount -o remount?

    mark




More information about the CentOS mailing list