Skip to content

Ask AI

Powered by Blaze

Answers come from E2E Cloud documentation. AI can make mistakes.

Put data on a disk

View as Markdown

Put data on a disk from the instance that mounts it. Every file goes in through the instance, including data you copy from an Object Storage (EOS) dataset. Once the disk is mounted on an instance, its folder /datasets/<name> is there for you to write to from a terminal on the instance, in JupyterLab or over SSH.

Check that the disk has room for the data with df -h on the instance. Then copy files into the disk’s folder as you would on any file system, or write to the folder from your code. Replace <name> with your disk’s Dataset Name and <file> with a file on the instance:

cp <file> /datasets/<name>/

To bring files from your own computer or another server onto the instance first, see Copy files to and from an instance. Compress data before you write it to save space on the disk.

An Object Storage dataset mounts read-only, so keep data you change on a disk. To copy a dataset onto a disk, mount both on the same instance, then copy from one folder to the other. Replace <alias> with the Object Storage dataset’s Alias (Dataset Name):

cp -r /datasets/<alias>/. /datasets/<name>/

Keep large reference data in Object Storage and mount it from there, and keep the disk small for scratch space and steps that write. For the mount steps, see Mount datasets and file systems on an instance.

Copy files out of the mounted folder from the same terminal, as Copy files to and from an instance describes. To remove data, delete the files from the folder. Deleting files frees space on the disk, and the bill stays the same, because a disk is billed by the size you allocated.

The data stays on the disk when you unmount it, so you can mount the disk on another instance and find it there.

If the folder is missing in the instance, see Troubleshooting TIR Block Storage.

Was this page helpful?