Routing
Routing

Low space to upgrade

[ Edited ]
‎10-02-2010 04:58 PM

Hi, I'm facing a problem during Junos upgrade (9.6 to 10.3) in my j2350 router, appear this message:

 

Installing package '/var/tmp/usb/junos-jsr-10.3R1.9-export.tgz' ...
tar: junos-jsr-10.3R1.9-export: Wrote only 0 of 10240 bytes
tar: Error exit delayed from previous errors
Installation failed for package '/var/tmp/usb/junos-jsr-10.3R1.9-export.tgz'
WARNING: Not enough space in /var/tmp to unpack junos-10.3R1.9.tgz
WARNING: Use 'request system storage cleanup' and
WARNING: the 'unlink' option to improve the chances of success

 

I created a usb file system fallowing this guide: http://kb.juniper.net/InfoCenter/index?page=content&id=KB10800&smlogin=true,  and I tried insert this command: 'request system software add no-validate no-copy /var/tmp/usb/<junos>' but I have no sucess.

 

When I use the 'unlink' , appear this:

 

tar: junos-jsr-10.3R1.9-export: Wrote only 0 of 10240 bytes
tar: Error exit delayed from previous errors
Installation failed for package '/var/tmp//usb/junos-jsr-10.3R1.9-export.tgz'

 

I used too:

 

request system storage cleanup

 and

 request system software delete-backup

 

Any idea to help me?

17 REPLIES 17
Routing

Re: Low space to upgrade

‎10-02-2010 06:54 PM

Can you show the output of  "show system storage"?

 

Ron

Highlighted
Routing

Re: Low space to upgrade

[ Edited ]
‎10-03-2010 10:11 AM

You can see bellow:

 

 

root# run show system storage

Filesystem              Size       Used        Avail    Capacity   Mounted on

/dev/ad0s1a           432M      344M        83M       81%   /

devfs                        1.0K       1.0K           0B      100%   /dev

devfs                        1.0K       1.0K           0B      100%   /dev/

/dev/md0                354M       354M         0B      100%   /junos

/cf                            432M       344M        83M       81%   /junos/cf

devfs                        1.0K       1.0K           0B      100%   /junos/dev/

procfs                       4.0K       4.0K          0B      100%   /proc

/dev/bo0s1e            48M        17K        48M        0%   /config

/dev/md1                168M        12M       142M        8%   /mfs

/cf/var/jail                432M       344M        83M       81%   /jail/var

devfs                        1.0K       1.0K           0B      100%   /jail/dev

/dev/md2                 39M       4.0K          36M        0%   /mfs/var/run/utm

/dev/da0                1.8G        168M        1.6G   11%    /cf/var/tmp/usb

 

Routing

Re: Low space to upgrade

‎10-03-2010 10:47 AM

You should be able to clean up enough space to do the upgrade, but I would recommend that you pickup a 1-gig CF card, as you will continually have problems with the box if you only have a 512M CF card in there.  I have successfully used Sandisk 1GB compact flash cards many times.

 

Ron

Routing

Re: Low space to upgrade

‎10-03-2010 11:00 AM

You can try to figure out what files are taking up so much space by dropping to a shell, and typing:

 

 find / -size +50000

 

This should show you all the large files, so you might figure out where the culprit(s) are.

 

Ron

Routing

Re: Low space to upgrade

‎10-03-2010 01:27 PM

I found this file : /cf/packages/junos-9.6R3.8-domestic   - without extension.  +/- 100Mb

Can I delete this file?

Routing

Re: Low space to upgrade

‎10-03-2010 01:53 PM

Hi

 

You can use the below procedure to upgrade for low space:

 

1-  request system software delete-backup

2- request system storage cleanup

3- Copy the new JUNOS file to the /mfs directory thorugh ftp etc

4- Make sure there is no JUNOS file previously you tried to put in /var/tmp

5- Just try to upgrade now using command "request system software add /mfs/<name of JUNOS file> reboot"

 

Please try it. Let me know the outcome

 

Thanks

 

 

Kashif Rana
JNCIE-SEC, JNCIE-ENT, JNCIE-SP, JNCIS(FWV,SSL),JNCIA(IDP,AC,WX),BIG IP-F5-LTM, CCNP
----------------------------------------------------------------------------------------------------------------------------------------

If this post was helpful, please mark this post as an "Accepted Solution".Kudos are always appreciated!
Routing

Re: Low space to upgrade

‎10-03-2010 03:18 PM

Yes, you can certainly delete that file.

 

Ron

Routing

Re: Low space to upgrade

‎10-03-2010 03:41 PM

rfrederick, I can't delete, look the message:

 

root> file delete /cf/packages/junos-9.6R3.8-domestic

rm: /cf/packages/junos-9.6R3.8-domestic: Operation not permitted

 

Via FTP I tried change the CHMOD, but this operation is not permitted.

Routing

Re: Low space to upgrade

‎10-03-2010 03:42 PM

Kashinf-rana: No success...

Routing

Re: Low space to upgrade

‎10-03-2010 06:12 PM

Sorry, I just read back up in the thread that you are running 9.6.  Sorry for the bad advice, you were trying to delete your running image.  Anyways, as I said, I would really recommend getting a 1-gig CF card.

 

Ron

Routing

Re: Low space to upgrade

[ Edited ]
‎10-03-2010 06:52 PM

Don't worry, I appreciate your help.

Have no other alternative using the USB for flash drive?

Routing

Re: Low space to upgrade

‎10-04-2010 05:48 AM

Ok repeat the whole process. But change the point no 5 to below:

 

5- Just try to upgrade now using command "request system software add /mfs/<name of JUNOS file> no-copy no-validate reboot"

 

Also could you paste the output of "show system storage"

Kashif Rana
JNCIE-SEC, JNCIE-ENT, JNCIE-SP, JNCIS(FWV,SSL),JNCIA(IDP,AC,WX),BIG IP-F5-LTM, CCNP
----------------------------------------------------------------------------------------------------------------------------------------

If this post was helpful, please mark this post as an "Accepted Solution".Kudos are always appreciated!
Routing

Re: Low space to upgrade

‎10-04-2010 10:10 AM

I tried use the option no-validate and no-copy .I have no sucess.

Routing

Re: Low space to upgrade

‎10-04-2010 11:39 AM

Can I use 2Gb CF or only 1Gb? 

Routing

Re: Low space to upgrade

‎10-04-2010 11:39 AM

Hello,

I would suggest:

1/ open a JTAC case to have your issue properly analyzed and root cause determined, and, in the meantime

2/ if the router is accessible over the network or you have physical access to it, set up a temporary FTP server with anonymous login, put jinstall image on this server and after JTAC has finished the investigation, try upgrading the router using

 

request system software add ftp://<server_IP_address>/jinstall-X.YR.W.V-signed.tgz no-copy unlink no-validate

There are literally dozens of free FTP server programs available on the net. I had a particular success with 3CDaemon FTP server http://support.3com.com/software/3cdv2r10.zip

Or if you don't like/can't afford FTP server installation, have an FTP server on USB drive

http://www.bpftpserver.com/products/bpftpserver/windows/portable/usb

HTH

Rgds
Alex

 

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Routing
Solution
Accepted by topic author Mauricio Oliveira
‎08-26-2015 01:27 AM

Re: Low space to upgrade

‎10-04-2010 12:48 PM

I found a file in /cf/var/validate/chroot/cf/tmp/junos/junos-jsr-10.3R1.9-export  <without> extension, when I deleted it, worked!!!

 

I can't believe !!! 

thanks people

Routing

Re: Low space to upgrade

‎02-15-2013 03:00 PM

A bit late to the party on this thread, but thank you rfrederick! This helped me find a few "abandoned" files on my J-series that ate up a substantial amount of space on /mfs and caused commit to fail!