Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Upgrading MX240

    Posted 08-12-2021 15:29
    Hello, I have been trying to upgrade an MX240 from JUNOS: 13.3R3.6   to    JUNOS: 17.4R2.4    via USB.

    I'm running into an issue where the .tgz file is unable to be copied or seen by the machine.  I've tried just about everything I can think of but am still unable to get it recognize the file.
    I was able to copy over a .txt file from the USB so I know that it is at least able to read/write.

    One error that keeps coming up is  "Value too large to be stored in data type" but our system has 30G of free memory, so I'm not sure where that's coming from.  

    I'm pretty new to Juniper and Networking in general so please forgive me if this isn't making sense / in the wrong place. 

    I've also added a more in depth view at my procedure/setup if that helps: MX240 - Failed OS upgrade

    Thanks in advance!

    Proof the file exists on the USB:

    root@% ls /var/tmp/usb

    System Volume Information               cat3k_caa-universalk9.16.09.06.SPA.bin

    Test.txt                                junos-install-mx-x86-64-17.4R2.4.tgz


    Tried copying from root:

    root@% cp /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz /var/tmp

    cp: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz: Value too large to be stored in data type


    Tried copying from cli:

    root> file copy /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz /var/tmp

    error: problem checking file: Value too large to be stored in data type

    error: could not fetch local copy of file


    Tried installing directly from USB:

    root> request system software add /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz 

    ERROR: package: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz is not found or empty

    root>

    root> request system software add /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz no-copy 

    ERROR: package: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz is not found or empty

    root>

    root> request system software add /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz no-validate

    ERROR: package: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz is not found or empty

    root>

    root> request system software add /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz no-copy no-validate

    ERROR: package: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz is not found or empty

    root>




    ------------------------------
    Devin Sikes
    ------------------------------


  • 2.  RE: Upgrading MX240

    Posted 08-13-2021 06:41
    Maybe the filesystem is corrupted on the USB key?
    You may try to check and read the whole file, by example within the BSD shell, with a
    ls -lh /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz
    md5 /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz
    and check the space at the destination

    df -h /var/tmp/




    ------------------------------
    Olivier Benghozi
    ------------------------------



  • 3.  RE: Upgrading MX240

    Posted 08-13-2021 20:59
    Thanks for the suggestion, looks like the chassis is having trouble specifically with the OS file. 

    Tried the same commands on a Test.txt file and they were able to run flawlessly.

    root@% ls /var/tmp/usb
    System Volume Information                 cat3k_caa-universalk9.16.09.06.SPA.bin
    Test.txt                                                               junos-install-mx-x86-64-17.4R2.4.tgz
    root@%
    root@%
    root@% ls -lh /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz
    ls: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz: Value too large to be stored in data type
    root@%
    root@%
    root@% md5 /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz
    md5: /var/tmp/usb/junos-install-mx-x86-64-17.4R2.4.tgz: Value too large to be stored in data type
    root@%
    root@%
    root@%
    root@% df -h /var/tmp/
    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad1s1f 16G 2.2G 12G 15% /var
    root@%
    root@%
    root@%
    root@%
    root@%
    root@% ls -lh /var/tmp/usb/Test.txt
    -rwxr-xr-x 1 root field 12B Aug 12 12:14 /var/tmp/usb/Test.txt
    root@%
    root@%
    root@% md5 /var/tmp/usb/Test.txt
    MD5 (/var/tmp/usb/Test.txt) = ed076287532e86365e841e92bfc50d8c
    root@%

    ------------------------------
    Devin Sikes
    ------------------------------



  • 4.  RE: Upgrading MX240
    Best Answer

     
    Posted 08-13-2021 06:41
    From that error message it would appear to be a 32-bit file handle limitation on the part of the various commands you are running, the result being them unable to process files > 2GB. Someone more familiar with the  MX platform may have a better answer but my recommendation would be to first upgrade to 15.1, which is the first version to include the upgraded FreeBSD 10 foundation. Perhaps earlier versions do not have large-file support.


  • 5.  RE: Upgrading MX240

    Posted 08-18-2021 11:12
    That did the trick!  Procedure went flawlessly after migrating to 15.1.  

    Thank you!

    ------------------------------
    Devin Sikes
    ------------------------------