# ベトナム地域での HPS の使用 (VAST Data)

#### 初期設定

**File Storage - High Performance (HPS)** のご利用を開始するには、FPTサポートチームまでご連絡ください。\
必要な情報を提供後、アカウントがサービスで有効化され、クォータが割り当てられ、FPT Cloudコンソール上で機能が有効化されます。

**必要な情報**

| # | **項目**    | **単位**     | **必須**                                                                         | **説明**                                        |
| - | --------- | ---------- | ------------------------------------------------------------------------------ | --------------------------------------------- |
| 1 | テナント / 地域 | —          | はい                                                                             | ファイル ストレージ – 高性能サービスを有効にするテナントと地域。            |
| 2 | ストレージクォータ | GB         | はい                                                                             | 使用する予定のストレージ容量。                               |
| 3 | サブネット     | サブネット CIDR | <ul><li>いいえ：Metal Cloud で HPS を使用する場合 </li><li>はい：GPU VMでHPSを使用する場合 </li></ul> | アクセスが必要なサブネットのリストをご提供ください。FPTサポートチームが設定を行います。 |
| 4 | パフォーマンス   | IOPS       | いいえ                                                                            | 希望する IOPS パフォーマンス（指定がない場合はデフォルトの制限が適用されます）。   |
| 5 | 帯域幅       | Gbps       | いいえ                                                                            | 希望帯域幅（指定がない場合、デフォルト制限が適用されます）。                |

#### Metal Cloud（ベアメタルGPUサーバー）との併用

{% hint style="warning" %}
**注記**&#x20;

* **各サブネットには、**&#x30D5;ァイルストレージシステムに接続するための独自のエンドポイントがあります。&#x20;
* マウント操作を実行する前に、提供されたエンドポイントと設定の詳細を必ず確認し、設定エラーを回避してください。&#x20;
  {% endhint %}

**FPTイメージを使用する場合**

**FPT** が提供するイメージを使用している場合、**VAST クライアント**はプリインストールされています。ファイルストレージをマウントするには、以下の手順に従ってください。

{% stepper %}
{% step %}
&#x20;**OS にマウントポイントを作成**

```
# Create Mount Point

mkdir /mnt/hps
```

{% endstep %}

{% step %}
ファイルシステムを手動でマウント&#x20;

TCP経由でマウント&#x20;

```
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
```

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
```

マルチパス 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
```

{% endstep %}

{% step %}
自動マウント設定&#x20;

**再起動後にVASTファイルシステム**を自動マウントするには、/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
```

次に、設定を確認します

```
mount -a
```

{% endstep %}
{% endstepper %}

#### カスタムイメージを使用する

{% stepper %}
{% step %}
**VAST NFSクライアントのインストール**

```
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
```

{% endstep %}

{% step %}
**マウントポイントの作成**

```
# Create Mount Point

mkdir /mnt/hps
```

{% endstep %}

{% step %}
ファイルシステムのマウント

{% hint style="warning" %}
注: 10.101.33.1 をサポートチームから提供されたエンドポイントに置き換えてください。
{% endhint %}

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
```

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
```

マルチパス 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
```

{% endstep %}

{% step %}
自動マウント設定&#x20;

再起動後にファイルシステムを自動マウントするには、/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:
```

次に、設定を確認します:

```
mount -a
```

{% endstep %}
{% endstepper %}

#### GPU仮想マシンでの使用

{% stepper %}
{% step %}
NFSクライアントのインストール

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

{% endstep %}

{% step %}
マウントポイントの作成

```
# Create Mount Point

mkdir /mnt/hps
```

{% endstep %}

{% step %}
ファイルシステムのマウント

{% hint style="warning" %}
**注:** 10.101.33.1 をサポートチームから提供されたエンドポイントに置き換えてください。
{% endhint %}

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
```

{% endstep %}

{% step %}
自動マウント設定

**再起動後にファイルシステムを自動マウントするには**、/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
```

次に、設定を確認します

```
mount -a
```

{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/ai-factory-guideline-jp/fpt-gpu-cloud/sutorji/chtoriaru/betonamudeno-hps-no-vast-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
