# Disk quota exceeded

**URL:** https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259
**Category:** Unified Model
**Tags:** ARCHER2
**Created:** [6 October 2021 21:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259 "2021-10-06T21:56:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![luciana](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@luciana](https://cms-helpdesk.ncas.ac.uk/u/luciana)
#### Post date: [6 October 2021 21:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/1 "2021-10-06T21:56:22Z")

</div>

Hi.

This week Grenville just increased my disk quota from 1GB to 10GB, but I’m still having problems with `Disk quota exceeded`.

I’m using `lfs quota -u lrpedro /work/n02` to check my quota in `/work/n02/n02/lrpedro`, but I’m suspecting now that the problem is on `/home/n02/n02/lrpedro`. However, I don’t know how to check the quota for `home` (and I thought there was just one quota and `home` was just linking files from `work`.

Can you help me figure out how to fix this problem?

Kind regards, Luciana.

* * *

cp: cannot create directory ‘/home/n02/n02/lrpedro/netcdf-files/u-bo026-n96-t2-files/recon’: Disk quota exceeded  
lrpedro@uan01:~/cylc-run/u-bo026-n96-t2/work/19880901T0000Z\> lfs quota -u lrpedro /work/n02  
Disk quotas for usr lrpedro (uid 6557):  
Filesystem kbytes quota limit grace files quota limit grace  
/work/n02 816785048 0 10485760000 - 339599 0 0 -  
uid 6557 is using default file quota setting

* * *

---

<div class="post-metadata">

### Author: ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)
#### Post date: [7 October 2021 07:48 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/2 "2021-10-07T07:48:59Z")

</div>

Hi Luciana,

Yes it is indeed the `/home` quota that is exceeded. The `/home` disk is small so quotas are small for `/home`. All data files should be stored on the `/work` disk. I have increased your quota a little, however, I see you have a lot of netcdf files on `/home` which is causing your issue. I would suggest moving them to `/work`.

Regards,  
Ros.

---

<div class="post-metadata">

### Author: ![luciana](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@luciana](https://cms-helpdesk.ncas.ac.uk/u/luciana)
#### Post date: [11 October 2021 21:24 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/3 "2021-10-11T21:24:16Z")

</div>

For some reason, I answered this thread directly from my email, but the messages weren’t addressed and they are not here. So I’ll just copy them here.

**Visit Topic or reply to this email to respond.**

This was in the previous email, so that’s what I’ve done. If this function doesn’t work, this line shouldn’t be in the emails.

* * *

| from: | Luciana Rocha [lu.ufmg@gmail.com](mailto:lu.ufmg@gmail.com) |
| --- | --- |
| to: | NCAS Modelling Support [cms\_support+7c76b57cf6bb98b836d7d148acc4430b@discoursemail.com](mailto:cms_support+7c76b57cf6bb98b836d7d148acc4430b@discoursemail.com) |
| date: | 7 Oct 2021, 14:11 |
| subject: | Re: [NCAS Modelling Support] [Unified Model] Disk quota exceeded |
| mailed-by: | [gmail.com](http://gmail.com) |

Dear Ros.

Can you tell me what is the quota for home and how I check it?

Kind regards,

Luciana.

* * *

| from: | Luciana Rocha [lu.ufmg@gmail.com](mailto:lu.ufmg@gmail.com) |
| --- | --- |
| to: | NCAS Modelling Support [cms\_support+7c76b57cf6bb98b836d7d148acc4430b@discoursemail.com](mailto:cms_support+7c76b57cf6bb98b836d7d148acc4430b@discoursemail.com) |
| date: | 7 Oct 2021, 14:33 |
| subject: | Re: [NCAS Modelling Support] [Unified Model] Disk quota exceeded |
| mailed-by: | [gmail.com](http://gmail.com) |

Dear Ros.

I’m trying to delete the netcdf files but I’m not sure how to do it all at once. I’ve tried **find**  **. -type f -name ‘\*.o’ -delete** , but in ARCHER2 this command is not working recursively. And even after deleting some files manually, the usage in SAFE is not being updated. It would be nice to know how to sort this out.

Kind regards,

Luciana.

* * *

| from: | Luciana Rocha [lu.ufmg@gmail.com](mailto:lu.ufmg@gmail.com) |
| --- | --- |
| to: | NCAS Modelling Support [cms\_support+7c76b57cf6bb98b836d7d148acc4430b@discoursemail.com](mailto:cms_support+7c76b57cf6bb98b836d7d148acc4430b@discoursemail.com) |
| date: | 7 Oct 2021, 14:44 |
| subject: | Re: [NCAS Modelling Support] [Unified Model] Disk quota exceeded |
| mailed-by: | [gmail.com](http://gmail.com) |

Hi Ros.

Another weird problem.

lrpedro@uan01:~/netcdf-files\> git add -A; git commit -m “files”; git push  
fatal: failed to read from ‘u-bo026-n96-t2-files/atmos\_ens5/.nfs8034a08a000d49400000023d’: Device or resource busy  
On branch master  
Your branch is up to date with ‘origin/master’.

-rw-r–r-- 1 lrpedro n02 1304596480 Oct 6 22:32 .nfs8034a08a000d49400000023d  
find: cannot delete ‘./.nfs8034a08a000d49400000023d’: Device or resource busy

lrpedro@uan01:~/netcdf-files/u-bo026-n96-t2-files/atmos\_ens5\> rm .nfs8034a08a000d49400000023d  
rm: cannot remove ‘.nfs8034a08a000d49400000023d’: Device or resource busy

This week has been tough. 😕

Cordially, Luciana.

---

<div class="post-metadata">

### Author: ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)
#### Post date: [12 October 2021 08:00 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/4 "2021-10-12T08:00:14Z")

</div>

Hi Luciana,

Just looking in the logs I can see your emails were rejected as there is something wrong with the to: field. I will investigate. Sorry about that. This was working for someone else last week ok. The system logs tell me it sent you rejection emails, maybe worth checking your spam folder to check those did get to you.

> Can you tell me what is the quota for home and how I check it?

You can see your ARCHER2 disk quotas through SAFE. The usage is not updated instantaneously but updated periodically throughout the day. I’m not sure what the quota command is for the `/home`. I just tend use `du` and look in SAFE to see what my quota is.

> I’m trying to delete the netcdf files but I’m not sure how to do it all at once. I’ve tried **find**  **. -type f -name ‘\*.o’ -delete** , but in ARCHER2 this command is not working recursively.

This works on A2 fine for me

```auto
ARCHER2-ex> find testdir -name "*.o" -type f
testdir/file.o
testdir/anotherdir/file.o
ARCHER2-ex> find testdir -name "*.o" -type f -delete
ARCHER2-ex> find testdir -name "*.o" -type f
ARCHER2-ex>

```

> rm .nfs8034a08a000d49400000023d  
> rm: cannot remove ‘.nfs8034a08a000d49400000023d’: Device or resource busy

This is a known issue. See the [ARCHER2 website for the solution](https://docs.archer2.ac.uk/faq/#undeleteable-file-nfsxxxxxxxxxxx). If, by any chance, this doesn’t resolve the problem you will need to contact the ARCHER2 helpdesk to resolve it for you.

Regards,  
Ros.

---

<div class="post-metadata">

### Author: ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)
#### Post date: [12 October 2021 09:17 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/5 "2021-10-12T09:17:52Z")

</div>

Hi Luciana,

Further to the email replying issue. I confirm the system is working as expected, I’ve just tried it out. I notice that you are responding from your gmail account and not the one registered with your Discourse account. I suspect that either Discourse is confused because it knows nothing about your gmail account or the email header is getting modified when forwarded from Reading to gmail. To eliminate the former, please try adding your gmail address to your Discourse account by logging in and going to your profile (top right circle → person icon) then preferences to view your settings then click “Add alternate email”.

Hopefully that will fix the problem.

Regards,  
Ros.

---

<div class="post-metadata">

### Author: ![luciana](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@luciana](https://cms-helpdesk.ncas.ac.uk/u/luciana)
#### Post date: [13 October 2021 22:43 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/6 "2021-10-13T22:43:26Z")

</div>

Dear Ros.

I’ve added my gmail, so let’s see if that works now. Thank you for clarifying all my questions. 🙂

Kind regards,

Luciana.

---

<div class="post-metadata">

### Author: ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)
#### Post date: [3 November 2021 14:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/disk-quota-exceeded/259/7 "2021-11-03T14:06:09Z")

</div>


