2022-07-25 06:11 PM 2024-11-19 05:18 PM 更新
Prime Infrastructure をバージョンアップして、メンテナンスリリースを適用する方法を、PI 3.6 から PI 3.10.6 へのアップグレードを例にして紹介します。
ハードウェアアプライアンスをご利用中の場合は、 CIMC のバージョンが PI のバージョンと互換性があるかを確認して、互換がない場合、更新していただくようにお願いします。
Prime Infrastructure と CIMC の Compatibility について
https://community.cisco.com/t5/-/-/ta-p/4389134
まず初めに、バージョンアップ先のドキュメントを確認して、現バージョンから直接アップグレード可能かどうかを確認します。
今回の場合、まずは最終目標の PI 3.10.6 のリリースノートを確認し、適用の前提条件を確認します。
リリースノートは、メンテナンスリリースのダウンロードサイトで、対象のファイル上にマウスを移動させると別ウィンドウが表示されるので、その中の「Release Notes」をクリックすることで確認できます。
リリースノートに以下のような記載が確認できるため、PI3.10.6 へは PI3.10.2, PI3.10.3、PI3.10.4、PI3.10.5 から可能であることが分かります。
You can install Cisco Prime Infrastructure 3.10.6 on Cisco Prime Infrastructure 3.10.2 System Patch or Cisco Prime Infrastructure 3.10.3 or Cisco Prime Infrastructure 3.10.4+3.10.4 System Patch or Cisco Prime Infrastructure 3.10.4 Update 01 or Cisco Prime Infrastructure 3.10.4 Update 02+3.10.4 Update 02 System Patch or Cisco Prime Infrastructure 3.10.4 Update 03 or Cisco Prime Infrastructure 3.10.5+3.10.5 System Patch. Cisco Prime Infrastructure PI_3_10_6-1.0.8.ubf is approximately 2.01 GB.
PI3.10.2 のリリースノートに以下のような記載が確認できるため、PI3.10.2へはPI3.10から可能であることが分かります。
You can upgrade to Cisco Prime Infrastructure 3.10.2 from Cisco Prime Infrastructure 3.10 or Cisco Prime Infrastructure 3.10 Update 01 or Cisco Prime Infrastructure 3.10.1. Cisco Prime Infrastructure PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz is approximately 2.2GB. The downloading time depends on the available network connection in the enterprise environment. Ensure that you have adequate bandwidth and are not running into high latency issues.
次に PI3.10 へバージョンアップするための条件を、 PI 3.10 のドキュメントで確認します。
リリースノートに以下のような記載が確認できるため、PI 3.10 はクリーンインストールを行った後に、PI3.7以降のバックアップファイルをリストアする事でアップグレードが可能であることが分かります。
Upgrade to Prime Infrastructure 3.10 from Prime Infrastructure 3.7.x, 3.8.x, or 3.9.x is not supported. You must take a backup of the Prime Infrastructure 3.7.x, 3.8.x, or 3.9.x server, deploy a fresh Prime Infrastructure 3.10 server, and restore that back up into the Prime Infrastructure 3.10 server.
PI 3.10 にするためには、事前に PI 3.7.x, PI3.8.x, PI3.9.x にする必要があります。
※今回の例では、 PI3.7 をアップグレードパスとします。
次に PI 3.7 へバージョンアップするための条件を、PI 3.7 のドキュメント(Quick Start Guide)で確認します。
このドキュメントには以下のように記載されているため、PI 3.7 へバージョンアップするには、PI 3.4.x, PI 3.5.x, PI3.6.x である必要があることが分かり、PI 3.6 からバージョンアップすることが可能です。
How to Perform an Inline Upgrade
Inline upgrade is simpler than system migration, and requires no new hardware. Prime Infrastructure 3.7
supports inline upgrade from Prime Infrastructure 3.1.x, 3.2.x, 3.3.x, 3.4.x, 3.5.x, and 3.6.x.
Prime Infrastructure supports only the upgrading of secondary server from 3.5.x and 3.6.x to 3.7 and not for
the versions below 3.5. To pair HA with primary server in Prime Infrastructure version 3.7, you must either
install a new secondary server from the Prime Infrastructure 3.7 OVA image or upgrade from 3.5.x and 3.6.x
to 3.7 using the 3.5.x_3.6.x_to_3.7 upgrade bundle file and integrate it with the primary server for high
availability. For details, see Install Prime Infrastructure on a Virtual Machine, on page 11.
The following steps explain how to upgrade from primaryPrime Infrastructure 3.1.x, 3.2.x, 3.3.x, 3.4.x, 3.5.x,
and 3.6.x to Prime Infrastructure 3.7.
従って、アップグレードパスは以下のようになることが確認できました。
PI 3.6 → PI 3.7 → PI 3.10 → PI3.10.2 → PI3.10.6
アップグレードパスが確認できたら、次はインストール前の準備事項と、インストール手順を確認します。バージョンが異なっていると、バージョンアップ方法も異なっていることがありますので、バージョン毎に必ずドキュメントを確認するようにしてください。
PI 3.6 から PI 3.7 のバージョンアップについては、PI 3.7 のドキュメント(Quick Start Guide)を確認します。
「How to Upgrading From Previous Releases of Prime Infrastructure」と「Performing an Inline Upgrade」の内容をよく確認します。
default repositoryは、ドキュメント通りにdefaultRepoを使用することが推奨されております。
PI 3.7 から PI 3.10 のバージョンアップについては、PI 3.10 のドキュメント(Quick Start Guide)を確認します。
「How to Upgrading From Previous Releases of Prime Infrastructure」と「Performing an Inline Upgrade」の内容をよく確認します。
PI3.10 はインラインアップグレードは不可能となり、フレッシュインストールを行う必要があります。
確認したとおりの手順でバージョンアップを実施します。
まとめ
Prime Infrastructure 3.8 へのアップグレードについて
https://community.cisco.com/t5/-/-/ta-p/4072916
Prime Infrastructure と CIMC の Compatibility について
https://community.cisco.com/t5/-/-/ta-p/4389134
can try use
pi310/admin# shell
Enter shell access password :
Starting bash shell ...
ade # pwd
/root
ade # cd /localdisk/defaultRepo
ade # ls
PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz
pi310-230528-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg
pi310-230529-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK4002878360.tar.gpg
ade # sudo su -
Last login: Mon May 29 20:01:02 +08 2023 on pts/0
[root@pi310 ~]#
[root@pi310 ~]# ls
anaconda-ks.cfg ks-post.log original-ks.cfg test.log
bin ks-post-toinstall.log ova.ks.cfg
[root@pi310 ~]# cd /localdisk/defaultRepo
[root@pi310 defaultRepo]# ls
pi310-230528_ 0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg
pi310-230529-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK4002878360.tar.gpg
PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz
[root@pi310 defaultRepo]# rm pi310-230528-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg
rm: remove regular file ‘pi310-230528-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg’? yes
[root@pi310 defaultRepo]# ls
pi310-230529-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK4002878360.tar.gpg
PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz
[root@pi310 defaultRepo]# rm pi310-230529-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK4002878360.tar.gpg
rm: remove regular file ‘pi310-230529-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK4002878360.tar.gpg’? yes
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]# ls
PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]#
[root@pi310 defaultRepo]# dh 0k
-bash: dh: command not found
[root@pi310 defaultRepo]# dh -k
-bash: dh: command not found
[root@pi310 defaultRepo]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 12330404 0 12330404 0% /dev
tmpfs 12343408 2572288 9771120 21% /dev/shm
tmpfs 12343408 99280 12244128 1% /run
tmpfs 12343408 0 12343408 0% /sys/fs/cgroup
/dev/mapper/smosvg-rootvol 3966144 44508 3716836 2% /
/dev/mapper/smosvg-usrvol 6924216 1722152 4843664 27% /usr
/dev/mapper/smosvg-recvol 95054 1569 88365 2% /recovery
/dev/mapper/smosvg-home 95054 2186 87748 3% /home
/dev/sda1 487652 116673 345379 26% /boot
/dev/mapper/smosvg-altrootvol 95054 1569 88365 2% /altroot
/dev/mapper/smosvg-storeddatavol 9948012 22656 9413356 1% /storeddata
/dev/sda2 95054 1603 88331 2% /storedconfig
/dev/mapper/smosvg-localdiskvol 184561716 2406780 174194028 2% /localdisk
/dev/mapper/smosvg-tmpvol 1983056 4008 1876648 1% /tmp
/dev/mapper/smosvg-varvol 3966144 156972 3604372 5% /var
/dev/mapper/smosvg-optvol 1002207944 66624516 892710940 7% /opt
tmpfs 2468684 0 2468684 0% /run/user/1000
[root@pi310 defaultRepo]# pwd
/localdisk/defaultRepo
[root@pi310 defaultRepo]# ls -la
total 2345732
drwxrwxrwt. 2 prime gadmin 4096 May 29 20:01 .
drwxrwxr-x. 9 prime gadmin 4096 May 28 15:11 ..
-rw-rw-rw-. 1 prime gadmin 2399667100 May 28 14:54 PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz
[root@pi310 defaultRepo]# exit
logout
ade #
ade #
ade # application upgrade PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz defaultRepo
bash: application: command not found
ade # exit
exit
ade # exit
exit
pi310/admin#
pi310/admin#
pi310/admin# application upgrade PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz defaultRepo
Save the current ADE-OS running configuration? (yes/no) [yes] ? yes
Generating configuration...
Saved the ADE-OS running configuration to startup successfully
Please ensure you have a backup of the system before proceeding.
Proceed with the application upgrade ? (yes/no) [yes] ? yes
DO NOT press ^C while the upgrade is in progress
Aborting upgrade with a ^C may leave the system in a unrecoverable state
Initiating Application Upgrade...
Stage 1 of 7: Transferring file ...
-- complete.
Stage 2 of 7: Unpacking file ...
-- complete.
*** System will reboot after a successful installation of this package ***
After reboot, please login again into the server to check status
Stage 3 of 7: Executing pre-install ...
-- complete.
Stage 4 of 7: Upgrading binaries ...
-- complete.
Prime Application installation completed
Note: Forwarding request to 'systemctl disable ipmi.service'.
Stage 5 of 7: Executing post-install ...
Upgrade Finished. Server is restarting . Please wait ..
INFO: Mount point exists!
% This application Install or Upgrade requires reboot, rebooting now...
検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう
シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします
下記より関連するコンテンツにアクセスできます