{"id":195,"date":"2021-07-23T12:19:08","date_gmt":"2021-07-23T12:19:08","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-disable-filesystem-quotas\/"},"modified":"2021-07-23T12:19:08","modified_gmt":"2021-07-23T12:19:08","slug":"how-to-disable-filesystem-quotas","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-disable-filesystem-quotas\/","title":{"rendered":"How to Disable Filesystem Quotas"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>Filesystem quotas allow server owners to limit the amount of disk space that an account uses. For most hosting providers, this is an integral part of how they manage cPanel accounts. However, in some circumstances, you may wish to disable filesystem quotas in order to improve your server\u2019s performance.<\/p>\n<ul>\n<li>\n<p>In cPanel &#038; WHM version 74 and earlier, when you log in to WHM for the first time, the <em>Initial Setup Assistant<\/em> interface appears. The <em>Set Up Quotas<\/em> section of this interface (Step 6) allows you to enable or disable quotas. We <strong>removed<\/strong> the <em>Initial Setup Assistant<\/em> interface in cPanel &#038; WHM version 76.<\/p>\n<\/li>\n<li>\n<p>In cPanel &#038; WHM version 76 and later, the installation process enables quotas by default. You <strong>must<\/strong> wait until after installation to disable quotas.<\/p>\n<\/li>\n<\/ul>\n<p>You can enable quotas in WHM\u2019s <em>Initial Quota Setup<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Server Configuration &gt;&gt; Initial Quota Setup<\/em>) or via the <code>\/usr\/local\/cpanel\/scripts\/fixquotas<\/code> script.<\/p>\n<h2 id=\"disable-for-the-root-xfs-filesystem\">Disable for the root XFS filesystem<\/h2>\n<p>To disable filesystem quotas for the <code>root<\/code> XFS filesystem:<\/p>\n<ol>\n<li>\n<p>Use SSH to connect to your server as the <code>root<\/code> user.<\/p>\n<\/li>\n<li>\n<p>Open the <code>\/etc\/default\/grub<\/code> file and remove the following line:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  <span style=\"color:#e6db74\"><code>rootflags=uquota<\/code><\/span>\n<\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>Save and close the file.<\/p>\n<\/li>\n<li>\n<p>Run the following command to update the GRUB bootloader:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  grub2<span style=\"color:#f92672\">-<\/span>mkconfig <span style=\"color:#f92672\">--<\/span>output<span style=\"color:#f92672\">=<\/span><span style=\"color:#e6db74\">\/boot\/g<\/span>rub2<span style=\"color:#f92672\">\/<\/span>grub<span style=\"color:#f92672\">.<\/span>cfg\n<\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>Run the following command to disable quotas:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  xfs_quota <span style=\"color:#f92672\">-<\/span>x <span style=\"color:#f92672\">-<\/span>c <span style=\"color:#e6db74\">'off'<\/span> <span style=\"color:#f92672\">-<\/span>c <span style=\"color:#e6db74\">'remove'<\/span> <span style=\"color:#f92672\">\/<\/span>\n<\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>Use your preferred method to reboot your server.<\/p>\n<\/li>\n<li>\n<p>Run the following command to confirm your changes:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  mount <span style=\"color:#f92672\">|<\/span> grep <span style=\"color:#e6db74\">' \/ '<\/span>\n<\/code><\/pre>\n<\/div>\n<p>The output should resemble the following example:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  <span style=\"color:#e6db74\">\/dev\/<\/span>vda1 on <span style=\"color:#f92672\">\/<\/span> type xfs (rw,relatime,attr2,inode64,noquota)\n<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"disable-for-non-root-xfs-filesystems\">Disable for non-root XFS filesystems<\/h2>\n<p>To disable filesystem quotas for non-<code>root<\/code> filesystems:<\/p>\n<ol>\n<li>\n<p>Use SSH to connect to to your server as the <code>root<\/code> user.<\/p>\n<\/li>\n<li>\n<p>Open the <code>\/etc\/fstab<\/code> file and remove the <code>uquota<\/code> entry for your mount or filesystem.<\/p>\n<\/li>\n<li>\n<p>Save and close the file.<\/p>\n<\/li>\n<li>\n<p>Run the following command to disable quotas:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  xfs_quota <span style=\"color:#f92672\">-<\/span>x <span style=\"color:#f92672\">-<\/span>c <span style=\"color:#e6db74\">'off'<\/span> <span style=\"color:#f92672\">-<\/span>c <span style=\"color:#e6db74\">'remove'<\/span> path_to_mount\n<\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>Run the following command to remount the filesystem, where <code>path_to_mount<\/code> represents the absolute path to your mount point:\n<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">  mount <span style=\"color:#f92672\">-<\/span>o remount path_to_mount\n<\/code><\/pre>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>It is <strong>not<\/strong> necessary to reboot the server when you disable quotas for <code>non-root<\/code> filesystems. However, you can reboot the server as an alternative to this step.<\/p>\n<\/p><\/div>\n<\/div>\n<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview Filesystem quotas allow server owners to limit the amount of disk space that an account uses. For most hosting providers, this is an integral part of how they manage cPanel accounts. However, in some circumstances, you may wish to disable filesystem quotas in order to improve your server\u2019s performance. In cPanel &#038; WHM version &hellip;<\/p>\n","protected":false},"author":1,"featured_media":196,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/195"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/196"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}