Skip to main content

Using File Storage - High Performance on Baremetal (GPU Server)

1. Overview​

Once your service provisioning request is approved, you will receive the information needed to use File Storage on Baremetal. Some important notes:

  • Each subnet will have a different endpoint used to access the File Storage data. Before mounting, carefully verify the information provided to avoid errors during configuration.

2. Usage Guide​

A. Using an image from FPT AI FACTORY​

Step 1: Create a mountpoint on the OS

mkdir /mnt/hps

Step 2: Mount the File System Replace the endpoint 10.101.33.1 with the provided Endpoint Mount VAST NFS over TCP

mount -o proto=tcp,vers=3 10.101.33.1:/test /mnt/hps
mount -o proto=tcp,vers=3,nconnect=64 10.101.33.1:/mountpoint /mnt/hps

Mount VAST NFS over RDMA

mount -o proto=rdma,port=20049,vers=3 10.101.33.1:/mountpoint /mnt/hps
mount -o proto=rdma,port=20049,nconnect=64,vers=3 10.101.33.1:/mountpoint /mnt/hps

Mount Multi-Path RDMA

sudo mount -v -o vers=3,proto=rdma,port=20049,spread_reads,spread_writes,nconnect=64,localports=10.101.32.41,remoteports=10.101.33.1-10.101.33.64 10.101.33.1:/test /mnt/hps

Step 3: Configure automatic mount on reboot Edit the /etc/fstab file:

10.101.33.1:/test /mnt/hps nfs vers=3,proto=rdma,port=20049,spread_reads,spread_writes,nconnect=64,localports=10.101.32.41,remoteports=10.101.33.1-10.101.33.64 0 0

Note : Run the command to verify whether the mount configuration has any errors.

mount -a

B. Using a custom Ubuntu OS​

If you use a custom image, you need to install the VAST Client following the guide below:

Step 1: Install the VAST NFS Client

apt update && apt install -y nfs-common dpkg-dev autotools-dev debhelper curl
curl -sSf <https://s3-sgn10.fptcloud.com/file-storage-resource/download.sh> | bash -s
tar xvf vastnfs-*.tar.xz
cd vastnfs-*/
./build.sh bin
sudo apt install ./dist/*.deb
sudo depmod -a
sudo update-initramfs -u -k $(uname -r)
sudo apt update
sudo apt install nfs-common -y
sudo reboot

Step 2: Create a mountpoint on the OS

mkdir /mnt/hps

Step 3: Mount the File System Replace the endpoint 10.101.33.1 with the provided Endpoint Mount VAST NFS over TCP

mount -o proto=tcp,vers=3 10.101.33.1:/test /mnt/hps
mount -o proto=tcp,vers=3,nconnect=64 10.101.33.1:/mountpoint /mnt/hps

Mount VAST NFS over RDMA

mount -o proto=rdma,port=20049,vers=3 10.101.33.1:/mountpoint /mnt/hps
mount -o proto=rdma,port=20049,nconnect=64,vers=3 10.101.33.1:/mountpoint /mnt/hps

Mount Multi-Path RDMA

sudo mount -v -o vers=3,proto=rdma,port=20049,spread_reads,spread_writes,nconnect=64,localports=10.101.32.41,remoteports=10.101.33.1-10.101.33.64 10.101.33.1:/test /mnt/hps

Step 4: Configure automatic mount on reboot Edit the /etc/fstab file:

## LustreFS ##
10.101.33.1:/test /mnt/hps nfs vers=3,proto=rdma,port=20049,spread_reads,spread_writes,nconnect=64,localports=10.101.32.41,remoteports=10.101.33.1-10.101.33.64 0 0

Note : Run the command to verify whether the mount configuration has any errors.

mount -a