Skip to main content

Instance Net Disk (Highly Recommended)

The instance net disk corresponds to the /gz-fs directory of the instance. This directory is a distributed storage system within the same data center as the instance, providing excellent read and write performance for large files or compressed files. The instance net disk is not affected by instance deletion/release and uses distributed redundant storage, offering high data security. It is strongly recommended to use the net disk for data backup.

Advantages of the Instance Net Disk:

  1. Data Sharing Between Instances

    • Multiple instances created under the same account within the same high-availability cloud data center will simultaneously mount the /gz-fs directory for sharing, enabling data sharing between instances under the same account.
  2. Backup of Personal Data/Code/Datasets/Models

    • The /gz-fs directory is ideal for long-term storage of necessary data before shutting down or deleting/releasing an instance. This way, you don’t need to re-upload data when creating a new GPU instance.
  3. High Availability

    • The instance net disk adopts a multi-node distributed high-availability storage solution built by the data center. The storage cluster ensures redundancy and multiple replicas, making it far more reliable than the instance system disk/data disk. Instance system/data disks are local and do not provide redundancy.
  4. Security

    • The /gz-fs directory is mounted only to instances created under the same account within the same data center. Other accounts have no read/edit permissions.
  5. Read/Write Performance

    • The instance net disk offers excellent performance for large files or compressed files but may perform slightly worse for read/write of millions of small files.

Upload Data to Net Disk via Console

  1. Enter the GPUGEEK Console.
  2. Click Upload, select local data files, then click Finish after the upload completes.
  3. Enter the instance terminal:
# Use the ls command in the terminal to view files in the /gz-fs/ directory
ls -rlht /gz-fs/
total 1.1M
-rw-r--r-- 1 root root 1.1M Mar 7 19:16 TensorRT-8.5.1.7.Linux.x86_64-gnu.cuda-11.8.cudnn8.6.tar.gz

# Copy net disk data to the instance data disk using cp command
cp -rf /gz-fs/TensorRT-8.5.1.7.Linux.x86_64-gnu.cuda-11.8.cudnn8.6.tar.gz /gz-data/

Backup Instance Data to Net Disk

If an instance needs to be shut down/deleted/released, you can back up data from the /gz-data directory of the instance to the /gz-fs/ directory of the net disk. The next time you create or start an instance, retrieve the data from the /gz-fs/ directory.

# Copy the ChatGLM3 directory from the current directory to the /gz-fs/ directory for backup
cp -rf ChatGLM3 /gz-fs/

Download Net Disk Data to Local Machine

Data in the net disk can be downloaded through JupyterLab or via the Console.

  • Example of downloading data to your local computer using JupyterLab.
  • Alternatively, use the GPUGEEK Net Disk Console to download.
tip

The GPUGEEK Net Disk Console only supports downloading files up to 200MB. For files larger than 200MB, please use the Net Disk Command Tool / Net Disk Client to download.


Delete Data from Net Disk

Data in the net disk can be deleted either through the GPUGEEK Console or directly within the instance using commands.

danger

Warning: Once deleted, net disk data cannot be recovered.

  • To delete via the GPUGEEK Console: for folders, you must enter the folder to delete specific files.

  • To delete via command line:

# Example command to delete the ChatGLM3 directory from the instance net disk
rm -rf /gz-fs/ChatGLM3