xfs_quota default quota not working

Latest response

Trying this ....

xfs_quota -x -c 'limit bsoft=1000m bhard=1200m -d' /topofdirectorytree

does not seem to be working.

We have issued the above command and then created a home area from scratch, copied over home areas from another server, but the default values seem to always be ...

bsoft=200M bhard=250M

for all of the home areas beneath /topofdirectorytree

We have issued the same command above on another server successfully. Copied over existing home areas, created from scratch, with the desired resulting default quota.

We are a bit new to xfs_quota. But have some experience quotas on Solaris

Any idea why the default setting above is not implementing?

Thanks

Responses

At some point in the past we had set the default quotas too low and that had been assigned to the userids

This is what we have come up with to undo the low quotas. If wrong or a better way feel free to comment ...

  1. Make sure "uquota" parameter is in the /etc/fstab entry for the "/topofthedirectorytree" Because umount/mount is apparently the only way to turn on XFS quotas.

  2. Turn off partition's "user" quotas... xfs_quota -x -c "off -u" /topofthedirectorytree

  3. Remove the user quota metadata... xfs_quota -x -c "remove -u" /topofthedirectorytree

  4. Set newly desired default quota... xfs_quota -x -c 'limit bsoft=1000m bhard=1200m -d' /topofthedirectorytree

  5. Remove the user accounts and copy them again to /topofthedirectorytree

  6. Check new default quotas... xfs_quota -x -c 'report -h' /topofthedirectorytree

It seems to work

Comments?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.