Re: xfs quota question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

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



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux