17
Postings may contain unverified user-created content and change frequently. The content is provided as-is and is not warrantied by Cisco. 1 ASR9000/XR Understanding Turboboot and initial System bring up Introduction on page 1 Core Issue on page 1 File System overview on page 2 Steps to Turboboot on page 6 Different Procedures that may be required to start a Turboboot on page 7 Clear the ROM Monitor environmental variables on all RSPs: on page 7 Clear BOOT_DEV_SEQ_OPER and MIRROR_ENABLE ROM Monitor environment variables to disable disk mirroring. on page 8 Change the default behavior of RP in ROMMON to not reset in 30 minutes on page 9 Define the local ip address to be used on the MGMT interface on the front face of the RSP. on page 9 On the RSP, set the TFTP environment variables: on page 9 Set the Turboboot variables on the RSP: on page 10 On the RSP, boot the vm image located on the TFTP server on page 11 Restore disk mirroring if it was disabled on page 12 How to boot from the external USB port (RSP440 only) on page 13 How to update the FPD's on page 16 Related Information on page 17 Introduction This document provides an understanding of what Turboboot is and how to bring up a system running IOS-XR from scratch Core Issue

ASR9000 or XR Understanding Turboboot and Initial System Bring Up

  • Upload
    diaz

  • View
    381

  • Download
    4

Embed Size (px)

DESCRIPTION

Turbo boot step on IOS XR Cisco

Citation preview

  • Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    1

    ASR9000/XR Understanding Turboboot andinitial System bring up

    Introduction on page 1 Core Issue on page 1 File System overview on page 2

    Steps to Turboboot on page 6Different Procedures that may be required to start a Turboboot on page 7

    Clear the ROM Monitor environmental variables on all RSPs: on page 7 Clear BOOT_DEV_SEQ_OPER and MIRROR_ENABLE ROM Monitor

    environment variables to disable disk mirroring. on page 8 Change the default behavior of RP in ROMMON to not reset in 30 minutes on

    page 9 Define the local ip address to be used on the MGMT interface on the front face of

    the RSP. on page 9 On the RSP, set the TFTP environment variables: on page 9 Set the Turboboot variables on the RSP: on page 10 On the RSP, boot the vm image located on the TFTP server on page 11

    Restore disk mirroring if it was disabled on page 12 How to boot from the external USB port (RSP440 only) on page 13 How to update the FPD's on page 16 Related Information on page 17

    Introduction

    This document provides an understanding of what Turboboot is and how to bring up asystem running IOS-XR from scratch

    Core Issue

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    2

    Turboboot is a frequently misunderstood concept. What it really means is that you will do afresh install of the IOS-XR software.

    XR devices have multiple medias for storage and they all have their individual purpose.

    There are 2 ways to upgrade the system.

    One is to install add and activate the new XR release mini-p(x).pie

    or using the executable with the extension .vm.

    The executable vm file needs to be transferred via TFTP (on the RSP2) or can be loadedfrom the external USB port or TFTP (on the RSP440).

    No other media are possible to be used for a turboboot other then the ones specified above.

    File System overview

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    3

    Volume RSP2 RSP440 Trident Typhoon

    disk0: Embedded USB SSD (SATA)disk0a: Embedded USB SSD (SATA)disk1: Embedded USB SSD (SATA)disk1a: Embedded USB SSD (SATA)harddisk: Harddisk (SAS) Embedded USBharddiska: Harddisk (SAS) Embedded USBharddiskb: Harddisk (SAS) Embedded USBcompactflash: Compactflash1 External USB1

    lcdisk0: Embedded USB Embedded USB

    lcdisk0a: Embedded USB Embedded USB

    bootflash: NOR Flash NOR Flash NOR Flash

    configflash: NOR Flash

    nvram: NVSRAM NVSRAM

    Kernel dump Harddisk (SAS) SSD (SATA) TFTP bootflash:1. Removable

    Access (Mount) Points (in /dev)Volume RSP2 RSP440 Trident Typhoon

    disk0: disk00t77 hd0t77 qsm to active rsp qsm to active rsp

    disk0a: disk00t78 hd0t78 qsm to active rsp qsm to active rsp

    disk1: disk10t77 hd1t77 qsm to active rsp qsm to active rsp

    disk1a: disk10t78 hd1t78 qsm to active rsp qsm to active rsp

    harddisk: hd0t79 usb00t77 qsm to active rsp qsm to active rsp

    harddiska: hd0t77 usb00t78 qsm to active rsp qsm to active rsp

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    4

    harddiskb: hd0t78 usb00t11

    compactflash: disk20t6,11,121 usb10t6,11,121

    lcdisk0: lcdisk00t77 lcdisk00t77

    lcdisk0a: lcdisk00t78 lcdisk00t78

    bootflash: fs0p1 fs0p1 fs0p1

    configflash: fs1p1

    nvram: nvram nvram

    Kernel dump hd0t80 hd0t80 or hd1t802 fs0p2

    1. Any one 2. Either one

    Usage

    Volume RSP2 RSP440 Trident Typhoon

    disk0: IOS-XRPackages,Configs

    IOS-XRPackages,Configs

    disk0a: sysmgr_debug sysmgr_debug

    disk1: IOS-XR Packages(if Mirrored)

    IOS-XR Packages(if Mirrored)

    disk1a: wdsysmon_debug wdsysmon_debug

    harddisk: Crash files, logs Crash files, logs

    harddiska: NP logs, crashfiles

    NP logs, crashfiles

    harddiskb:

    compactflash: File Copy File Copy

    lcdisk0: Kernel dump files Kernel dump files

    lcdisk0a:

    bootflash: MBI Images

    configflash: OBFL

    nvram: Configs Configs

    Kernel dump Raw kernel dumps Raw kernel dumps Raw kernel dumps

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    5

    Filesystems

    Volume RSP2 RSP440 Trident Typhoon

    disk0: QNX4 QNX4

    disk0a: QNX4 QNX4

    disk1: QNX4 QNX4

    disk1a: QNX4 QNX4

    harddisk: QNX4 QNX4

    harddiska: QNX4 QNX4

    harddiskb: QNX4 FAT

    compactflash: FAT1 FAT1,2

    lcdisk0: QNX4 QNX4

    lcdisk0a: QNX4 QNX4

    bootflash: FFSv3 FFSv3 FFSv3

    configflash: FFSv3

    nvram: Cisco Cisco

    Kernel dump Raw Raw File Raw

    1. FAT F/S only 2. Flash Media only

    Approximate Parition Size (minimum)Volume RSP2 RSP440 Trident Typhoon

    disk0: 1.6GB 11.0GB

    disk0a: 0.4GB 2.2GB

    disk1: 1.6GB 11.0GB

    disk1a: 0.4GB 2.2GB

    harddisk: 35GB 3.1/6.2GB

    harddiska: 8GB 0.4/0.8GB

    harddiskb: 8GB 0.4/0.8GB

    compactflash: 1GB 1-32GB

    lcdisk0: 1.6GB 1.6GB

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    6

    lcdisk0a: 0.4GB 0.4GB

    bootflash: 44MB 56MB 56MB

    configflash: 28MB

    nvram: 220K 500K

    Kernel dump 21GB 500MB x 2 24MB

    Note that unlike many IOS devices, nvram is NOT used for the configuration storage.

    Only rommon variables and license info is stored there primarily.

    Steps to Turboboot

    As mentioned Turbobooting means that you load the "VM" (virtual machine" XR base imagewhich is effectively an executable.

    Turboboot is started from Rommon and is effectively putting a disk with the desired OS inyour laptop and reboot the machine to boot from CDROM.

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    7

    Before the Turboboot process starts, you can instruct the system to wipe all files from thesystem and start clean or install the image to be turbobooted along side with any existingreleases currently found on the disk.

    Turbobooting may be required if you want to sweep clean your system, or we also had someissues in XR4.2.0 with the RSP2 (due to the smu sizes) whereby the upgrade pie could notbe loaded. A turboboot was required in that case also.

    Different Procedures that may be required to start a Turboboot

    Some or all of these procedures below are needed.

    Clear the ROM Monitor environmental variables on all RSPs:

    The command "set" gives you an overview of all the rommon environment variablescurrently set to their values.

    rommon>

    unset BOOT

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    8

    unset TFTP_FILEsync

    the command *unset* clears the variable value from rommon.

    the command *sync *saves or writes the newly set and unset variables to persistent memoryso they are saved cross reloads and power cycles.

    Clear BOOT_DEV_SEQ_OPER and MIRROR_ENABLE ROM Monitorenvironment variables to disable disk mirroring.

    unset BOOT_DEV_SEQ_OPERunset MIRROR_ENABLEsync

    By default, the two internal USB partitions (disk0 and disk1) are mirrored to each other, ifyou break the mirror, turboboot will only affect the disk

    that you are turbobooting target to and not the other one (nice if you want to fall back).

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    9

    Change the default behavior of RP in ROMMON to not reset in 30 minutes

    Rommon> privRommon> diswd

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    10

    sets the TFTP timeout for the transfer, you may need to set this larger to prevent abortduring xfer if there are network delays

    TFTP_CHECKSUM=1

    whether checksum on teh transfer is needed, this is adviceable in case the image getscorrupted during transfer.

    TFTP_SERVER=server_ip_addr

    the server address can also be specified in the boot statement, or fixed in the rommonvariable.

    TFTP_MGMT_INTF=0

    which of the 2 mgmt interfaces you want to use, either 0 or 1.

    Set a larger tftp block size in rommon:

    Rommon> TFTP_BLKSIZE=1400

    this is recommended to pack larger packets and be done with this TFTP xfer quicker.

    Set the Turboboot variables on the RSP:

    TURBOBOOT=on,disk0:,formatsync

    This will instruct the system to do a turboboot to disk0 as target and it will format thecomplete filesystem to start from base.

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    11

    the format key is optional.

    Currently today we only support targeted install to disk0 but this will change likely in XR4.3.1whereby you can use disk1 as install target.

    NOTE: a recent tac case showed that the command for turboboot failed on the ASR9001.

    Supposedly this was made to work by omitting the colon after disk0:

    Suggesting to try the disk0 (without colon) if the command with colon fails.

    On the RSP, boot the vm image located on the TFTP server

    (Works only with the VM image, not the TAR file)

    boot tftp://server/directory/filename

    During the boot process the image is copied first on to the memory(RAM) and is installedfrom memory(RAM). Once it is insalled from memory, it will copy the image back on todisk0: and reload the device. Wait till you get the message "SYSTEM CONFIGURATIONCOMPLETED"

    Output of show install active when in memory,

    RP/0/RSP0/CPU0:ios#sh instal active

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    12

    Active Packages:mem:asr9k-mini-p-4.2.0

    Output of show install active after image copied on to disk0:,

    RP/0/RSP0/CPU0:ios#sh instal active

    Active Packages:disk0:asr9k-mini-p-4.2.0

    The system will also self unset the TURBOBOOT rommon variable.

    Restore disk mirroring if it was disabled

    To restore disk mirroring, use the mirror command in the global configuration mode.For more information on the mirror command, see the "Boot Commands on Cisco IOSXR Software" module in Cisco ASR 9000 Series Aggregation Services Router SystemManagement Command Reference.

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    13

    How to boot from the external USB port (RSP440 only)

    The RSP-440 can boot from the USB front panel port, insteafd of using "boot tftp:// or bootdisk0:/" you need to use a different command, mediaboot.

    The command is *mediaboot *usb:\yourfilename

    Summary steps for using turboboot

    Considering that turboboot can also erase the config, it is smart to have a back from thatobviously.

    same thing with SSH keys and other things like licenses. This short list tries to provide acouple of checks to take into consideration when doing upgrades, RSP2->RSP440 swaps orturboboots.

    1. Run a cfs check in admin & non-admin mode

    2. Copy active licenses and SNMP files to tftp server

    3. Copy running config to a tftp-server or laptop

    4. Capture "show ipv4 int brief" output to a text file

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    14

    5. Capture "show ipv6 int brief | i Up/Up" output to a text file

    6. Offline. Edit the saved RSP config - add "no shutdown" for all physical interfaces that areup/up from the above IPv4 & IPv6 interface

    captures and save cfg changes. Note that it is not necessary to no shut sub-interfaces, only the main physical interface.

    7. Connect a laptop console cable to the RSP in RSP0 slot and enable a log file to monitorand capture the RSP bootup logs.

    8 . Turn the power supplies on to power up the asr9k system. (approx. 7-12 minutes)

    9. After the LED's indicate IOS-XR on the LC's, and ACTV or STBY on the RSPs,log in via the console of the RSP that is ACTV and run some preliminary checks tocheck system stability.

    NOTE: The default root-system username and password on the RSP440 are root/root

    (if root/root does not work also try cisco/cisco, or admin/admin or viking/viking)

    10. Verify the ASR9K IOS XR version

    11. un a cfs check in admin & non-admin mode

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    15

    12. Optional. Install add & commit any missing SW packages (pies) or requiredSMUs

    13. Upgrade FPD in admin mode

    14. Reload any nodes that had FPD upgrades

    15. Configure the Mgmt ethernet interface with an IP address to reach tftp

    server & load and commit the saved RSP config from tftp server or laptop

    a) or log into the console and cut & paste a saved cfg from laptop

    b) or copy saved cfg from laptop to usb, then insert usb into RSP440 and copy

    and commit cfg

    c) copy licenses and snmp files back to the RSPs

    16. Optional. create and generate new crypto keys if required.

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    16

    How to update the FPD's

    FPD upgrade for all ASR9K devices using FPD.

    a) Enter admin mode via the admin command, and capture the output of the currentfirmware versions using CLI show hw-module fpd location all. save this output to atext file. Notice any LC that has a yes in the Upg/Dng? column. This indicatesthe FPD should be upgraded or downgraded to match the current FPD version.

    b) From admin mode upgrade FPD using the CLI: upgrade hw-module fpd location r/s/m

    or if all locations require FPD upgrade (suggested) use CLI:* upgrade hw-module fpdlocation all *

    Disk Space occupied for each image

    Simplest way is to use the ksh df utility.

    Install a release and packages and run df:

    # df /disk0:

    /dev/disk00t77 3813344 733477 3079867 20% /dev/disk0:/

  • ASR9000/XR Understanding Turboboot and initial System bring up

    Postings may contain unverified user-created content and change frequently. The content is provided as-is andis not warrantied by Cisco.

    17

    Divide the highlighted number by 2000. That gives the approximate size in MB. 366MB inthis case.

    Repeat for any other releases we should be interested in.

    If you do an upgrade, gather the df output before and after upgrade and compute thedifference in df output.

    Related Information

    Xander Thuijs, CCIE #6775

    Principal Engineer ASR9000