This artical will introduct how to migration IOS XR 32-bit(cXR) to IOS XR 64-bit(eXR) and how to rolling back from eXR to cXR.
PXE Upgrade to eXR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | Booting IOS-XR 64 bit Mgmt Network boot using local settings (iPXE) - Press Ctrl-c to stop o Please select the operating system and the boot device: 1) IOS-XR (32 bit Classic XR) 2) IOS-XR 64 bit Boot previously installed image 3) IOS-XR 64 bit Mgmt Network boot using DHCP server 4) IOS-XR 64 bit Mgmt Network boot using local settings (iPXE) (Press 'p' for more option) Selection [1/2/3/4]: 4 Selected IOS-XR 64 bit Mgmt Network boot using local settings (iPXE), Continue ? Y/N: y Press Ctrl-B for the iPXE command line... //Press Ctrl-B iPXE> set net0/ip 10.75.49.7 iPXE> set net0/netmask 255.255.255.0 iPXE> set net0/gateway 10.75.49.1 iPXE> ifopen net0 iPXE> iPXE> ping 10.75.49.1 0 bytes from <none>: seq=1: Connection timed out (http://ipxe.org/4c1b2092) 64 bytes from 10.75.49.1: seq=2 64 bytes from 10.75.49.1: seq=3 Finished: Operation canceled (http://ipxe.org/0b072095) iPXE> iPXE> ifstat iPXE> iPXE> boot tftp://10.75.49.254/IOX642/asr9k-mini-x64-6.4.2.iso // Wait a while to upgrade successfully |
cXR to eXR by use eUSB
eUSB means Emabedded Universal serial bus, According to my idea is the existence of harddisk: or harddiskb: on 9K
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | RP/0/RP0/CPU0:ios#copy tftp:/IOX642/asr9k-mini-x64-migrate_to_eXR.tar-6.4.2 harddisk: // Copy this type file before MW. //Please note the cXR version should be same with eXR version, otherwise these upgrade will failed. Wed Feb 20 03:10:00.386 UTC Address or name of remote host [10.75.49.254]? Destination filename [/harddisk:/asr9k-mini-x64-migrate_to_eXR.tar-6.4.2]? RP/0/RP0/CPU0:ios#run /pkg/bin/migrate_to_eXR -m eusb -r //Wait a while to upgrade successfully Wed Feb 20 03:26:38.128 UTC No standby RP/RSP detected. Found tar file asr9k-mini-x64-migrate_to_eXR.tar-6.4.2 in /harddisk:/. This tar file should contain the ASR9K IOS XR 64 Bit ISO and boot files. Extracting and Checking md5sum Tar: blocksize = 20 x boot/initrd.img, 122661203 bytes, 239573 tape blocks x boot/signature.initrd.img, 256 bytes, 1 tape blocks x boot/signature.initrd.img.md5sum, 33 bytes, 1 tape block |
eXR to cXR downgrade
You will only need to use below command:
1 2 3 4 5 | copy tftp://10.75.49.254;MGMT/IOX533/asr9k-mini-px.vm-5.3.3 harddiskb: <<< befor 6.1.4 you need copy vm file to harddiskb, then copy it from harddiskb: to harddisk: copy harddiskb:/asr9k-mini-px.vm-5.3.3 harddisk: <<< after 6.1.4, you can copy vm file to harddisk directly admin copy harddisk:/asr9k-mini-px.vm-5.3.3 location 0/RP0/CPU0/VM1 harddiskb:/ run /etc/rc.d/init.d/migrate_to_cXR -b eusb -m rp0 -r <<< (router will reload) |
Below is the detail steps
Copy file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | RP/0/RP0/CPU0:ASR9922-C#copy tftp://10.75.49.254;MGMT/IOX533/asr9k-mini-px.vm-5.3.3 harddiskb: Tue Feb 19 03:33:38.439 EST Address or name of remote host []?10.75.49.254 Destination filename [/harddiskb:/asr9k-mini-px.vm-5.3.3]? Accessing tftp://10.75.49.254;MGMT/IOX533/asr9k-mini-px.vm-5.3.3 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC RP/0/RP0/CPU0:ASR9922-C#dir harddiskb: Tue Feb 19 03:55:11.766 EST Directory of harddiska: 11 drwx------ 2 16384 Jan 10 00:15 lost+found 8113 drwxr-xr-x 2 4096 Jan 10 00:20 backup_config 12 lrwxrwxrwx 1 5 Feb 15 01:51 eusb -> /eusb 13 -rwxr--r-- 1 543436327 Feb 19 03:50 asr9k-mini-px.vm-5.3.3 3829356 kbytes total (3095996 kbytes free) RP/0/RP0/CPU0:ASR9922-C# RP/0/RP0/CPU0:ASR9922-C# RP/0/RP0/CPU0:ASR9922-C#copy harddiskb:/asr9k-mini-px.vm-5.3.3 harddisk: Tue Feb 19 03:55:29.904 EST Destination filename [/harddisk:/asr9k-mini-px.vm-5.3.3]? CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC RP/0/RP0/CPU0:ASR9922-C#admin Tue Feb 19 03:56:15.621 EST cisco connected from 127.0.0.1 using console on ASR9922-C sysadmin-vm:0_RP0# copy harddisk:/asr9k-mini-px.vm-5.3.3 location 0/RP0/CPU0/VM1 harddiskb:/ Tue Feb 19 03:56:35.978 UTC-05:00 Copying harddisk:/asr9k-mini-px.vm-5.3.3 to harddiskb:/ asr9k-mini-px.vm-5.3.3 0% 0 0.0KB/s --:-- ETA asr9k-mini-px.vm-5.3.3 |
Downgrade to cXR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | sysadmin-vm:0_RP0# run /etc/rc.d/init.d/migrate_to_cXR -b eusb -m rp0 -r Tue Feb 19 04:01:52.572 UTC-05:00 No standby RSP/RP detected. Updated MIGRATE flag. Updated boot filename to asr9k-mini-px.vm-5.3.3 Rebooting Automatically Setting up the reload option Successfully connected to SM service Proceed with the reimage operation of all cards? [y/n] Sending Request To Shelf Manager to Get Chassis Summary Rack SerialNumber HW State SW State |----------- Chassis Summary Start -----------| 0 FOX1846G8P3 |----------- Chassis Summary End -----------| Rack number is 0 Sending rack rel request to SM 0/0/ADMIN0:Feb 19 04:01:53.416 EST: cm[3688]: %ROUTING-TOPO-5-PROCESS_UPDATE : Got process update: Card shutdown. RP/0/RP0/CPU0:Feb 19 04:01:55.524 EST: kim[322]: %INFRA-KIM-6-LOG_INFO : XR statistics will be pushed into the Linux kernel at 1 second intervals 0/0/ADMIN0:Feb 19 04:02:03.001 EST: vm_manager[3753]: %INFRA-VM_MANAGER-4-INFO : Info: vm_manager brought down VM default-sdr--1 0/RP0/ADMIN0:Feb 19 04:02:08.042 EST: cm[4096]: %ROUTING-TOPO-5-PROCESS_UPDATE : Got process update: Card shutdown. Successfully reset all the cards Disconnected from SM service. Exiting from tool.... Reload to boot IOS XR 32 Bit image. *** IMPORTANT *** Please back up your admin and XR configurations before reloading. sysadmin-vm:0_RP0# Preparing system for backup. This may take a few minutes especially for large configurations. Status report: node0_RP0_CPU0: BACKUP INPROGRESS Status report: node0_RP0_CPU0: BACKUP HAS COMPLETED SUCCESSFULLY [Done] RP/0/RP0/CPU0:Feb 19 04:02:12.866 EST: processmgr[51]: %MGBL-SCONBKUP-6-INTERNAL_INFO : Reload debug script successfully spawned Stopping Stopping OpenBSD Secure Shell server: sshdinitctl: Unknown instance: Stopping system message bus: dbus. Stopping random number generator daemon. Stopping system log daemon...0 Stopping kernel log daemon...0 Stopping internet superserver: xinetd. Stopping crond: OK Stopping rpcbind daemon... done. Stopping S.M.A.R.T. daemon: smartd. Stopping Lighttpd Web Server: stopped /usr/sbin/lighttpd (pid 3995) lighttpd. Stopping libvirtd daemon: [ OK ] Deconfiguring network interfaces... done. Sending all processes the KILL signal... Tue Feb 19 09:02:56 UTC 2019: halt -w Tue Feb 19 09:02:56 UTC 2019: Reboot Mode: 0, Hushd mode: 4, IPU: 21 Tue Feb 19 09:02:59 U魷Booting Main Processor Transferring Console <-snip-> RP/0/RP0/CPU0:ios#admin install commit Sun Feb 19 09:23:45.076 UTC Install operation 1 '(admin) install commit' started by user 'cisco' via CLI at 09:23:45 UTC Sun Feb 19 1989. Install operation 1 completed successfully at 09:23:51 UTC Sun Feb 19 1989. RP/0/RP0/CPU0:ios# |
For detail upgrade log, you can download form below link, Thanks
https://mega.nz/#F!YCQmHaLa!5IdCwfM8D7c9bUEpX5VzzA
by Xu Xing 大佬