6.3. Heketi Pod の起動
glusterfs と registry namespace の両方に対して、クライアントマシンで以下のコマンドを実行します。
以下のコマンドを実行して、Heketi Pod が実行されているプロジェクトに移動します。
# oc project <project_name>glusterfs namespace の場合は以下を実行します。
# oc project glusterfsたとえば、レジストリー namespace の場合は以下を実行します。
# oc project glusterfs-registry以下のコマンドを実行して、
DeploymentConfigを取得します。# oc get dcたとえば、glusterfs-registry プロジェクトでは以下を実行します。
# oc get dc NAME REVISION DESIRED CURRENT TRIGGERED BY glusterblock-storage-provisioner-dc 1 1 0 config heketi-storage 4 1 1 configたとえば、glusterfs プロジェクトでは以下を実行します。
# oc get dc NAME REVISION DESIRED CURRENT TRIGGERED BY glusterblock-storage-provisioner-dc 1 1 0 config heketi-storage 4 1 1 config以下のコマンドを実行して、レプリカ数を 0 から 1 に増やします。これにより、Heketi Pod が戻ります。
# oc scale dc <heketi_dc> --replicas=1以下のコマンドを実行して、heketi Pod が glusterfs および glusterfs-registry namespace の両方に存在することを確認します。
# oc get podsたとえば、glusterfs の場合は以下を実行します。
# oc get pods NAME READY STATUS RESTARTS AGE glusterblock-storage-provisioner-dc-1-ffgs5 1/1 Running 0 3m glusterfs-storage-5thpc 1/1 Running 0 9d glusterfs-storage-hfttr 1/1 Running 0 9d glusterfs-storage-n8rg5 1/1 Running 0 9d heketi-storage-4-9fnvz 2/2 Running 0 8dたとえば、レジストリー Pod の場合は以下を実行します。
# oc get pods NAME READY STATUS RESTARTS AGE glusterblock-storage-provisioner-dc-1-ffgs5 1/1 Running 0 3m glusterfs-storage-5thpc 1/1 Running 0 9d glusterfs-storage-hfttr 1/1 Running 0 9d glusterfs-storage-n8rg5 1/1 Running 0 9d heketi-storage-4-9fnvz 2/2 Running 0 8d