展開の前提条件
Trident を展開する前に、ホストに必要なプロトコルの前提条件をインストールして構成する必要があります。
要件を確認する
-
導入がすべての要件を満たしていることを確認する"要件"。
-
サポートされているバージョンの Docker がインストールされていることを確認します。 Dockerのバージョンが古い場合は、 "インストールまたはアップデートする" 。
docker --version -
プロトコルの前提条件がホストにインストールされ、構成されていることを確認します。
NFSツール
オペレーティング システムのコマンドを使用して NFS ツールをインストールします。
sudo yum install -y nfs-utils
sudo apt-get install -y nfs-common
|
|
ボリュームをコンテナに接続するときに障害が発生しないように、NFS ツールをインストールした後、ワーカー ノードを再起動します。 |
iSCSIツール
オペレーティング システムのコマンドを使用して iSCSI ツールをインストールします。
-
次のシステム パッケージをインストールします。
sudo yum install -y lsscsi iscsi-initiator-utils sg3_utils device-mapper-multipath -
iscsi-initiator-utils のバージョンが 6.2.0.874-2.el7 以降であることを確認します。
rpm -q iscsi-initiator-utils -
スキャンを手動に設定します:
sudo sed -i 's/^\(node.session.scan\).*/\1 = manual/' /etc/iscsi/iscsid.conf -
マルチパスを有効にする:
sudo mpathconf --enable --with_multipathd y --find_multipaths n確保する etc/multipath.conf`含む `find_multipaths no`下 `defaults。 -
確実に `iscsid`そして `multipathd`実行中:
sudo systemctl enable --now iscsid multipathd -
有効化して起動
iscsi:sudo systemctl enable --now iscsi
-
次のシステム パッケージをインストールします。
sudo apt-get install -y open-iscsi lsscsi sg3-utils multipath-tools scsitools -
open-iscsi のバージョンが 2.0.874-5ubuntu2.10 以降 (bionic の場合) または 2.0.874-7.1ubuntu6.1 以降 (focal の場合) であることを確認します。
dpkg -l open-iscsi -
スキャンを手動に設定します:
sudo sed -i 's/^\(node.session.scan\).*/\1 = manual/' /etc/iscsi/iscsid.conf -
マルチパスを有効にする:
sudo tee /etc/multipath.conf <<-EOF defaults { user_friendly_names yes find_multipaths no } EOF sudo systemctl enable --now multipath-tools.service sudo service multipath-tools restart確保する etc/multipath.conf`含む `find_multipaths no`下 `defaults。 -
確実に `open-iscsi`そして `multipath-tools`有効になっていて実行中である:
sudo systemctl status multipath-tools sudo systemctl enable --now open-iscsi.service sudo systemctl status open-iscsi
NVMeツール
オペレーティング システムのコマンドを使用して NVMe ツールをインストールします。
|
|
|
sudo yum install nvme-cli
sudo yum install linux-modules-extra-$(uname -r)
sudo modprobe nvme-tcp
sudo apt install nvme-cli
sudo apt -y install linux-modules-extra-$(uname -r)
sudo modprobe nvme-tcp
FCツール
オペレーティング システムのコマンドを使用して FC ツールをインストールします。
-
FC PVでRHEL/Red Hat Enterprise Linux CoreOS (RHCOS)を実行するワーカーノードを使用する場合は、 `discard`インライン スペース再利用を実行するには、StorageClass の mountOption を使用します。参照 "Red Hat ドキュメント"。
-
次のシステム パッケージをインストールします。
sudo yum install -y lsscsi device-mapper-multipath -
マルチパスを有効にする:
sudo mpathconf --enable --with_multipathd y --find_multipaths n確保する etc/multipath.conf`含む `find_multipaths no`下 `defaults。 -
確実に `multipathd`実行中:
sudo systemctl enable --now multipathd
-
次のシステム パッケージをインストールします。
sudo apt-get install -y lsscsi sg3-utils multipath-tools scsitools -
マルチパスを有効にする:
sudo tee /etc/multipath.conf <<-EOF defaults { user_friendly_names yes find_multipaths no } EOF sudo systemctl enable --now multipath-tools.service sudo service multipath-tools restart確保する etc/multipath.conf`含む `find_multipaths no`下 `defaults。 -
確実に `multipath-tools`有効になっていて実行中:
sudo systemctl status multipath-tools