Routing

last person joined: yesterday 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
Expand all | Collapse all

Low space to upgrade

  • 1.  Low space to upgrade

    Posted 10-02-2010 16:59

    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?



  • 2.  RE: Low space to upgrade

    Posted 10-02-2010 18:54

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

     

    Ron



  • 3.  RE: Low space to upgrade

    Posted 10-03-2010 10:12

    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

     



  • 4.  RE: Low space to upgrade

    Posted 10-03-2010 10:48

    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



  • 5.  RE: Low space to upgrade

    Posted 10-03-2010 11:01

    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



  • 6.  RE: Low space to upgrade

    Posted 10-03-2010 13:27

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

    Can I delete this file?



  • 7.  RE: Low space to upgrade

    Posted 10-03-2010 13:54

    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

     

     



  • 8.  RE: Low space to upgrade

    Posted 10-03-2010 15:42

    Kashinf-rana: No success...



  • 9.  RE: Low space to upgrade

    Posted 10-03-2010 15:19

    Yes, you can certainly delete that file.

     

    Ron



  • 10.  RE: Low space to upgrade

    Posted 10-03-2010 15:41

    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.



  • 11.  RE: Low space to upgrade

    Posted 10-03-2010 18:13

    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



  • 12.  RE: Low space to upgrade

    Posted 10-03-2010 18:52

    Don't worry, I appreciate your help.

    Have no other alternative using the USB for flash drive?



  • 13.  RE: Low space to upgrade

    Posted 10-04-2010 05:49

    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"



  • 14.  RE: Low space to upgrade

    Posted 10-04-2010 10:10

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



  • 15.  RE: Low space to upgrade

    Posted 10-04-2010 11:39

    Can I use 2Gb CF or only 1Gb? 



  • 16.  RE: Low space to upgrade

    Posted 10-04-2010 11:40

    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

     



  • 17.  RE: Low space to upgrade
    Best Answer

    Posted 10-04-2010 12:48

    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



  • 18.  RE: Low space to upgrade

    Posted 02-15-2013 15:01

    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!