{"id":1346,"date":"2025-06-06T16:17:10","date_gmt":"2025-06-06T14:17:10","guid":{"rendered":"https:\/\/ndk.sytes.net\/wordpress\/?p=1346"},"modified":"2025-06-06T16:18:55","modified_gmt":"2025-06-06T14:18:55","slug":"enable-xfs-quota-on-rocky-linux-9","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1346","title":{"rendered":"Enable XFS quota on Rocky Linux 9"},"content":{"rendered":"\n<p>First check the quotas are not enabled by command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># mount | grep xfs<\/pre>\n\n\n\n<p>You should see &#8220;noquota&#8221; in the output<\/p>\n\n\n\n<p>Also check with following command, it will give empty result means that quota is disabled.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># xfs_quota -x -c state<\/pre>\n\n\n\n<p>Please add rootflags=uquota in &#8220;GRUB_CMDLINE_LINUX&#8221; in \/etc\/sysconfig\/grub:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">GRUB_CMDLINE_LINUX=\"crashkernel=auto rhgb quiet rootflags=uquota\"<\/pre>\n\n\n\n<p>Then generate grub.cfg in \/boot:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/pre>\n\n\n\n<p>Final step update all current kernels:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># grubby --args=\"rootflags=uquota\" --update-kernel=ALL<\/pre>\n\n\n\n<p>Check if the quota option is used in \/etc\/fstab:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">UUID=df5462ce-cd8a-417d-a454-7688139cf2228 \/ xfs defaults,uquota 0 0<\/pre>\n\n\n\n<p>Finally reboot your machine. Afterward your mount command should show usrquota.<\/p>\n\n\n\n<p>Source: <a href=\"https:\/\/webuzo.com\/docs\/admin\/enable-xfs-quotas\/\">https:\/\/webuzo.com\/docs\/admin\/enable-xfs-quotas\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First check the quotas are not enabled by command. # mount | grep xfs You should see &#8220;noquota&#8221; in the output Also check with following command, it will give empty result means that quota is disabled. # xfs_quota -x -c state Please add rootflags=uquota in &#8220;GRUB_CMDLINE_LINUX&#8221; in \/etc\/sysconfig\/grub: GRUB_CMDLINE_LINUX=&#8221;crashkernel=auto rhgb quiet rootflags=uquota&#8221; Then generate grub.cfg [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-1346","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1346"}],"version-history":[{"count":3,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1346\/revisions"}],"predecessor-version":[{"id":1349,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1346\/revisions\/1349"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}