Updated on 2024-04-30 GMT+08:00

Disk Space Used Up

Symptom

  • Error message "No Space left on Device" is displayed when a notebook instance is used.
  • Error message "Disk quota exceeded" is displayed when code is executed in a notebook instance.

Possible Causes

  • After a file is deleted from the navigation pane on the left of JupyterLab, the file is moved to the recycle bin by default. This occupies memory, leading to insufficient disk space.
  • The disk quota is insufficient.

Solution

Check the storage space used by the VM, check the memory used by files in the recycle bin, and delete unnecessary large files from the recycle bin.

  1. On the notebook instance details page, view the storage capacity of the instance.

  2. Check the storage space used by the VM. The storage space is typically close to the storage capacity.
    cd /home/ma-user/work
    du -h --max-depth 0

  3. Run the following commands to check the memory used by the recycle bin (recycle bin files are stored in /home/ma-user/work/.Trash-1000/files by default):
    cd /home/ma-user/work/.Trash-1000/
    du -ah

  4. Delete unnecessary large files from the recycle bin. Deleted files cannot be restored.
    rm {File path}

    If the name of the folder or file you want to delete contains spaces, add single quotation marks to the name.

  5. Run the following commands to check the storage space used by the VM again:
    cd /home/ma-user/work
    du -h --max-depth 0
  6. If the notebook instance uses an EVS disk for storage, expand the storage capacity on the notebook instance details page.

Summary and Suggestions

It is a good practice to delete unnecessary files when using a notebook instance to prevent a training failure caused by insufficient disk space.