Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How to upgrade a Routing Engine Compact Flash without losing the configuration?

0

0

Article ID: KB11413 KB Last Updated: 26 Jan 2012Version: 5.0
Summary:
Step by step procedure on how to change the internal Compact Flash (CF) of a Routing Engine (RE) without losing the configuration.
Symptoms:

Solution:
  1. Put a copy of the configuration and software packages on the hard drive :
  2. lab@M7i> request system snapshot 
    Verifying compatibility of destination media partitions...
    Running newfs (220MB) on hard-disk media / partition (ad1s1a)...
    Running newfs (24MB) on hard-disk media /config partition (ad1s1e)...
    Copying '/dev/ad0s1a' to '/dev/ad1s1a' .. (this may take a few minutes)
    Copying '/dev/ad0s1e' to '/dev/ad1s1e' .. (this may take a few minutes)
    The following filesystems were archived: / /config
    
    If mirror-flash-on-disk is configured it needs to be disabled before performing that command.


  3. Stop the Routing Engine before extracting it :
  4. lab@M7i> request system halt 
    
    
  5. Replace the Compact Flash :

  6. For more information about how to change the internal CF on various REs please check the documentation :
    www.juniper.net/techpubs/hardware/common/fru-all-re-flash/upgrade-internal-flash.html#upgrade-internal-flash


  7. Re-insert the RE and wait for it to boot from the hard drive :

  8. Some brand new CF might have a non empty boot sector that can stop the boot process waiting for keyboard input.
    It is strongly recommended to have console access while the RE is booting with the new CF.
    Will try to boot from :
    PCMCIA ATA Flash Card
    Compact Flash
    Primary IDE Hard Disk
    Ethernet
    
    Trying to Boot from Primary IDE Hard Disk
    Loading /boot/loader
    Console: serial port
    BIOS drive A: is disk0
    BIOS drive C: is disk1
    BIOS drive D: is disk2
    BIOS 639kB/1571840kB available memory
    
    FreeBSD/i386 bootstrap loader, Revision 0.8
    (builder@vasuki.juniper.net, Sun Feb 24 19:18:26 GMT 2008)
    Loading /boot/defaults/loader.conf 
    /kernel text=0x4f1d77 data=0x3e928+0x59556 syms=[0x4+0x61480+0x4+0x6df9b]
    ...
    
    M7i (ttyd0)
    
    login: lab
    Password:
    
    --- JUNOS 8.3R4.3 built 2008-02-24 20:35:04 UTC
    ---
    --- NOTICE: System is running on alternate media device  (/dev/ad1s1a).
    ---
    lab@M7i>
     
    
  9. Copy the configuration saved on the hard drive back onto the CF :
  10. lab@M7i> request system snapshot partition    
    Clearing current label...
    Partitioning compact-flash media (ad0) ...
    Partitions on snapshot:
    
      Partition  Mountpoint  Size    Snapshot argument
          a      /           899MB   root-size
          e      /config     99MB    config-size
    Running newfs (899MB) on compact-flash media / partition (ad0s1a)...
    Running newfs (99MB) on compact-flash media /config partition (ad0s1e)...
    Copying '/dev/ad1s1a' to '/dev/ad0s1a' .. (this may take a few minutes)
    Copying '/dev/ad1s1e' to '/dev/ad0s1e' .. (this may take a few minutes)
    The following filesystems were archived: / /config
    
    lab@M7i>
    
    
  11. Restart the RE and check that it is booting from the CF :
  12. Award Modular BIOS v4.51PG, An Energy Star Ally
    Copyright (C) 1984-98, Award Software, Inc.
    
    BIOS Version 1.2
    11/02/2004-i440GX-SMC67X-2A69TU00C-00
    
    Will try to boot from :
    PCMCIA ATA Flash Card
    Compact Flash
    Primary IDE Hard Disk
    Ethernet
    
    Trying to Boot from PCMCIA ATA Flash Card
    
    Trying to Boot from Compact Flash
    Loading /boot/loader
    Console: serial port
    BIOS drive A: is disk0
    BIOS drive C: is disk1
    BIOS drive D: is disk2
    BIOS 639kB/1571840kB available memory
    
    FreeBSD/i386 bootstrap loader, Revision 0.8                
    (builder@vasuki.juniper.net, Sun Feb 24 19:18:26 GMT 2008)
    Loading /boot/defaults/loader.conf 
    /kernel text=0x4f1d77 data=0x3e928+0x59556 syms=[0x4+0x61480+0x4+0x6df9b]
    
    
    Hit [Enter] to boot immediately, or space bar for command prompt.
    Booting [kernel]...               
    ...
    
    M7i (ttyd0)
    
    login: lab
    Password:
    
    --- JUNOS 8.3R4.3 built 2008-02-24 20:35:04 UTC
    lab@M7i> show system storage 
    Filesystem              Size       Used      Avail  Capacity   Mounted on
    /dev/ad0s1a             871M        53M       810M        6%  /
    devfs                    16K        16K         0B      100%  /dev/
    /dev/vn0                 15M        15M         0B      100%  /packages/mnt/jbase
    /dev/vn1                 53M        53M         0B      100%  /packages/mnt/jkernel-8.3R4.3
    /dev/vn2                8.3M       8.3M         0B      100%  /packages/mnt/jpfe-M7i-8.3R4.3
    /dev/vn3                3.0M       3.0M         0B      100%  /packages/mnt/jdocs-8.3R4.3
    /dev/vn4                 18M        18M         0B      100%  /packages/mnt/jroute-8.3R4.3
    /dev/vn5                7.6M       7.6M         0B      100%  /packages/mnt/jcrypto-8.3R4.3
    /dev/vn6                 14M        14M         0B      100%  /packages/mnt/jpfe-common-8.3R4.3
    mfs:135                 2.0G       8.0K       1.8G        0%  /tmp
    mfs:142                 2.0G       308K       1.8G        0%  /mfs
    /dev/ad0s1e              97M        27K        96M        0%  /config
    procfs                  4.0K       4.0K         0B      100%  /proc
    /dev/ad1s1f              16G       5.3G       9.5G       36%  /var
    
    lab@M7i> 
    


Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search