Knowledge Center Search


 

Request system snapshot partition might create a too small root partition.

  [KB8836] Show KB Properties

  [KB8836] Hide KB Properties

Categories:
Knowledge Base ID: KB8836
Last Updated: 04 Jun 2010
Version: 4.0

Summary:

The command request system snapshot partition might create a too small root partition on a internal Compact Flash.

Problem or Goal:

A Routing Engine (RE) is running without internal Compact Flash (CF) and a new CF needs to be installed.
After installing the CF, the command request system snapshot partition is being issued. This command is used to partition the CF, create a file system and copy the system and configuration files on the CF.

If using JUNOS version 7.6 and higher for partitioning a CF, the created root partition on the CF is rather small and might cause problems when trying to upgrade or downgrade to another JUNOS version, as shown below:

  georg@ankara-re0> show system storage 
  Filesystem        Size      Used     Avail  Capacity   Mounted on
  /dev/ad0s1a        48M       46M      1.2M       97%  /
  devfs              16K       16K        0B      100%  /dev/
  /dev/vn0           13M       13M        0B      100%  /packages/mnt/jbase
  /dev/vn1           53M       53M        0B      100%  /packages/mnt/jkernel-7.6-20060826.
  /dev/vn2          7.5M      7.5M        0B      100%  /packages/mnt/jpfe-M7i-7.6-20060826.0
  /dev/vn3          2.7M      2.7M        0B      100%  /packages/mnt/jdocs-7.6-20060826.0
  /dev/vn4           17M       17M        0B      100%  /packages/mnt/jroute-7.6-20060826.0
  /dev/vn5          7.8M      7.8M        0B      100%  /packages/mnt/jcrypto-7.6-20060826.0
  /dev/vn6          7.3M      7.3M        0B      100%  /packages/mnt/jpfe-common-7.6-20060826.0
  mfs:135          1008M      8.0K      927M        0%  /tmp
  mfs:142          1008M      260K      927M        0%  /mfs
  /dev/ad0s1e        24M       17K       24M        0%  /config
  procfs            4.0K      4.0K        0B      100%  /proc
  /dev/ad1s1f        17G      611M       15G        4%  /var

  georg@ankara-re0>
request system software add /var/tmp/jinstall-8.1-20060828.0-domestic-signed.tgz reboot
  NOTICE: Validating configuration against jinstall-8.1-20060827.0-domestic-signed.tgz.
  NOTICE: Use the 'no-validate' option to skip this if desired.
  Checking compatibility with configuration
  Initializing...

  Using jbase-7.6-20060826.0
  Verified manifest signed by PackageProduction_7_6_0
     < ... >
  Hardware Database regeneration succeeded
  Validating against /config/juniper.conf.gz
  mgd: commit complete
  Validation succeeded
  Installing package '/var/tmp/jinstall-8.1-20060828.0-domestic-signed.tgz' ...
  Verified jinstall-8.1-20060828.0-domestic.tgz signed by PackageProduction_8_1_0
  Adding jinstall...

  WARNING: The root filesystem is low on free disk space.
  WARNING: This package requires 6827k free, but there
  WARNING: is only 1279k available.

Solution:

If the router has an installed CF with a too small root directory, you can carry out the following steps  as a workaround :

  1. Take a system snapshot from the CF
      request system snapshot

  2. Boot from the hard disk
      request system reboot media disk

  3. Downgrade to 7.5 or lower and reboot the router
      request system software add /var/tmp/jinstall-7.5R2.7-domestic-signed.tgz reboot

  4. Re-partition the CF and recreate the file system on the CF
      request system snapshot partition

  5. Reboot the system - the RE will boot from the CF
      request system reboot   

  6. Check the file system
      georg@ankara-re1> show system storage
      Filesystem              Size       Used      Avail  Capacity   Mounted on
      /dev/ad0s1a             216M        44M       155M       22%  /
      devfs                    16K        16K         0B      100%  /dev/
      /dev/vn0                 14M        14M         0B      100%  /packages/mnt/jbase
      /dev/vn1                 50M        50M         0B      100%  /packages/mnt/jkernel-7.5R2.8
      /dev/vn2                7.4M       7.4M         0B      100%  /packages/mnt/jpfe-M7i-7.5R2.8
      /dev/vn3                2.6M       2.6M         0B      100%  /packages/mnt/jdocs-7.5R2.8
      /dev/vn4                 16M        16M         0B      100%  /packages/mnt/jroute-7.5R2.8
      /dev/vn5                6.9M       6.9M         0B      100%  /packages/mnt/jcrypto-7.5R2.8
      /dev/vn6                6.8M       6.8M         0B      100%  /packages/mnt/jpfe-common-7.5R2.8
      mfs:135                 504M        12K       464M        0%  /tmp
      /dev/ad0s1e              24M      10.0K        22M        0%  /config
      procfs                  4.0K       4.0K         0B      100%  /proc
      /dev/ad1s1f              18G       977M        15G        6%  /var
                 

  7. Finally upgrade to the needed JUNOS version.

 

NOTE: below there is a link to the related JUNOS Problem Report (PR)

Purpose:
Troubleshooting

Related Links:

 

 

ASK THE KB

Question or KB ID:


 


 

 
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.