{"id":2238,"date":"2019-02-08T16:11:05","date_gmt":"2019-02-08T16:11:05","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2238"},"modified":"2026-08-12T15:18:44","modified_gmt":"2026-08-12T14:18:44","slug":"quota","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/filesystems\/quota\/","title":{"rendered":"Storage quotas and usage"},"content":{"rendered":"<p>To ensure fair-usage of storage, the <em>home<\/em> directory storage and any additional <em>Research Data Storage<\/em> (RDS) areas have quotas applied to them. The following sections show how to check the quota of the areas of storage you have access to and how to measure your usage of the storage.<\/p>\n<p>We generally ask users to keep their <em>home<\/em> storage to <strong>50GB or less<\/strong>. RDS storage areas have their own (larger) quota, arranged with the owner of the storage. There are no quotas on <em>scratch<\/em> but an automatic <a href=\"\/csf3\/filesystems\/scratch-cleanup\/\">scratch cleanup policy<\/a> is enforced to delete old scratch files.<\/p>\n<h2>Home Directories<\/h2>\n<p>Home directories are located on the <em>Isilon<\/em> storage platform and therefore have quotas applied to them.<\/p>\n<h3>Group Storage Quota and Usage<\/h3>\n<p>Your <em>home directory<\/em> (folder) is itself in a parent folder associated with your research group. The group area has a <em>storage quota<\/em> applied to it &#8211; the overall usage is restricted, usually to a total that depends on the size of the group. We request that users try <strong>not to use more than 50GB each<\/strong>.<\/p>\n<p>You can find out the overall <em>quota<\/em> and <em>usage<\/em> for your group by running the following command:<\/p>\n<pre>df -h $HOME\r\n\r\nFilesystem                                     <strong>Size  Used Avail Use%<\/strong> Mounted on\r\nnas.isilonr.manchester.ac.uk:\/ifs\/nas\/path...  <strong>4.0T  2.5T  1.6T  63%<\/strong> \/mnt\/<em>iusers01<\/em>\r\n     #                                           #                          #\r\n     #                                           #                          #\r\n     #                                           # The overall size:  4TB   #\r\n     # You can ignore the <em>Filesystem<\/em> name        # Storage used:    2.5TB   # You can ignore the\r\n                                                 # Still available: 1.6TB   # <em>Mounted on<\/em> name\r\n                                                 # Storage is 63% full\r\n<\/pre>\n<p>Remember, this is the overall usage and quota for your group&#8217;s storage area used for home directories. <strong>If you use too much storage you will fill your group&#8217;s area, preventing you and your colleagues from working!<\/strong><\/p>\n<h3>Your home total usage<\/h3>\n<p>To measure your own home directory usage please submit the following batch job. We use a batch job because running the command on the login node can slow down the login node for all other users. Measuring your usage can also take some time to complete so running it in batch will allow you to carry on working (or you can log off and collect the result later).<\/p>\n<pre class=\"slurm\"># Batch command run on the login node to measure your home directory usage:\r\nsbatch -p serial -t 15 -J home-dir-usage -o %x.o%j --wrap=\"du -schx ~\"\r\n<\/pre>\n<p>The total storage usage will be reported in a plain text file (in your home directory) named <code>home-dir-usage.o<em>12345<\/em><\/code> where <code><em>12345<\/em><\/code> will be a job-id number unique to your job.<\/p>\n<h2>Scratch<\/h2>\n<p>The <em>scratch<\/em> area <code>~\/scratch<\/code> is a different filesystem (different physical storage) to your home directory. There is no quota applied to this directory but you are expected to delete unwanted \/ temporary files after jobs have completed to ensure you don&#8217;t use excessive amounts of storage.<\/p>\n<p><strong>The system can also delete files older than 3-months to free up space!<\/strong> (please see the <a href=\"\/csf3\/filesystems\/scratch-cleanup\/\">scratch cleanup policy<\/a> for more information)<\/p>\n<h3>Your scratch total usage<\/h3>\n<p>To see how much scratch space you are using and how many files you have stored there, run the following command on the login node:<\/p>\n<pre>scrusage\r\n\r\n# Example output\r\nYour scratch usage: 450.7GB, 84,053 files\r\n                      #\r\n                      # This user is using 450 GB of scratch space (via 84,053 files).\r\n                      # This is a lot. They should delete some files!\r\n<\/pre>\n<h2>Additional RDS areas<\/h2>\n<p>If your group has access to additional <em>Research Data Storage<\/em>, usually accessible via a shortcut in your home directory named <code>~\/data<\/code> (or <code>~\/rds<\/code>) then you can check the group&#8217;s overall quota and your usage using similar commands to those used for the <em>home<\/em> directory:<\/p>\n<pre class=\"slurm\"># Overall quota and usage stats for additional RDS area\r\ndf -h ~\/<em>rds<\/em>\/\r\n        #\r\n        # Use the name of your shortcut to your RDS area\r\n\r\n# Your total usage in the additional RDS area\r\nsbatch -p serial -t 15 -J rds-dir-usage -o %x.o%j --wrap=\"du -schx ~\/<em>rds<\/em>\/\"\r\n<\/pre>\n<h2>Faster and detailed interactive usage scanning<\/h2>\n<h3>Running the scan<\/h3>\n<p>You can use the <code>ncdu<\/code> utility to interactively scan <em>any<\/em> directory you have <em>Read<\/em> access to, including your home directory, scratch directory and any other place like an RDS share. This method is quicker than using the <code>du<\/code> command and you can look through the sub-directories and find what is consuming most of your space.<\/p>\n<pre class=\"slurm\"># First start an <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/batch-slurm\/srun\/\" target=\"_blank\" rel=\"noopener\">interactive job\/session<\/a>\r\nsrun -p interactive -n 8 -t 0-1 --pty bash\r\n\r\n# Load the ncdu module which will do the scanning\r\nmodule purge\r\nmodule load apps\/binapps\/ncdu\/2.9.1\r\n\r\n# cd to the directory which you want to scan\r\ncd\r\n#or\r\ncd ~\/scratch\/\r\n\r\n# Start scanning\r\nncdu -t $SLURM_NTASKS -r\r\n\r\n<\/pre>\n<h3>Viewing and navigating the results<\/h3>\n<h4>Scanning<\/h4>\n<p>While scanning is still in progress, you will see this view:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-12552\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage.png\" alt=\"\" width=\"880\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage.png 879w, https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage-300x110.png 300w, https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage-768x280.png 768w\" sizes=\"(max-width: 879px) 100vw, 879px\" \/><br \/>\nLet the scanning complete.<\/p>\n<h4>Scan result<\/h4>\n<p>When the scan is completed, you will be presented with the scan results.<br \/>\nAt the top line starting with <code>---<\/code> the path of the scanned directory is shown.<br \/>\nThen the sub-directories are listed in descending order, based on their size.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-12552\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage1.png\" alt=\"\" width=\"880\" \/><\/p>\n<p>At the bottom left you will see the <strong>Total disk usage<\/strong> of the directory. It is <strong>1.1TB<\/strong> in the above example.<br \/>\nAt the same line, towards the right end <strong>Items<\/strong> shows the total number of files and folders of the directory (3,693,319 in the example).<\/p>\n<h4>Navigating<\/h4>\n<p>You can navigate into sub-directories by using the <strong>arrow keys<\/strong> and then hitting <strong>Enter<\/strong>. In this example using the <strong>down arrow key<\/strong>, we have scrolled down and selected\/highlighted the <code>.conda<\/code> sub-directory:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-12552\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage2.png\" alt=\"\" width=\"880\" \/><\/p>\n<p>With the <code>.conda<\/code> sub-directory selected\/highlighted, when you hit <strong>Enter<\/strong>, you will be presented with the contents and detailed usage of the .<code>.conda<\/code> sub-directory:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-12552\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/usage3.png\" alt=\"\" width=\"880\" \/><br \/>\nTo return to the previous\/upper-level directory, navigate towards the top to highlight the item <strong><code>\/..<\/code><\/strong> and hit <strong>Enter<\/strong>.<\/p>\n<p>You can use <code>i<\/code> to toggle on and off more information about a file\/directory &#8211; e.g. it will tell you how many files in a particular folder.<\/p>\n<h4>Quitting<\/h4>\n<p>Press <strong><code>q<\/code><\/strong> to quit <strong>ncdu<\/strong>.<br \/>\nType <strong><code>exit<\/code><\/strong> and hit <strong>enter<\/strong> to exit the interactive job\/session.<\/p>\n<p><strong>TIP<\/strong>: If you have lots of files and folders in the directory you are scanning, request a larger number of cores for your interactive job (e.g. <strong>-n 16<\/strong>). More number of cores means faster scanning. 8-Core is good for few hundred GB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To ensure fair-usage of storage, the home directory storage and any additional Research Data Storage (RDS) areas have quotas applied to them. The following sections show how to check the quota of the areas of storage you have access to and how to measure your usage of the storage. We generally ask users to keep their home storage to 50GB or less. RDS storage areas have their own (larger) quota, arranged with the owner of.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/filesystems\/quota\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":94,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2238","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2238"}],"version-history":[{"count":21,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2238\/revisions"}],"predecessor-version":[{"id":12607,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2238\/revisions\/12607"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=2238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}