{"id":119,"date":"2009-09-01T10:45:37","date_gmt":"2009-09-01T15:45:37","guid":{"rendered":"http:\/\/blogs.cae.tntech.edu\/mwr\/?p=119"},"modified":"2024-10-27T14:26:19","modified_gmt":"2024-10-27T14:26:19","slug":"setting-up-project-quotas-under-xfs-in-debian-gnulinux","status":"publish","type":"post","link":"https:\/\/sites.tntech.edu\/renfro\/2009\/09\/01\/setting-up-project-quotas-under-xfs-in-debian-gnulinux\/","title":{"rendered":"Setting up Project Quotas under XFS in Debian GNU\/Linux"},"content":{"rendered":"<p>Quick and dirty notes for getting XFS project quotas running: I&#8217;m working on making storage areas for various capstone design class groups, vehicle teams, etc. I&#8217;d like to ensure that they don&#8217;t take an excessive amount of storage, too. These instructions are slightly different than what I&#8217;d found elsewhere, and I&#8217;m hoping to have someone confirm that what I&#8217;m doing is correct and update the appropriate man pages accordingly.<\/p>\n<p>So assuming we have a project for ME4444, group 3 (I already had projects defined for groups 1 and 2 from earlier tests):<\/p>\n<pre># grep \/home \/etc\/fstab\n\/dev\/md1000\/home        \/home   xfs     defaults,usrquota,prjquota      0      1\n# echo \"me4444-03:\/home\/projects\/me4444-03\" &gt;&gt; \/etc\/projects\n# echo \"me4444-03:3\" &gt;&gt; \/etc\/projid\n# mkdir \/home\/projects\/me4444-03\n# xfs_quota -x -c \"project -s me4444-03\"\nSetting up project me4444-03 (path \/home\/projects\/me4444-03)...\nProcessed 1 \/etc\/projects paths for project me4444-03\n# xfs_quota -x -c \"limit -p bsoft=5g bhard=10g me4444-03\"\n# xfs_quota -x -c \"report -p\"\nProject quota on \/home (\/dev\/md1000\/home)\n                               Blocks\nProject ID       Used       Soft       Hard    Warn\/Grace\n---------- --------------------------------------------------\nme4444-01           0          0    1048576     00 [--------]\nme4444-02           0    5242880   10485760     00 [--------]\nme4444-03           0    5242880   10485760     00 [--------]<\/pre>\n<p>Now group 3 has a 5 GB &#8220;soft&#8221; quota, can exceed that for up to 7 days at a time, but can never exceed their 10 GB &#8220;hard&#8221; quota. All that&#8217;s left is setting up directory permissions and Samba configuration so that the authorized users can store things there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick and dirty notes for getting XFS project quotas running: I&#8217;m working on making storage areas for various capstone design class groups, vehicle teams, etc. I&#8217;d like to ensure that they don&#8217;t take an excessive amount of storage, too. These instructions are slightly different than what I&#8217;d found elsewhere, and I&#8217;m hoping to have someone &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sites.tntech.edu\/renfro\/2009\/09\/01\/setting-up-project-quotas-under-xfs-in-debian-gnulinux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting up Project Quotas under XFS in Debian GNU\/Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":87,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-debian","category-linuxunix","entry"],"_links":{"self":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":1,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":451,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/posts\/119\/revisions\/451"}],"wp:attachment":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}