vCloud Director Upgradeについて -その4- vCloud Director アップグレード編

こんにちは、VMware担当の及川です。

引き続きvCloud Director 10.0(以下、vCD)へのUpgrade方法についてご紹介致します。今回で最終となります。

MicrosoftのSQLServer2017からPostgreSQL 10へDatabaseのマイグレーションを行いましたので、ここからはいよいよvCDのUpgradeを行います。

弊社の環境では、LinuxベースのvCDを利用していますので、Upgrade手順については下記URLをベースに進めます。

vCDにSSH等でログイン後、以下内容にてインストールを行います。

■vCDのbinファイルをコピー。
WinSCPなどでバイナリを以下ディレクトリにコピーします。
/var/tmp/

■ダウンロードページに投稿されているファイルとダウンロードのチェックサムが一致することを確認します。
# md5sum  vmware-vcloud-director-distribution-10.0.0-16094943.bin

■binファイルの実行権の変更
# chmod 744 vmware-vcloud-director-distribution-10.0.0-16094943.bin

■binファイルの実行
# ./vmware-vcloud-director-distribution-10.0.0-16094943.bin
Checking free disk space...done
Checking for a supported Linux distribution...Detected CentOS7 system
done
Checking for necessary RPM prerequisites...done
Extracting VMware vCloud Director. Please wait, this could take a few minutes...
vmware-vcloud-director-25.2020.04.22-16081830.x86_64.rpm
vmware-vcloud-director-rhel-25.2020.04.22-16081830.x86_64.rpm
vmware-vcloud-director-h5ui-25.2020.04.22-16081830.x86_64.rpm
vmware-phonehome-1.0.0-16038396.noarch.rpm
done
Verifying RPM signatures...done

An older version of VMware vCloud Director has been detected and will be
upgraded to 10.0.0.

If you choose to proceed, the installer will stop the vmware-vcd service,
back up any configuration files from the previous release and migrate the
product configuration as necessary.


Would you like to upgrade now? (y/n)? y
Upgrading VMware vCloud Director...
Installing the VMware vCloud Director 10.0.0 RPM...
警告: vmware-vcloud-director-25.2020.04.22-16081830.x86_64.rpm: ヘッダー V3 RSA/SHA1 Signature、
鍵 ID 66fd4949: NOKEY
準備しています...          ################################# [100%]
更新中 / インストール中...
   1:vmware-vcloud-director-rhel-25.20#################################
[ 13%]
   2:vmware-vcloud-director-25.2020.04警告: /opt/vmware/vcloud-director/etc/global.properties は /opt/vmware/vcloud-director/etc/global.properties.rpmnew として作成されました。
################################# [ 25%]
   3:vmware-vcloud-director-h5ui-25.20#################################
[ 38%]
   4:vmware-phonehome-1.0.0-16038396  #################################
[ 50%]
整理中 / 削除中...
   5:vmware-phonehome-1.0.0-15994591  #################################
[ 63%]
   6:vmware-vcloud-director-h5ui-24.20#################################
[ 75%]
   7:vmware-vcloud-director-24.2020.04#################################
[ 88%]
Update completed.
   8:vmware-vcloud-director-rhel-24.20#################################
[100%]
done
No DSA certificates found; disabling DSA ciphers for SSL/TLS connections. See KB 2056026 for details


Upgrade installation complete.
Next steps:

You will need to upgrade the database schema before starting the
vmware-vcd service. The product upgrade tool should be run only once per
vCloud Director group. The tool may be run with the following command:
/opt/vmware/vcloud-director/bin/upgrade

■upgradeを実行します。
※データベースのスキーマの拡張をvCDのサービスが起動する前に実施する必要があります。
# /opt/vmware/vcloud-director/bin/upgrade
Welcome to the vCloud Director upgrade utility

Verify that you have a valid license key to use the version of the
vCloud Director software to which you are upgrading.

This utility will apply several updates to the database. Please
ensure you have created a backup of your database prior to continuing.


Do you wish to upgrade the product now? [Y/N] Y
Examining database at URL: jdbc:postgresql://172.22.130.50:5432/vcloud?socketTimeout=90
The next step in the upgrade process will change the vCloud Director database schema.
Backup your database now using the tools provided by your database vendor.
Enter [Y] after the backup is complete. Y
Running 5 upgrade tasks
Executing upgrade task:
Successfully ran upgrade task
Executing upgrade task:
Successfully ran upgrade task
Executing upgrade task:
Successfully ran upgrade task
Executing upgrade task:
............/Successfully ran upgrade task
Executing upgrade task:
...............[15]
Successfully ran upgrade task
Database upgrade complete
Upgrade complete

Would you like to start the vCloud Director service now? If you choose not
to start it now, you can manually start it at any time using this command:
service vmware-vcd start


Start it now? [y/n] y

Starting vmware-vcd-watchdog:                    [  OK  ]
Starting vmware-vcd-cell                    [  OK  ]

サービスが起動しましたら、再度WebUIにてアクセスを確認します。
無事表示され、ログインできることとUIの操作ができることを確認して終了となります。

いかがでしたでしょうか?
vCDのUpgradeはボリュームが多くいろいろ複雑でしたが、無事にUpgradeさせることができました。Upgradeを検討さ
れているお客様は是非ご参考ください。

VMwareの記事




※閲覧にはiDATEN(韋駄天)へのログインが必要です。