Cisco Catalyst 2960S IOS Update (Part 1) の続きです。
IOS ソフトウェア ダウンロード -> バックアップの後はアップデートを実行します。
アップデート 12.2 系 -> 15.2 系 (archive)
archive コマンドでダウンロードすることでアップデートしますが、1 回目は失敗しました。
sw#archive download-sw /overwrite tftp://192.168.100.10/c2960s-universalk9-tar.152-1.E.tar Loading c2960s-universalk9-tar.152-1.E.tar from 192.168.100.10 (via Vlan100): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 21596160 bytes] Loading c2960s-universalk9-tar.152-1.E.tar from 192.168.100.10 (via Vlan100): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! examining image... extracting info (108 bytes) extracting c2960s-universalk9-mz.152-1.E/info (629 bytes) extracting info (108 bytes) Stacking Version Number: 1.51 System Type: 0x00000000 Ios Image File Size: 0x00F9B200 Total Image File Size: 0x01496200 Minimum Dram required: 0x08000000 Image Suffix: universalk9-152-1.E Image Directory: c2960s-universalk9-mz.152-1.E Image Name: c2960s-universalk9-mz.152-1.E.bin Image Feature: IP|LAYER_2|SSH|3DES|MIN_DRAM_MEG=128 Old image for switch 1: unknown c2960s-universalk9-mz.152-1.E/ (directory) -- unable to create (No such file or directory) extracting c2960s-universalk9-mz.152-1.E/c2960s-universalk9-mz.152-1.E.bin (16353536 bytes) extracting c2960s-universalk9-mz.152-1.E/info (629 bytes) c2960s-universalk9-mz.152-1.E/html/ (directory) (中略) extracting c2960s-universalk9-mz.152-1.E/html/reset.htm (6490 bytes) extracting c2960s-universalk9-mz.152-1.E/html/back.htm (515 bytes) extracting c2960s-universalk9-mz.152-1.E/dc_default_profiles.txt (143335 bytes) extracting info (108 bytes) %Error opening flash:update/c2960s-universalk9-mz.152-1.E/info (No such file or directory) Error: Unable to extract image for box 1. Some systems may Error: have been left in an inconsistent state.
"Old image for switch 1: unknown" が問題の様です。試しに再度まったく同様に実行すると今度は Unable to create temp dir "flash:update" で終了しました。
flash:/update/ が存在していたので削除した後、改めて実行すると今度は成功しました。
sw#cd sw#delete /recursive /force flash:/update/ sw#archive download-sw /overwrite tftp://192.168.100.10/c2960s-universalk9-tar.152-1.E.tar Loading c2960s-universalk9-tar.152-1.E.tar from 192.168.100.10 (via Vlan100): !!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 21596160 bytes] Loading c2960s-universalk9-tar.152-1.E.tar from 192.168.100.10 (via Vlan100): !!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! examining image... extracting info (108 bytes) extracting c2960s-universalk9-mz.152-1.E/info (629 bytes) extracting info (108 bytes) Stacking Version Number: 1.51 System Type: 0x00000000 Ios Image File Size: 0x00F9B200 Total Image File Size: 0x01496200 Minimum Dram required: 0x08000000 Image Suffix: universalk9-152-1.E Image Directory: c2960s-universalk9-mz.152-1.E Image Name: c2960s-universalk9-mz.152-1.E.bin Image Feature: IP|LAYER_2|SSH|3DES|MIN_DRAM_MEG=128 Old image for switch 1: flash:/c2960s-universalk9-mz.122-53.SE2 Old image will be deleted after download. c2960s-universalk9-mz.152-1.E/ (directory) extracting c2960s-universalk9-mz.152-1.E/c2960s-universalk9-mz.152-1.E.bin (16353536 bytes) extracting c2960s-universalk9-mz.152-1.E/info (629 bytes) c2960s-universalk9-mz.152-1.E/html/ (directory) (中略) extracting c2960s-universalk9-mz.152-1.E/html/back.htm (515 bytes) extracting c2960s-universalk9-mz.152-1.E/dc_default_profiles.txt (143335 bytes) extracting info (108 bytes) Installing (renaming): `flash:update/c2960s-universalk9-mz.152-1.E' -> `flash:/c2960s-universalk9-mz.152-1.E' New software image installed in flash:/c2960s-universalk9-mz.152-1.E Removing old image: flash:/c2960s-universalk9-mz.122-53.SE2 All software images installed.
成功する場合は Old image for switch 1: の後にソフトウェアのパスが表示されています。
失敗した場合のカレントディレクトリは flash:/ ではありませんでした。成功した場合は直前に cd (flash:/ 直下に移動) しているので成功した様です。
インストールが完了するまでに 13 分程度、再起動の完了に 5 分程度で 20 分弱要します。
Old image for の後は画面が静止したまま 10 分弱掛かりますが、慌てずに待ちましょう。以下は実際に計測した所要時間の一例です。
- 13:29 archive コマンド実行
- 13:34 Old image for …
- 13:42 All software images installed.
- 13:44 reload コマンド実行
- 13:49 リモートログイン可能
再起動後の sh ver の結果の一部です。
Switch Ports Model SW Version SW Image ------ ----- ----- ---------- ---------- * 1 52 WS-C2960S-48TS-L 15.2(1)E C2960S-UNIVERSALK9-M
flash:/c2960s-universalk9-mz.152-1.E/ を確認すると、
sw#dir flash:/c2960s-universalk9-mz.152-1.E/ Directory of flash:/c2960s-universalk9-mz.152-1.E/ 585 -rwx 16353536 Sep 24 2013 16:49:26 +09:00 c2960s-universalk9-mz.152-1.E.bin 586 -rwx 629 Sep 24 2013 16:54:42 +09:00 info 587 drwx 6144 Sep 24 2013 16:54:42 +09:00 html 1224 -rwx 143335 Sep 24 2013 16:57:53 +09:00 dc_default_profiles.txt 57931776 bytes total (36151808 bytes free)
15.0 系 -> 15.2 系と異なり dc_default_profiles.txt が残っていました。
sw#delete flash:/c2960s-universalk9-mz.152-1.E/dc_default_profiles.txt
試しに削除して reload しても正常に起動しているので、特に問題ない様です。
次は 15.0 系からアップデートした際のメモです。(続く)
- Cisco Catalyst 2960S IOS Update (Part 1) (ダウンロード, バックアップ)
- Cisco Catalyst 2960S IOS Update (Part 2) (12.2 系 -> 15.2 系)
- Cisco Catalyst 2960S IOS Update (Part 3) (15.0 系 -> 15.2 系)
- Cisco Catalyst 2960S IOS Update (Part 4) (設定初期化)
- Cisco Catalyst 2960S - interface range
- Cisco Catalyst 2960S - crypto key generate rsa
- Cisco Catalyst 2960S - crypto key generate rsa modulus
- Cisco Catalyst 2960S - ip device tracking (Part 1)
- Cisco Catalyst 2960S - ip device tracking (Part 2)