✌️How to use HPS in Vietnam region (VAST Data)?

Initial Setup

To start using File Storage - High Performance (HPS), please get in touch with the FPT Support team. After providing the required information, your account will be activated with the service, a quota will be assigned, and the feature will be enabled on the FPT Cloud console.

Required Information

#
Item
Unit
Required
Description

1

Tenant/ Region

Yes

The Tenant and Region where you want to enable the File Storage - High Performance service.

2

Storage Quota

GB

Yes

The amount of storage capacity you plan to use.

3

Subnet

Subnet CIDR

  • No: If you use HPS with Metal Cloud

  • Yes: If you HPS with GPU VM

Please provide the list of subnets that require access so the FPT support team can configure them.

4

Performance

IOPS

No

Desired IOPS performance (if not provided, the default limit will be applied).

5

Bandwidth

Gbps

No

Desired bandwidth (if not provided, the default limit will be applied).

Use with Metal Cloud (a Bare Metal GPU server)

Use FPT Images

If you are using an image provided by FPT, the VAST client is pre-installed. Follow the steps below to mount the File Storage.

1

Create a Mount Point in OS

# Create Mount Point

mkdir /mnt/hps
2

Mount the File System manually

Mount via TCP

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

Mount via RDMA

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

Mount via Multi-Path RDMA

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

Auto-Mount Configuration

To automatically mount the VAST file system after reboot, add the following entry to /etc/fstab:

# Add the following line to /etc/fstab 10.101.33.1:/test /mnt/hps nfs vers=3,proto=rdma,port=20049,spread_reads,spread_writes,nconnect=16,localports=10.101.32.41,remoteports=10.101.33.1-10.101.33.64 0 0

Then, verify the configuration:

mount -a

Use custom images

1

Install 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
2

Create a Mount Point

# Create Mount Point

mkdir /mnt/hps
3

Mount the File System

Mount via TCP

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

Mount via RDMA

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

Mount via Multi-Path RDMA

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

Auto-Mount Configuration

To automatically mount the file system after reboot, add the following line to /etc/fstab:

# Add the following line to /etc/fstab
10.101.33.1:/test /mnt/hps nfs vers=3,proto=rdma,port=20049,spread_reads,spread_writes,nconnect=16,localports=10.101.32.41,remoteports=10.101.33.1-10.101.33.64 0 0
Then verify:

Then, verify the configuration:

mount -a

Use with a GPU Virtual machine

1

Install the NFS Client

sudo apt update
sudo apt install nfs-common -y
sudo reboot
2

Create a Mount Point

# Create Mount Point

mkdir /mnt/hps
3

Mount the File System

Mount via TCP

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

Auto-Mount Configuration

To automatically mount the file system after reboot, add the following line to /etc/fstab:

# Add the following line to /etc/fstab
10.101.33.1:/test 10.101.33.1:/ /mnt/hps nfs vers=3 0 0

Then, verify the configuration:

mount -a

Last updated