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

Cannot upgrade JUNOS software on J-Series router with 256MB compact flash

0

0

Article ID: KB11092 KB Last Updated: 03 Mar 2017Version: 6.0
Summary:
Cannot upgrade JUNOS software on J-Series router with 256MB compact flash. Show system storage size only shows 135M or less.
Symptoms:
Cannot upgrade JUNOS software on J-Series router with 256MB compact flash. Flash memory shows as 256MB as below:
user@host> show chassis hardware detail
Hardware inventory:
Item             Version  Part number  Serial number     Description
Chassis                                JN001544AB        J4300
Midplane         REV 05   710-010001   AD04501015      
System IO        REV 07   710-010003   AE04500364        System IO board
Routing Engine   REV 08   750-010005   BTRD44400961      RE-J.2
  ad0     244 MB  256MB CHH            504690C08A52840008 Compact Flash
FPC 0                                                    FPC
  PIC 0                                                  2x FE
FPC 1            REV 04   750-010355   AI04370212        FPC
  PIC 0                                                  2x T1
FPC 2            REV 04   750-010353   AF04370043        FPC
  PIC 0                                                  2x FE
Power Supply 0 

However, show system storage does not show all of the memory available as below:
user@host> show system storage
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/ad0s1a             131M        84M        46M       65%  /
devfs                    16K        16K         0B      100%  /dev/
/dev/vn0                104M       104M         0B      100%  /junos
/cf                     131M        83M        46M       64%  /junos/cf
devfs                    16K        16K         0B      100%  /junos/dev/
/dev/bo0s1e              24M       7.0K        24M        0%  /config
procfs                  4.0K       4.0K         0B      100%  /proc
mfs:55                   62M       5.6M        51M       10%  /mfs
mfs:2495                 46M       1.0K        43M        0%  /jail/tmp
mfs:2497                7.7M       1.0K       7.1M        0%  /jail/var/etc
mfs:2499                 23K       1.0K        21K        5%  /jail/dev
mfs:2501                1.9M       1.0K       1.8M        0%  /jail/html/oem

Upgrade attempts may show errors similar to below even after performing system storage cleanup and deleting backup JUNOS image:
fetch: /var/tmp/incoming-package.8854: No space left on device
ERROR: Cannot fetch file: jsr/junos-jseries-8.5R2.10-domestic.tgz

  or

Package contains junos-8.5R2.10.tgz ; renaming ...
ERROR: Not enough space in /var/tmp or /tmp to unpack junos-8.5R2.10.tgz


  or

tar: junos-jseries-8.5R2.10-domestic: Wrote only 0 of 10240 bytes
Solution:
The reason the compact flash only reports approximately 131MB is due to the existence of a swap partition on the compact flash. The swap partition is used to capture system software failure memory snapshots when using the set system dump-device CLI command. However, this is not required for normal router operation. Therefore the recommendation for upgrading to JUNOS version 8.5 and higher is to remove the swap partition to free compact flash space.

JUNOS 8.5 release notes for J-Series details the procedure to remove the swap partition using a USB drive.
Cleaning Up Files and Removing the Swap Partition

Alternatively, KB11204 also details the use of the upgrade-helper script which would allow reuse of the swap partition to be used in the absence of a qualified USB drive.

A note regarding the partition of compact flash with swap partition. Prior to August 2007 ship-date, compact flash allocation for 256MB was approximately as follows:

   Root partition: 135 MB
   Swap partition: 85 MB
   Config partition: 25 MB

Current-shipped units have the allocation changed as follows:

   Root partition: 235 MB
   Config partition: 10 MB

There was also a short period of time when the Root partition was 220 MB and the Config partition was 25 MB.

Note also that if the swap partition is removed, then an alternate medium must exist if configuring set system dump-device CLI command. For J4350 or J6350 Services Routers, you need to specify a USB storage device (usb option) as the medium. For J2320 and J2350 Services Routers, you can specify a USB storage device (usb option) or the external compact flash (removable-compact-flash option) as the medium.
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