Skip to content

Commit bd0564f

Browse files
authored
Merge pull request #345 from NYU-RTS/robjy-troubleshoot
added storage troubleshooting section
2 parents f8f57ca + 3e22f74 commit bd0564f

3 files changed

Lines changed: 46 additions & 47 deletions

File tree

docs/hpc/03_storage/01_intro_and_data_management.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ There are also limits to the data transfer rate in moving to/from Google Drive.
6565
| /scratch | $SCRATCH | Best for large files | NO / Files not accessed for 60 days | 5 TB / 5 M |
6666
| /archive | $ARCHIVE | Long-term storage | YES / NO | 2 TB / 20 K |
6767
| HPC Research Project Space | NA | Shared disk space for research projects | YES / NO | Payment based TB-year/inodes-year |
68-
69-
Please see the next page for best practices for data management on NYU HPC systems.

docs/hpc/03_storage/05_best_practices.mdx

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,6 @@ _One of the common issues users report is running out of inodes in their home di
88

99
Users can check their current utilization of quota using the myquota command. The myquota command provides a report of the current quota limits on mounted file systems, the user's quota utilization, as well as the percentage of quota utilization. For details, please see [myquota](../06_tools_and_software/08_utils.mdx#myquota)
1010

11-
You can use the following command to print the list of files within each sub-folder for a given directory:
12-
```sh
13-
$cd $HOME
14-
$du --inodes -h --max-depth=1
15-
6 ./.ssh
16-
88 ./.config
17-
2 ./.vnc
18-
2 ./.aws
19-
3 ./.lmod.d
20-
5.3K ./.local
21-
3 ./.dbus
22-
408 ./ondemand
23-
2 ./.virtual_documents
24-
6 ./.nv
25-
6.7K ./.pixi
26-
33 ./workshop_scripts
27-
5 ./.cupy
28-
6 ./.gnupg
29-
1 ./.emacs.d
30-
194 ./.nextflow
31-
6 ./.terminfo
32-
2 ./.conda
33-
2 ./.singularity
34-
3 ./.vast-dev
35-
1 ./custom
36-
185 ./genai-workshop
37-
6 ./.atuin
38-
1 ./.apptainer
39-
9 ./.subversion
40-
4 ./packages
41-
1.4K ./.cache
42-
15K .
43-
```
44-
4511
## Large number of small files
4612
In case your dataset or workflow requires to use large number of small files, this can create a bottleneck due to read/write rates. Please refer to [our page on working with a large number of files](./06_large_number_of_small_files.md) to learn about some of the options we recommend to consider.
4713

@@ -51,3 +17,49 @@ Your home directory is limited to a relatively small number of inodes (30,000).
5117
:::
5218

5319
Please review the [Package Management section](../06_tools_and_software/01_intro.md#package-management-for-r-python--julia-and-conda-in-general) of the [Torch Software Page](../06_tools_and_software/01_intro.md).
20+
21+
## Troubleshooting quota issues
22+
23+
:::warning
24+
Being over your quota can cause problems logging into OOD and other issues. If you find that you're suddenly unable to log in, one of the first things you should check is your quota with the [`myquota`](../06_tools_and_software/08_utils.mdx#myquota) command.
25+
:::
26+
27+
If you find that you're over your quota, `myquota` will show you if you are over your quota for space or i-nodes or both. You can then see which folders most contribute to you being over quota with the following commands:
28+
29+
Here's how you can see which folders contain the most files:
30+
```bash
31+
du --inodes -h -s -- * .[!.]* ..?* 2>/dev/null | sort -hr | head -n 5
32+
```
33+
and here's how you can see which ones most contribute to your disk usage:
34+
```bash
35+
du -h -s -- * .[!.]* ..?* 2>/dev/null | sort -hr | head -n 5
36+
```
37+
38+
### Moving common dot directories from `/home` to `/scratch`
39+
40+
As mentioned elsewhere in our documentation, a problem we often see for our users is that of filling their `/home` directories by using common tools like VSCode, Cursor, etc. These applications put a dot directory in your `/home` directory and it can quickly overwhelm your quota.
41+
42+
Our recommended fix for this is to make a directory for these files in your `/scratch` directory and then make a symbolic link in your `/home` that points to the one you just created in `/scratch`. This allows these applications to write to what appears to be your `/home` directory, but is actually stored in your `/scratch` directory. This can be accomplished with the following commands:
43+
44+
:::warning
45+
The first part of the following commands will remove the contents of the dot directory in your `${HOME}` directory. Be sure to copy anything you'd like to save from that directory before executing.
46+
:::
47+
48+
For VSCode:
49+
```bash
50+
rm -rf ${HOME}/.vscode-server && mkdir -p ${SCRATCH}/vscode-server && ln -s ${SCRATCH}/vscode-server ${HOME}/.vscode-server
51+
```
52+
53+
For Cursor:
54+
```bash
55+
rm -rf ${HOME}/.cursor-server && mkdir -p ${SCRATCH}/cursor-server && ln -s ${SCRATCH}/cursor-server ${HOME}/.cursor-server
56+
```
57+
58+
For RStudio:
59+
```bash
60+
rm -rf ${HOME}/.local/share/rstudio && mkdir -p ${SCRATCH}/.local/share/rstudio && ln -s ${SCRATCH}/.local/share/rstudio ${HOME}/.local/share/rstudio
61+
```
62+
63+
For details about changing your default RStudio directory please see [User state storage](https://docs.posit.co/ide/server-pro/admin/rstudio_pro_sessions/workspace_management.html#user-state-storage).
64+
65+
Please contact [hpc@nyu.edu](mailto:hpc@nyu.edu) if you have any questions.

docs/hpc/06_tools_and_software/08_utils.mdx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ Space Variable /Flushed? Space / Files Space(%) / File
2020
/archive $ARCHIVE YES/NO 2.0TB/0.02M 0.0TB(0.0%)/1(0%)
2121
```
2222

23-
:::tip
24-
Here's how you can see which folders contain the most files:
25-
```bash
26-
du --inodes -h -s -- * .[!.]* ..?* 2>/dev/null | sort -hr | head -n 5
27-
```
28-
and here's how you can see which ones most contribute to your disk usage:
29-
```bash
30-
du -h -s -- * .[!.]* ..?* 2>/dev/null | sort -hr | head -n 5
31-
```
32-
:::
33-
3423
## `my_slurm_accounts`
3524

3625
`my_slurm_accounts` returns a list of `SLURM` accounts associated with your HPC account:

0 commit comments

Comments
 (0)