Docs
DataCrunch HomeSDKAPILogin / Signup
  • Welcome to DataCrunch
    • Overview
    • Locations and Sustainability
    • Pricing and Billing
    • Team Projects
    • Support
  • CPU and GPU Instances
    • Set up a CPU or GPU instance
    • Securing Your Instance
    • Shutdown, Hibernate, and Delete
    • Adding a New User
    • Managing SSH Keys
    • Connecting to Your DataCrunch.io Server
    • Connecting to Jupyter notebook with VS Code
  • Clusters
    • Instant Clusters
      • Deploying a GPU cluster
      • Slurm
      • Spack
      • Good to know
    • Customized GPU clusters
  • Storage
    • Block Volumes
      • Attaching a block volume
      • Resizing a block volume
      • Cloning a block volume
      • Permanently deleting a block volume
    • Shared Filesystems (SFS)
      • Creating a shared filesystem
      • Editing share settings
      • Mounting a shared filesystem
  • Containers
    • Overview
    • Container Registries
    • Scaling and health-checks
    • Batching and Streaming
    • Async Inference
    • Tutorials
      • Quick: Deploy with vLLM
      • In-Depth: Deploy with TGI
      • In-Depth: Deploy with SGLang
      • In-Depth: Deploy with vLLM
      • In-Depth: Deploy with Replicate Cog
      • In-Depth: Asynchronous Inference Requests with Whisper
  • Inference
    • Overview
    • Authorization
    • Image Models
      • Flux.1 Kontext pro
      • Flux.1 Kontext max
    • Audio Models
      • Whisper X
  • Pricing and Billing
  • Resources
    • Resources Overview
    • Services Overview
    • Shared Responsibility Model
    • DataCrunch API
  • Python SDK
  • Get Free Compute Credits
Powered by GitBook
On this page
  • Mounting to an instance
  • Mounting to every node in a cluster
  • Where to find the pseudopath

Was this helpful?

  1. Storage
  2. Shared Filesystems (SFS)

Mounting a shared filesystem

Last updated 5 days ago

Was this helpful?

Mounting to an instance

Once the SFS has been shared with your instance, you can proceed to mount it.

Replace <SFS_NAME> with the name of the directory you want to mount it to. Replace <PSEUDO> with the filesystem's pseudopath. Replace <DC> with the datacenter location (ex: fin-01)

  1. Create a directory to which you want to mount the SFS:

mkdir -p /mnt/<SFS_NAME>

  1. Mount the shared filesystem:

mount -t nfs -o nconnect=16 nfs.<DC>.datacrunch.io:<PSEUDO> /mnt/<SFS_NAME>

  1. Add filesystem to the /etc/fstab, to have it mount on instance startup:

sed -i '\|nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs|!a\nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults 0 0' /etc/fstab

Mounting to every node in a cluster

Replace <SFS_NAME> with the name of the directory you want to mount it to. Replace <PSEUDO> with the filesystem's pseudopath. Replace <DC> with the datacenter location (ex: fin-01)

pdsh -a "sudo mkdir -vp /mnt/<SFS_NAME> && grep -qxF 'nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults,nconnect=16 0 0' /etc/fstab || echo 'nfs.<DC>.datacrunch.io:/<PSEUDO> /mnt/<SFS_NAME> nfs defaults,nconnect=16 0 0' | sudo tee -a /etc/fstab && sudo mount /mnt/<SFS_NAME>"

Where to find the pseudopath

Where to find pseudopath
Where to find pseudopath