例:統合型 ISSU の実行
この例では、統合型 ISSU(インサービス ソフトウェア アップグレード)を実行する方法を示します。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
デュアル ルーティング エンジンを搭載した MX480 ルーター
Junos OS リリース 13.3R6 を開始リリースとして使用
Junos OS リリース 14.1R4(終了リリース)
始める前に
統合型 ISSU を実行する前に、以下を確認してください。
互換性チェックを実行して、 要求システム ソフトウェア validate in-service-upgrade コマンドを使用して、デバイス上のソフトウェアおよびハードウェア コンポーネントと構成が統合型 ISSU をサポートしていることを確認します。
統合型 ISSU システム要件の章を読んで、アップグレードに影響を与える可能性のある特別な状況を予測します。
プラットフォームが統合型 ISSU 機能をサポートしていることを確認します。
プラットフォームにインストールされている FRU(フィールド交換可能ユニット)が統合型 ISSU 機能をサポートしているか、統合型 ISSU をサポートしていない一部の FRU でアップグレードを実行した結果を受け入れることを確認します。
プラットフォームで構成されたプロトコルと機能が統合型 ISSU 機能をサポートしているか、統合型 ISSU をサポートしていない一部のプロトコルや機能でアップグレードを実行した結果を受け入れることを確認します。
https://www.juniper.net/support/ のジュニパーネットワークス サポート Web サイトからソフトウェア パッケージをダウンロードし、パッケージをローカル サーバーに配置します。
ベスト プラクティス:デバイスのソフトウェアのダウンロード Web ページにアクセスしたら、md5 チェックサムを記録します。ソフトウェア パッケージをデバイスにダウンロードした後、 コマンドを使用して修正されていないことを
file checksum md5
確認します。md5 チェックサムの検証の詳細については、「 https://kb.juniper.net/InfoCenter/index?page=content&id=KB17665 」を参照してください。メモ:Junos OS リリース 16.1R1 以降では、FreeBSD 6.1 ベースの Junos OS からアップグレードされた FreeBSD 10.x ベースの Junos OS への統合型 ISSU を実行する場合、リモート ホストまたはルーティング エンジンで構成を検証する必要があります。リモート ホストまたはルーティング エンジンは、アップグレードされた FreeBSD を持つ Junos OS を実行している必要があります。さらに、FreeBSD 6.1 ベースの Junos OS から FreeBSD 10.x ベースの Junos OS にアップグレードする際には、いくつかの選択したディレクトリとファイルのみが保存されます。「Junos OS とアップグレードされた FreeBSD のアップグレード」および「(Junos OS とアップグレードされた FreeBSD を使用した Junos OS)」を参照してください。
概要
この手順を使用すると、デュアル ルーティング エンジンがインストールされ、統合型 ISSU がサポートされている M シリーズ、T シリーズ、MX シリーズ、EX シリーズ、PTX シリーズのデバイスをアップグレードできます。
この例では、ホスト名、ファイル名、FRUは表現されています。デバイスで手順を実行する場合、ホスト名、ファイル名、FRUは異なります。コマンドの出力は、このプロシージャー内の関心のあるテキストのみを表示するように切り捨てられます。
構成
この手順は、1 つまたは両方のルーティング エンジンに新しいソフトウェアをインストールするか、両方のルーティング エンジンを自動的に再起動するか、いずれかのルーティング エンジンを手動で再起動するかによって異なります。
いずれの場合も、デュアル ルーティング エンジンがインストールされており、グレースフル ルーティング エンジン スイッチオーバー(GRES)とノンストップ アクティブ ルーティング(NSR)が有効になっていることを確認する必要があります。アップグレードする前に、デバイスソフトウェアをバックアップすることをお勧めします。
統合型 ISSU を実行するには、以下のリストから適切なタスクを選択します。
デュアル ルーティング エンジンの検証と GRES と NSR の有効化
手順
手順
どの種類の統合型 ISSU 手順を使用するかにかかわらず、GRES および NSR の有効化が必要です。
デバイスにデュアル ルーティング エンジンが搭載されていることを確認し、GRES と NSR を有効にするには:
デバイスにログインします。
コマンドを使用して
show chassis hardware
、デュアルルーティングエンジンがデバイスにインストールされていることを確認します。user@host> show chassis hardware Routing Engine 0 REV 01 740-051822 9013086837 RE-S-1800x4 Routing Engine 1 REV 01 740-051822 9013086740 RE-S-1800x4
コマンド出力には、ルーティング エンジン 0 とルーティング エンジン 1 をリストする行が含まれています。
デフォルトでは、GRES は無効になっています。まだ実施していない場合は、プライマリ ルーティング エンジンの 階層レベルで ステートメントを
graceful-switchover
[edit chassis redundancy]
含めて GRES を有効にします。[edit ] user@host# set chassis redundancy graceful-switchover
デフォルトでは、NSRは無効になっています。まだそうしていない場合は、 階層レベルで ステートメントを
nonstop-routing
含めてNSRを[edit routing-options]
有効にします。[edit] user@host# set routing-options nonstop-routing
NSR を設定する場合、両方の
commit synchronize
ルーティング エンジンで[edit system]
設定変更が同期されるように、 階層レベルにも ステートメントを含める必要があります。[edit] user@host# set system commit synchronize
設定を検証し、それに満足したら、 コマンドを使用して変更を
commit
コミットします。[edit] user@host# commit commit complete
GRES を有効にし、設定をコミットすると、CLI プロンプトが変更され、使用しているルーティング エンジンが示されます。例えば:
{master} [edit] user@host#
コマンドを使用して、設定モードを
exit
終了します。{master} [edit] user@host# exit Exiting configuration mode
コマンドを使用して
show task replication
、NSR がプライマリ ルーティング エンジン(re0
)で設定されていることを確認します。{master} user@host> show task replication Stateful Replication: Enabled RE mode: Master Protocol Synchronization Status OSPF Complete IS-IS Complete
出力で、 フィールドに
Synchronization Status
. が表示されていることを確認しますComplete
。コマンドを使用して
show system switchover
、バックアップのルーティングエンジン()でGRESがre1
有効になっていることを確認します。user@host> request routing-engine login re1 {backup} user@host> show system switchover Graceful switchover: On Configuration database: Ready Kernel database: Ready Peer state: Steady State
出力で、 フィールドの状態が
Graceful switchover
表示されていることを確認しますOn
。コマンドの詳細については、 システムスイッチオーバーをshow system switchover
表示するを参照してください。
ソフトウェアバージョンの検証とデバイスソフトウェアのバックアップ
手順
手順
統合型 ISSU では、アップグレードの前に両方のルーティング エンジンが同じバージョンの Junos OS を実行している必要があります。アップグレード中に問題が発生した場合の予防策として、システム ソフトウェアをデバイス のハード ディスクにバックアップすることをお勧めします。
ソフトウェアバージョンを検証し、デバイスソフトウェアをバックアップするには、次の手順に従います。
コマンドを使用して
show version
、同じバージョンのJunos OSが両方のルーティングエンジンにインストールされ、実行されていることを確認します。{backup} user@host> show version invoke-on all-routing-engines re0: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 13.3R6.5 JUNOS Base OS boot [13.3R6.5] JUNOS Base OS Software Suite [13.3R6.5] JUNOS 64-bit Kernel Software Suite [13.3R6.5] JUNOS Crypto Software Suite [13.3R6.5] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [13.3R6.5] JUNOS Packet Forwarding Engine Support (MX Common) [13.3R6.5] JUNOS Online Documentation [13.3R6.5] re1: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 13.3R6.5 JUNOS Base OS boot [13.3R6.5] JUNOS Base OS Software Suite [13.3R6.5] JUNOS 64-bit Kernel Software Suite [13.3R6.5] JUNOS Crypto Software Suite [13.3R6.5] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [13.3R6.5] JUNOS Packet Forwarding Engine Support (MX Common) [13.3R6.5] JUNOS Online Documentation [13.3R6.5]
Routing Engine の コマンドを使用して、システム ソフトウェアを
request system snapshot
デバイス ハード ディスクに each バックアップします。メモ:ルート ファイル システムは /altroot にバックアップされ、 /config は /altconfig にバックアップされます。コマンドを
request system snapshot
発行すると、デバイスのフラッシュとハードディスクが同一になります。リムーバブル メディアからデバイスを起動して、以前のバージョンのソフトウェアに戻すことができます。{backup} user@host> request system snapshot user@host> request routing-engine login re0 {master} user@host> request system snapshot
タイマーの調整と機能固有の設定の変更
手順
手順
デバイスに以下の機能固有の設定がある場合は、適切な手順を実行します。
タイマーを調整し、機能固有の設定を変更するには:
BFD(Bidirectional Forwarding Detection)セッションは、統合型 ISSU 手順中に検出および送信タイマーを一時的に増加させます。アップグレード後、これらのタイマーは、統合型 ISSU が開始される前に使用中の値に戻ります。
デバイスで BFD が有効になっていて、統合型 ISSU 中に BFD タイマー ネゴシエーションを無効にする場合は、 階層レベルに
no-issu-timer-negotiation
ステート メントを[edit protocols bfd]
含めます。{master} [edit] user@host# set protocols bfd no-issu-timer-negotiation
メモ:このステートメントを含める場合、BFD タイマーは統合型 ISSU 中に元の値を維持し、検出間隔に応じて統合型 ISSU またはルーティング エンジン のスイッチオーバー中に BFD セッションがフラップすることがあります。
M シリーズ、MX シリーズ、または EX 9200 シリーズ デバイスでプロキシ ARP が有効になっている場合は、 階層レベルから ステートメントを
[edit interfaces interface-name unit 0 family inet]
削除unconditional-src-learn
します。デフォルトでは、 ステートメントは含まれません。この例では、ge-0/0/1 インターフェイスのみを示しています。
{master} [edit] user@host# delete interfaces ge-0/0/1 unit 0 family inet unconditional-src-learn
PTX シリーズ デバイスで LACP が有効になっている場合は、 階層レベルから ステートメントを
[edit interfaces interface-name aggregated-ether-options]
削除lacp
します。{master} [edit] user@host# delete interfaces aex aggregated-ether-options lacp
MシリーズまたはT SeriesデバイスでATMポイントツーポイントプロトコル(PPP)が有効になっている場合、キープアライブ間隔を10秒以上に設定します。
PPPでは、セッションがダウンする前に3つのキープアライブが失敗する必要があります。30 秒(10 秒 x 3)は、統合型 ISSU 操作中にトラフィックロスが発生した場合に PPP セッションを維持するための安全なマージンを提供します。
この例では、at-0/0/1 インターフェイスのみを示しています。
{master} [edit] user@host# set interfaces at-0/0/1 unit 0 keepalives interval 10
M シリーズまたは T シリーズ デバイスで ATM OAM が有効になっている場合、統合型 ISSU 全体で ATM 接続を維持するために、OAM F5 ループバック セル期間を 20 秒以上に設定します。
階層レベルに
oam-period
ステートメントを[edit interfaces interface-name unit logical-unit-number]
含め、20 秒を指定します。この例では、at-0/0/1 インターフェイスのみを示しています。{master} [edit] user@host# set interfaces at-0/0/1 unit 0 oam-period 20
設定を検証し、それに満足したら、 コマンドを使用して変更を
commit
コミットします。{master} [edit] user@host# commit commit complete
コマンドを使用して、設定モードを exit 終了します。
{master} [edit] user@host# exit {master} user@host>
両方のルーティング エンジンを自動的にアップグレードして再起動する
手順
手順
この手順では、両方のルーティング エンジンが自動的に再起動します。最も一般的なシナリオは、両方のルーティング エンジンを自動的に再起動することです。この手順のバリエーションについては、他のセクションで説明します。
表 1 は、統合型 ISSU を起動する前のルーティング エンジンの状態を示しています。
RE0 |
RE1 |
---|---|
プライマリ |
バックアップ |
インストール済みの古いソフトウェア バージョン |
インストール済みの古いソフトウェア バージョン |
実行されている古いソフトウェア バージョン |
実行されている古いソフトウェア バージョン |
両方のルーティング エンジンを自動的にアップグレードして再起動するには、次の手順にいます。
コマンドを使用して、Junos OS ソフトウェア パッケージをデバイスに
file copy ftp://username@hostname.net/filename /var/tmp/filename
コピーします。パッケージは、ハードディスク上の大きなファイルシステムである /var/tmp ディレクトリにコピーすることをお勧めします。
{master} user@host> file copy ftp://myid@myhost.mydomain.net/jinstall64-14.1R4.10-domestic-signed.tgz /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz
ベスト プラクティス:デバイスのソフトウェアのダウンロード Web ページにアクセスしたら、md5 チェックサムを記録します。ソフトウェア パッケージをデバイスにダウンロードした後、 コマンドを使用して修正されていないことを
file checksum md5
確認します。md5 チェックサムの検証の詳細については、「 https://kb.juniper.net/InfoCenter/index?page=content&id=KB17665 」を参照してください。プライマリ ルーティング エンジンで、 コマンドを使用してアップグレードを
request system software in-service-upgrade package-name reboot
開始します。メモ:メッセージが表示され、セッションが切断されるまで、追加の
Connection closed
コマンドを実行しないでください。{master} user@host> request system software in-service-upgrade /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz reboot Chassis ISSU Check Done ISSU: Validating Image FPC 0 will be offlined (In-Service-Upgrade not supported) PIC 0/0 will be offlined (In-Service-Upgrade not supported) PIC 0/1 will be offlined (In-Service-Upgrade not supported) Do you want to continue with these actions being taken ? [yes,no] (no) yes Checking compatibility with configuration Initializing... Using jbase-13.3R6.5 Verified manifest signed by PackageProductionEc_2015 Using /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Using jinstall64-14.1R4.10-domestic.tgz Using jbundle64-14.1R4.10-domestic.tgz Checking jbundle requirements on / Using jbase-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jbase-14.1R4.10 signed by PackageProductionEc_2015 Using /var/v/c/tmp/jbundle/jboot-14.1R4.10.tgz Using jcrypto64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jcrypto64-14.1R4.10 signed by PackageProductionEc_2015 Using jdocs-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jdocs-14.1R4.10 signed by PackageProductionEc_2015 Using jkernel64-14.1R4.10.tgz Using jpfe-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M10-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M120-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M160-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M320-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M40-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M7i-14.1R4.10.tgz Verified SHA1 checksum of jpfe-T-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X2000-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X960-14.1R4.10.tgz Verified SHA1 checksum of jpfe-common-14.1R4.10.tgz Using jplatform-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jplatform-14.1R4.10 signed by PackageProductionEc_2015 Using jroute-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jroute-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime64-14.1R4.10 signed by PackageProductionEc_2015 Using jservices-14.1R4.10.tgz Using jservices-crypto-14.1R4.10.tgz Hardware Database regeneration succeeded Validating against /config/juniper.conf.gz mgd: commit complete Validation succeeded ISSU: Preparing Backup RE Pushing /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz to re1:/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Installing package '/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz' ... Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionRSA_2015 Adding jinstall64... Verified manifest signed by PackageProductionEc_2015 WARNING: This package will load JUNOS 14.1R4.10 software. WARNING: It will save JUNOS configuration files, and SSH keys WARNING: (if configured), but erase all other files and information WARNING: stored on this machine. It will attempt to preserve dumps WARNING: and log files, but this can not be guaranteed. This is the WARNING: pre-installation stage and all the software is loaded when WARNING: you reboot the system. Saving the config files ... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Installing the bootstrap installer ... WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the WARNING: 'request system reboot' command when software installation is WARNING: complete. To abort the installation, do not reboot your system, WARNING: instead use the 'request system software delete jinstall' WARNING: command as soon as this operation completes. Saving state for rollback ... Backup upgrade done Rebooting Backup RE Rebooting re1 ISSU: Backup RE Prepare Done Waiting for Backup RE reboot GRES operational Initiating Chassis In-Service-Upgrade Chassis ISSU Started ISSU: Preparing Daemons ISSU: Daemons Ready for ISSU ISSU: Starting Upgrade for FRUs ISSU: Preparing for Switchover ISSU: Ready for Switchover Checking In-Service-Upgrade status Item Status Reason FPC 0 Offline Offlined by cli command Resolving mastership... Complete. The other routing engine becomes the master. ISSU: RE switchover Done ISSU: Upgrading Old Master RE Installing package '/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz' ... Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionRSA_2015 Adding jinstall64... Verified manifest signed by PackageProductionEc_2015 WARNING: This package will load JUNOS 14.1R4.10 software. WARNING: It will save JUNOS configuration files, and SSH keys WARNING: (if configured), but erase all other files and information WARNING: stored on this machine. It will attempt to preserve dumps WARNING: and log files, but this can not be guaranteed. This is the WARNING: pre-installation stage and all the software is loaded when WARNING: you reboot the system. Saving the config files ... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Installing the bootstrap installer ... WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the WARNING: 'request system reboot' command when software installation is WARNING: complete. To abort the installation, do not reboot your system, WARNING: instead use the 'request system software delete jinstall' WARNING: command as soon as this operation completes. Saving package file in /var/sw/pkg/jinstall64-14.1R4.10-domestic-signed.tgz ... Saving state for rollback ... ISSU: Old Master Upgrade Done ISSU: IDLE Shutdown NOW! [pid 10149] {backup} user@host> {backup} user@host> *** FINAL System shutdown message from user@host *** System going down IMMEDIATELY Connection closed by foreign host.
以前はプライマリだったルーティング エンジンが再起動されると、デバイスからログアウトされます。
数分待ってから、もう一度デバイスにログインします。
表 2 は、統合型 ISSU の後のルーティング エンジンステータスを示しています。
表 2:両方のルーティング エンジンのアップグレードと再起動後のルーティング エンジン ステータス RE0
RE1
バックアップ
プライマリ
インストールされた新しいソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
新しいバックアップルーティングエンジン(
re0
)にログインしています。両方のルーティング エンジンが、 コマンドを使用して
show version
アップグレードされていることを確認します。{backup} user@host> show version invoke-on all-routing-engines re0: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10] re1: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10]
必要に応じて、 コマンドを使用して統合型 ISSU ログ メッセージを
show log messages
表示することもできます。必要に応じて、 コマンドを使用してプライマリルーティングエンジンを
request chassis routing-engine master acquire
作成re0
することもできます。{backup} user@host> request chassis routing-engine master acquire Attempt to become the master routing engine ? [yes,no] (no) yes Resolving mastership... Complete. The local routing engine becomes the master. {master} user@host>
表 3 は、ステップ 5 が完了した後のルーティング エンジンのステータスを示しています。
表 3:プライマリ ロールのアップグレード、再起動、スイッチング後のルーティング エンジンステータス RE0
RE1
プライマリ
バックアップ
インストールされた新しいソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
機能固有の設定の復元に関する該当する手順を実行します。
テストの結果に問題がない場合は、ルーティング エンジンの コマンドを使用
request system snapshot
して、オプションでシステム ソフトウェアをデバイスのハード ディスクに each バックアップできます。メモ:ルート ファイル システムは /altroot にバックアップされ、 /config は /altconfig にバックアップされます。コマンドを
request system snapshot
発行すると、デバイスのフラッシュとハードディスクが同一であるため、以前のバージョンのソフトウェアに簡単に戻すことはできません。以前のバージョンのソフトウェアに戻すためには、リムーバブル メディアからデバイスを起動する必要があります。{master} user@host> request system snapshot user@host> request routing-engine login re1 {backup} user@host> request system snapshot
機能固有の設定の復元
手順
手順
デバイスに以下の機能固有の設定がある場合は、適切な手順を実行します。
機能固有の設定を復元するには:
デバイスで BFD が有効になっていて、以前に BFD タイマー ネゴシエーションを無効にした場合は、 階層レベルで ステートメントを
[edit protocols bfd]
削除no-issu-timer-negotiation
します。{master} [edit] user@host# delete protocols bfd no-issu-timer-negotiation
M シリーズ、MX シリーズ、または EX9200 デバイスでプロキシ ARP が有効になっていて、以前に ステートメントを
unconditional-src-learn
削除した場合は、もう一度 ステートメントを含めます。この例では、ge-0/0/1 インターフェイスのみを示しています。
{master} [edit] user@host# set interfaces ge-0/0/1 unit 0 family inet unconditional-src-learn
PTXシリーズデバイスでLACPが有効になっていて、以前にステートメントを
lacp
削除した場合は、もう一度ステートメントを含めます。{master} [edit] user@host# set interfaces aex aggregated-ether-options lacp
M SeriesまたはT SeriesデバイスでATM PPPが有効になっており、キープアライブ間隔を10秒以上に設定した場合、元の値を復元します。
この例では、at-0/0/1 インターフェイスのみを示し、間隔がデフォルトの 3 秒に設定されていることを示しています。
{master} [edit] user@host# set interfaces at-0/0/1 unit 0 keepalives interval 3
M シリーズまたは T シリーズ デバイスで ATM OAM が有効になっていて、以前に OAM F5 ループバック セル期間を 20 秒以上に設定した場合、設定を元の値に戻します。
この例では、at-0/0/1 インターフェイスのみを示し、ピリオドが 10 秒に設定されていることを示しています。
{master} [edit] user@host# set interfaces at-0/0/1 unit 0 oam-period 10
設定を検証し、それに満足したら、 コマンドを使用して変更を
commit
コミットします。{master} [edit] user@host# commit commit complete
コマンドを使用して、設定モードを exit 終了します。
{master} [edit] user@host# exit {master} user@host>
ルーティング エンジンのアップグレードと新しいバックアップ ルーティング エンジンの手動再起動
手順
手順
特定の状況では、新しいソフトウェアをテストできるまで、1 つのルーティング エンジンにのみ新しいソフトウェアをインストールし、プライマリのみを再起動することができます。ルーティング エンジンは、再起動されるまで新しいソフトウェアの実行を開始しません。
利点は、テストの結果、ソフトウェアをダウングレードする必要がある場合、ルーティングエンジンを切り替えて、1つのルーティングエンジンで古いソフトウェアを実行し、もう一方のルーティングエンジンに古いソフトウェアをインストールできることです。これは典型的なシナリオではありません。
両方のルーティング エンジンをアップグレードし、新しいバックアップ ルーティング エンジンを手動で再起動するには、次の手順にしたがってください。
タイマーの調整と機能固有の設定の変更の手順を実行します。
コマンドを使用して、Junos OSソフトウェアパッケージをデバイスに
file copy ftp://username@hostname.net/filename /var/tmp/filename
コピーします。パッケージは、ハードディスク上の大きなファイルシステムである /var/tmp ディレクトリにコピーすることをお勧めします。
{master} user@host> file copy ftp://myid@myhost.mydomain.net/jinstall64-14.1R4.10-domestic-signed.tgz /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz
ベスト プラクティス:デバイスのソフトウェアのダウンロード Web ページにアクセスしたら、md5 チェックサムを記録します。ソフトウェア パッケージをデバイスにダウンロードした後、 コマンドを使用して修正されていないことを
file checksum md5
確認します。md5 チェックサムの検証の詳細については、「 https://kb.juniper.net/InfoCenter/index?page=content&id=KB17665 」を参照してください。表 4 は、統合型 ISSU を起動する前のルーティング エンジンのステータスを示しています。
表 4:バックアップ ルーティング エンジンのアップグレードと手動再起動前のルーティング エンジン ステータス RE0
RE1
プライマリ
バックアップ
インストール済みの古いソフトウェア バージョン
インストール済みの古いソフトウェア バージョン
実行されている古いソフトウェア バージョン
実行されている古いソフトウェア バージョン
プライマリ ルーティング エンジンで、再起動オプションを使用せずに コマンドを
request system software in-service-upgrade package-name
使用してアップグレードを開始します。{master} user@host> request system software in-service-upgrade /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Chassis ISSU Check Done ISSU: Validating Image FPC 0 will be offlined (In-Service-Upgrade not supported) PIC 0/0 will be offlined (In-Service-Upgrade not supported) PIC 0/1 will be offlined (In-Service-Upgrade not supported) Do you want to continue with these actions being taken ? [yes,no] (no) yes Checking compatibility with configuration Initializing... Using jbase-13.3R6.5 Verified manifest signed by PackageProductionEc_2015 Using /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Using jinstall64-14.1R4.10-domestic.tgz Using jbundle64-14.1R4.10-domestic.tgz Checking jbundle requirements on / Using jbase-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jbase-14.1R4.10 signed by PackageProductionEc_2015 Using /var/v/c/tmp/jbundle/jboot-14.1R4.10.tgz Using jcrypto64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jcrypto64-14.1R4.10 signed by PackageProductionEc_2015 Using jdocs-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jdocs-14.1R4.10 signed by PackageProductionEc_2015 Using jkernel64-14.1R4.10.tgz Using jpfe-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M10-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M120-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M160-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M320-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M40-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M7i-14.1R4.10.tgz Verified SHA1 checksum of jpfe-T-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X2000-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X960-14.1R4.10.tgz Verified SHA1 checksum of jpfe-common-14.1R4.10.tgz Using jplatform-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jplatform-14.1R4.10 signed by PackageProductionEc_2015 Using jroute-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jroute-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime64-14.1R4.10 signed by PackageProductionEc_2015 Using jservices-14.1R4.10.tgz Using jservices-crypto-14.1R4.10.tgz Hardware Database regeneration succeeded Validating against /config/juniper.conf.gz mgd: commit complete Validation succeeded ISSU: Preparing Backup RE Pushing /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz to re1:/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Installing package '/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz' ... Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionRSA_2015 Adding jinstall64... Verified manifest signed by PackageProductionEc_2015 WARNING: This package will load JUNOS 14.1R4.10 software. WARNING: It will save JUNOS configuration files, and SSH keys WARNING: (if configured), but erase all other files and information WARNING: stored on this machine. It will attempt to preserve dumps WARNING: and log files, but this can not be guaranteed. This is the WARNING: pre-installation stage and all the software is loaded when WARNING: you reboot the system. Saving the config files ... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Installing the bootstrap installer ... WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the WARNING: 'request system reboot' command when software installation is WARNING: complete. To abort the installation, do not reboot your system, WARNING: instead use the 'request system software delete jinstall' WARNING: command as soon as this operation completes. Saving state for rollback ... Backup upgrade done Rebooting Backup RE Rebooting re1 ISSU: Backup RE Prepare Done Waiting for Backup RE reboot GRES operational Initiating Chassis In-Service-Upgrade Chassis ISSU Started ISSU: Preparing Daemons ISSU: Daemons Ready for ISSU ISSU: Starting Upgrade for FRUs ISSU: Preparing for Switchover ISSU: Ready for Switchover Checking In-Service-Upgrade status Item Status Reason FPC 0 Offline Offlined by cli command Resolving mastership... Complete. The other routing engine becomes the master. ISSU: RE switchover Done ISSU: Upgrading Old Master RE Installing package '/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz' ... Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionRSA_2015 Adding jinstall64... Verified manifest signed by PackageProductionEc_2015 WARNING: This package will load JUNOS 14.1R4.10 software. WARNING: It will save JUNOS configuration files, and SSH keys WARNING: (if configured), but erase all other files and information WARNING: stored on this machine. It will attempt to preserve dumps WARNING: and log files, but this can not be guaranteed. This is the WARNING: pre-installation stage and all the software is loaded when WARNING: you reboot the system. Saving the config files ... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Installing the bootstrap installer ... WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the WARNING: 'request system reboot' command when software installation is WARNING: complete. To abort the installation, do not reboot your system, WARNING: instead use the 'request system software delete jinstall' WARNING: command as soon as this operation completes. Saving package file in /var/sw/pkg/jinstall64-14.1R4.10-domestic-signed.tgz ... Saving state for rollback ... ISSU: Old Master Upgrade Done ISSU: IDLE
表 5 は、統合型 ISSU の後とバックアップ のルーティング エンジンを手動で再起動する前のルーティング エンジンステータスを示しています。
表 5:アップグレード後およびバックアップ ルーティング エンジンの手動再起動前のルーティング エンジン ステータス RE0
RE1
バックアップ
プライマリ
インストールされた新しいソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行されている古いソフトウェア バージョン
実行中の新しいソフトウェア バージョン
コマンドを使用して、新しいバックアップ(古いプライマリ)ルーティングエンジン(
re0
)がまだ以前のソフトウェアイメージを実行していること、および新しいプライマリルーティングエンジン(re1
)が新しいソフトウェアイメージをshow version
実行していることを確認します。{backup} user@host> show version invoke-on all-routing-engines re0: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 13.3R6.5 JUNOS Base OS boot [13.3R6.5] JUNOS Base OS Software Suite [13.3R6.5] JUNOS 64-bit Kernel Software Suite [13.3R6.5] JUNOS Crypto Software Suite [13.3R6.5] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [13.3R6.5] JUNOS Packet Forwarding Engine Support (MX Common) [13.3R6.5] JUNOS Online Documentation [13.3R6.5] re1: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10]
この時点で、新しいバックアップルーティングエンジン(
re0
)に新しいソフトウェアバージョンをインストールしない場合は、 コマンドをrequest system software delete package-name
発行します。それ以外の場合は、アップグレードを完了するには、次のステップに進みます。
コマンドを発行して、新しいバックアップルーティングエンジン(
re0
)をrequest system reboot
再起動します。{backup} user@host> request system reboot Reboot the system ? [yes,no] (no) yes *** FINAL System shutdown message from remote@host *** System going down IMMEDIATELY Shutdown NOW! [pid 38432] {backup} user@home> Connection closed by foreign host.
コンソール ポートにない場合、デバイス セッションから切断されます。
表 6 は、統合型 ISSU の後、バックアップ ルーティング エンジンを再起動した後、プライマリ ロールを切り替える前のルーティング エンジンステータスを示しています。
表 6:アップグレード後、手動再起動後、プライマリ ロールの切り替え前のルーティング エンジンのステータス RE0
RE1
バックアップ
プライマリ
インストールされた新しいソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
数分待ってから、もう一度デバイスにログインします。
新しいバックアップルーティングエンジン(
re0
)にログインしています。両方のルーティング エンジンが、 コマンドを使用して
show version
アップグレードされていることを確認します。{backup} user@host> show version invoke-on all-routing-engines re0: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10] re1: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10]
必要に応じて、 コマンドを使用して統合型 ISSU ログ メッセージを
show log messages
表示することもできます。必要に応じて、 コマンドを使用して、オプションでプライマリルーティングエンジンを
request chassis routing-engine master acquire
作成re0
できます。{backup} user@host> request chassis routing-engine master acquire Attempt to become the master routing engine ? [yes,no] (no) yes Resolving mastership... Complete. The local routing engine becomes the master. {master} user@host>
表 7 は 、統合型 ISSU の後、バックアップ ルーティング エンジンの再起動後、プライマリ ロールの切り替え後のルーティング エンジンの状態を示しています。
表 7:アップグレード後のルーティング エンジン のステータス、手動での再起動、プライマリ ロールのスイッチング RE0
RE1
プライマリ
バックアップ
インストールされた新しいソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
機能固有の設定の復元に関する該当する手順を実行します。
テストの結果に問題がない場合は、ルーティング エンジンの コマンドを使用
request system snapshot
して、オプションでシステム ソフトウェアをデバイスのハード ディスクに each バックアップできます。メモ:ルート ファイル システムは /altroot にバックアップされ、 /config は /altconfig にバックアップされます。コマンドを
request system snapshot
発行すると、デバイスのフラッシュとハードディスクが同一であるため、以前のバージョンのソフトウェアに簡単に戻すことはできません。以前のバージョンのソフトウェアに戻すためには、リムーバブル メディアからデバイスを起動する必要があります。{master} user@host> request system snapshot user@host> request routing-engine login re1 {backup} user@host> request system snapshot
1つのルーティングエンジンのみのアップグレードと再起動
手順
手順
特定の状況では、1 つのルーティング エンジンにのみ新しいソフトウェアをインストールすることができます。
利点は、テストの結果、ソフトウェアをダウングレードする必要がある場合、ルーティングエンジンを切り替えて、1つのルーティングエンジンで古いソフトウェアを実行し、もう一方のルーティングエンジンに古いソフトウェアをインストールできることです。これは典型的なシナリオではありません。
表 8 は、統合型 ISSU を起動する前のルーティング エンジンのステータスを示しています。
RE0 |
RE1 |
---|---|
プライマリ |
バックアップ |
インストール済みの古いソフトウェア バージョン |
インストール済みの古いソフトウェア バージョン |
実行されている古いソフトウェア バージョン |
実行されている古いソフトウェア バージョン |
1 つのルーティング エンジンのみをアップグレードして再起動するには、次の手順に示します。
タイマーの調整と機能固有の設定の変更に該当する手順を実行します。
コマンドを使用して、Junos OS ソフトウェア パッケージをデバイスに
file copy ftp://username@hostname.net/filename /var/tmp/filename
コピーします。パッケージは、ハードディスク上の大きなファイルシステムである /var/tmp ディレクトリにコピーすることをお勧めします。
{master} user@host> file copy ftp://myid@myhost.mydomain.net/jinstall64-14.1R4.10-domestic-signed.tgz /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz
ベスト プラクティス:デバイスのソフトウェアのダウンロード Web ページにアクセスしたら、md5 チェックサムを記録します。ソフトウェア パッケージをデバイスにダウンロードした後、 コマンドを使用して修正されていないことを
file checksum md5
確認します。md5 チェックサムの検証の詳細については、「 https://kb.juniper.net/InfoCenter/index?page=content&id=KB17665 」を参照してください。プライマリ ルーティング エンジンで、 コマンドを使用してアップグレードを
request system software in-service-upgrade package-name no-old-master-upgrade
開始します。{master} user@host> request system software in-service-upgrade /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz no-old-master-upgrade Chassis ISSU Check Done ISSU: Validating Image FPC 0 will be offlined (In-Service-Upgrade not supported) PIC 0/0 will be offlined (In-Service-Upgrade not supported) PIC 0/1 will be offlined (In-Service-Upgrade not supported) Do you want to continue with these actions being taken ? [yes,no] (no) yes Checking compatibility with configuration Initializing... Using jbase-13.3R6.5 Verified manifest signed by PackageProductionEc_2015 Using /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Using jinstall64-14.1R4.10-domestic.tgz Using jbundle64-14.1R4.10-domestic.tgz Checking jbundle requirements on / Using jbase-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jbase-14.1R4.10 signed by PackageProductionEc_2015 Using /var/v/c/tmp/jbundle/jboot-14.1R4.10.tgz Using jcrypto64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jcrypto64-14.1R4.10 signed by PackageProductionEc_2015 Using jdocs-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jdocs-14.1R4.10 signed by PackageProductionEc_2015 Using jkernel64-14.1R4.10.tgz Using jpfe-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M10-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M120-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M160-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M320-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M40-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M7i-14.1R4.10.tgz Verified SHA1 checksum of jpfe-T-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X2000-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X960-14.1R4.10.tgz Verified SHA1 checksum of jpfe-common-14.1R4.10.tgz Using jplatform-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jplatform-14.1R4.10 signed by PackageProductionEc_2015 Using jroute-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jroute-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime64-14.1R4.10 signed by PackageProductionEc_2015 Using jservices-14.1R4.10.tgz Using jservices-crypto-14.1R4.10.tgz Hardware Database regeneration succeeded Validating against /config/juniper.conf.gz mgd: commit complete Validation succeeded ISSU: Preparing Backup RE Pushing /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz to re1:/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Installing package '/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz' ... Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionRSA_2015 Adding jinstall64... Verified manifest signed by PackageProductionEc_2015 WARNING: This package will load JUNOS 14.1R4.10 software. WARNING: It will save JUNOS configuration files, and SSH keys WARNING: (if configured), but erase all other files and information WARNING: stored on this machine. It will attempt to preserve dumps WARNING: and log files, but this can not be guaranteed. This is the WARNING: pre-installation stage and all the software is loaded when WARNING: you reboot the system. Saving the config files ... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Installing the bootstrap installer ... WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the WARNING: 'request system reboot' command when software installation is WARNING: complete. To abort the installation, do not reboot your system, WARNING: instead use the 'request system software delete jinstall' WARNING: command as soon as this operation completes. Saving state for rollback ... Backup upgrade done Rebooting Backup RE Rebooting re1 ISSU: Backup RE Prepare Done Waiting for Backup RE reboot GRES operational Initiating Chassis In-Service-Upgrade Chassis ISSU Started ISSU: Preparing Daemons ISSU: Daemons Ready for ISSU ISSU: Starting Upgrade for FRUs ISSU: Preparing for Switchover ISSU: Ready for Switchover Checking In-Service-Upgrade status Item Status Reason FPC 0 Offline Offlined by cli command Resolving mastership... Complete. The other routing engine becomes the master. ISSU: RE switchover Done Skipping Old Master Upgrade ISSU: IDLE
表 9 は、統合型 ISSU がプライマリ ルーティング エンジンをアップグレードした後、バックアップ ルーティング エンジンがアップグレードされる前のルーティング エンジン ステータスを示しています。
表 9:1 つのルーティング エンジンをアップグレードした後、もう一方のルーティング エンジンをアップグレードする前のルーティング エンジンのステータス RE0
RE1
バックアップ
プライマリ
インストール済みの古いソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行されている古いソフトウェア バージョン
実行中の新しいソフトウェア バージョン
コマンドを使用して、新しいバックアップ(古いプライマリ)ルーティングエンジン(
re0
)がまだ以前のソフトウェアイメージを実行していること、および新しいプライマリルーティングエンジン(re1
)が新しいソフトウェアイメージをshow version
実行していることを確認します。{backup} user@host> show version invoke-on all-routing-engines re0: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 13.3R6.5 JUNOS Base OS boot [13.3R6.5] JUNOS Base OS Software Suite [13.3R6.5] JUNOS 64-bit Kernel Software Suite [13.3R6.5] JUNOS Crypto Software Suite [13.3R6.5] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [13.3R6.5] JUNOS Packet Forwarding Engine Support (MX Common) [13.3R6.5] JUNOS Online Documentation [13.3R6.5] re1: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10]
テストが完了し、新しいソフトウェアをバックアップのルーティング エンジンにインストールする場合、まず両方のルーティング エンジンで GRES と NSR を無効にし、設定をコミットする必要があります。
{backup} [edit ] user@host# delete chassis redundancy graceful-switchover user@host# delete routing-options nonstop-routing user@host# commit warning: Graceful-switchover is enabled, commit on backup is not recommended Continue commit on backup RE? [yes,no] (no) yes re0: configuration check succeeds re1: commit complete re0: commit complete [edit ] user@host#
コマンドを使用して、バックアップルーティングエンジン(
re0
)に新しいソフトウェアをrequest system software add /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz
インストールします。user@host> request system software add /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz NOTICE: Validating configuration against jinstall64-14.1R4.10-domestic-signed.tgz. NOTICE: Use the 'no-validate' option to skip this if desired. Checking compatibility with configuration Initializing... Using jbase-13.3R6.5 Verified manifest signed by PackageProductionEc_2015 Using /var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Using jinstall64-14.1R4.10-domestic.tgz Using jbundle64-14.1R4.10-domestic.tgz Checking jbundle requirements on / Using jbase-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jbase-14.1R4.10 signed by PackageProductionEc_2015 Using /var/v/c/tmp/jbundle/jboot-14.1R4.10.tgz Using jcrypto64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jcrypto64-14.1R4.10 signed by PackageProductionEc_2015 Using jdocs-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jdocs-14.1R4.10 signed by PackageProductionEc_2015 Using jkernel64-14.1R4.10.tgz Using jpfe-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M10-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M120-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M160-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M320-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M40-14.1R4.10.tgz Verified SHA1 checksum of jpfe-M7i-14.1R4.10.tgz Verified SHA1 checksum of jpfe-T-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X2000-14.1R4.10.tgz Verified SHA1 checksum of jpfe-X960-14.1R4.10.tgz Verified SHA1 checksum of jpfe-common-14.1R4.10.tgz Using jplatform-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jplatform-14.1R4.10 signed by PackageProductionEc_2015 Using jroute-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jroute-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime-14.1R4.10 signed by PackageProductionEc_2015 Using jruntime64-14.1R4.10.tgz Verified manifest signed by PackageProductionEc_2015 Verified jruntime64-14.1R4.10 signed by PackageProductionEc_2015 Using jservices-14.1R4.10.tgz Using jservices-crypto-14.1R4.10.tgz Hardware Database regeneration succeeded Validating against /config/juniper.conf.gz mgd: commit complete Validation succeeded Installing package '/var/tmp/jinstall64-14.1R4.10-domestic-signed.tgz' ... Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionEc_2015 Verified jinstall64-14.1R4.10-domestic.tgz signed by PackageProductionRSA_2015 Adding jinstall64... Verified manifest signed by PackageProductionEc_2015 WARNING: This package will load JUNOS 14.1R4.10 software. WARNING: It will save JUNOS configuration files, and SSH keys WARNING: (if configured), but erase all other files and information WARNING: stored on this machine. It will attempt to preserve dumps WARNING: and log files, but this can not be guaranteed. This is the WARNING: pre-installation stage and all the software is loaded when WARNING: you reboot the system. Saving the config files ... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Installing the bootstrap installer ... WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the WARNING: 'request system reboot' command when software installation is WARNING: complete. To abort the installation, do not reboot your system, WARNING: instead use the 'request system software delete jinstall' WARNING: command as soon as this operation completes. Saving package file in /var/sw/pkg/jinstall64-14.1R4.10-domestic-signed.tgz ... Saving state for rollback ...
コマンドを
request system reboot
使用して再起動re0
します。user@host> request system reboot Reboot the system ? [yes,no] (no) yes *** FINAL System shutdown message from user@host *** System going down IMMEDIATELY Shutdown NOW! [pid 22857] user@host> Connection closed by foreign host.
コンソール ポートにない場合、ルーター セッションから切断されます。
数分待ってから、もう一度デバイスにログインします。
バックアップのルーティング エンジン(
re0
)にログインしています。両方のルーティング エンジンが、 コマンドを使用して新しいソフトウェア イメージを
show version
実行していることを確認します。{backup} user@host> show version invoke-on all-routing-engines Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10] re1: -------------------------------------------------------------------------- Hostname: host Model: mx480 Junos: 14.1R4.10 JUNOS Base OS boot [14.1R4.10] JUNOS Base OS Software Suite [14.1R4.10] JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R4.10] JUNOS Packet Forwarding Engine Support (MX Common) [14.1R4.10] JUNOS platform Software Suite [14.1R4.10] JUNOS Runtime Software Suite [14.1R4.10] JUNOS Online Documentation [14.1R4.10]
必要に応じて、 コマンドを使用して統合型 ISSU ログ メッセージを
show log messages
表示することもできます。必要な場合は、 コマンドを使用してプライマリルーティングエンジンを作成
re0
request chassis routing-engine master acquire
します。{backup} user@host> request chassis routing-engine master acquire Attempt to become the master routing engine ? [yes,no] (no) yes Resolving mastership... Complete. The local routing engine becomes the master. user@host>
表 10 は 、統合型 ISSU の後、バックアップ ルーティング エンジンの再起動後、プライマリ ロールの切り替え後のルーティング エンジンステータスを示しています。
表 10:アップグレード後のルーティング エンジンのステータス、手動での再起動、プライマリ ロールのスイッチング RE0
RE1
プライマリ
バックアップ
インストールされた新しいソフトウェア バージョン
インストールされた新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
実行中の新しいソフトウェア バージョン
デュアル ルーティング エンジンの検証と GRES と NSR の有効化の手順を実行して 、GRES と NSR を再度有効にします。
機能固有の設定の復元に関する該当する手順を実行します。
テストの結果に問題がない場合は、ルーティング エンジンの コマンドを使用
request system snapshot
して、オプションでシステム ソフトウェアをデバイスのハード ディスクに each バックアップできます。メモ:ルート ファイル システムは /altroot にバックアップされ、 /config は /altconfig にバックアップされます。コマンドを
request system snapshot
発行すると、デバイスのフラッシュとハードディスクが同一であるため、以前のバージョンのソフトウェアに簡単に戻すことはできません。以前のバージョンのソフトウェアに戻すためには、リムーバブル メディアからデバイスを起動する必要があります。{master} user@host> request system snapshot user@host> request routing-engine login re1 {backup} user@host> request system snapshot