Skip to main content
日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。

NetApp Element iSCSI 構成

共同作成者

Trident を NetApp Element ストレージシステムと統合するには、 iSCSI プロトコルを使用してストレージシステムと通信できるバックエンドを作成する必要があります。

  1. ダウンロードしたインストールアーカイブのフォルダ階層には、サンプルのバックエンドファイルが用意されて sample-input`います。iSCSIを提供するNetApp Elementシステムの場合は、ファイルを作業ディレクトリにコピーし `backend-solidfire.json、ファイルを編集します。

    [netapp-user@rhel7 trident-installer]$ cp sample-input/backends-samples/solidfire/backend-solidfire.json ./
    [netapp-user@rhel7 trident-installer]$ vi ./backend-solidfire.json
    1. この行でユーザ、パスワード、およびMVIPの値を編集します EndPoint

    2. 値を編集し `SVIP`ます。

       {
          "version": 1,
          "storageDriverName": "solidfire-san",
          "Endpoint": "https://trident:password@172.21.224.150/json-rpc/8.0",
          "SVIP": "10.61.180.200:3260",
          "TenantName": "trident",
          "Types": [{"Type": "Bronze", "Qos": {"minIOPS": 1000, "maxIOPS": 2000, "burstIOPS": 4000}},
                    {"Type": "Silver", "Qos": {"minIOPS": 4000, "maxIOPS": 6000, "burstIOPS": 8000}},
                    {"Type": "Gold", "Qos": {"minIOPS": 6000, "maxIOPS": 8000, "burstIOPS": 10000}}]
      }
  2. このバックエンドファイルを設定したら、次のコマンドを実行して最初のバックエンドを作成します。

    [netapp-user@rhel7 trident-installer]$ ./tridentctl -n trident create backend -f backend-solidfire.json
    +-------------------------+----------------+--------------------------------------+--------+---------+
    |          NAME           | STORAGE DRIVER |                 UUID                 | STATE  | VOLUMES |
    +-------------------------+----------------+--------------------------------------+--------+---------+
    | solidfire_10.61.180.200 | solidfire-san  | b90783ee-e0c9-49af-8d26-3ea87ce2efdf | online |       0 |
    +-------------------------+----------------+--------------------------------------+--------+---------+
  3. バックエンドを作成したら、次にストレージクラスを作成する必要があります。バックエンドと同様に、 sample_inputs フォルダにある環境用に編集可能なサンプルのストレージクラスファイルがあります。作業ディレクトリにコピーし、作成したバックエンドを反映するために必要な編集を行います。

    [netapp-user@rhel7 trident-installer]$ cp sample-input/storage-class-samples/storage-class-csi.yaml.templ ./storage-class-basic.yaml
    [netapp-user@rhel7 trident-installer]$ vi storage-class-basic.yaml
  4. このファイルを編集する必要があるのは、新しく作成したバックエンドからストレージドライバの名前の値を定義することだけです backendType。また、名前フィールドの値もメモしておきます。この値は、以降の手順で参照する必要があります。

    apiVersion: storage.k8s.io/v1
    kind: StorageClass
    metadata:
      name: basic-csi
    provisioner: csi.trident.netapp.io
    parameters:
      backendType: "solidfire-san"
    メモ このファイルには、という名前のオプションフィールドが `fsType`定義されています。iSCSI バックエンドでは、この値を特定の Linux ファイルシステムタイプ( XFS 、 ext4 など)に設定するか、 OpenShift で使用するファイルシステムを決定できるようにするためにこの値を削除できます。
  5. コマンドを実行し `oc`てストレージクラスを作成します。

    [netapp-user@rhel7 trident-installer]$ oc create -f storage-class-basic.yaml
    storageclass.storage.k8s.io/basic-csi created
  6. ストレージクラスを作成したら、最初の永続的ボリューム要求( PVC )を作成する必要があります。このアクションを実行するために使用できるサンプルファイルもサンプル入力にあり `pvc-basic.yaml`ます。

    [netapp-user@rhel7 trident-installer]$ cp sample-input/pvc-samples/pvc-basic.yaml ./
    [netapp-user@rhel7 trident-installer]$ vi pvc-basic.yaml
  7. このファイルを編集する必要があるのは、フィールドが作成したフィールドと一致することを確認することだけです storageClassName。プロビジョニングするワークロードによって必要に応じて、 PVC 定義をさらにカスタマイズできます。

    kind: PersistentVolumeClaim
    apiVersion: v1
    metadata:
      name: basic
    spec:
      accessModes:
        - ReadWriteOnce
      resources:
        requests:
          storage: 1Gi
      storageClassName: basic-csi
  8. コマンドを発行してPVCを作成し `oc`ます。作成中の元のボリュームのサイズによっては作成にしばらく時間がかかることがあるため、作成が完了した時点でこのプロセスを監視できます。

    [netapp-user@rhel7 trident-installer]$ oc create -f pvc-basic.yaml
    persistentvolumeclaim/basic created
    
    [netapp-user@rhel7 trident-installer]$ oc get pvc
    NAME    STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
    basic   Bound    pvc-3445b5cc-df24-453d-a1e6-b484e874349d   1Gi        RWO            basic-csi      5s