Switching

last person joined: 2 days ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Problem occurs after upgrading the JUNOS

    Posted 11-14-2014 01:51

    Hello

     

    After upgrading the JUNOS 12.3R6.6 on EX 4200 having virtual chassis of 4 units , unit 2 shows this error when I type "show system snapshot media internal". Only primary partition shows and backup as this below error

     

    error:cannot mount /dev/da02sa 

     

    When I am trying to use "request system snapshot slice alternate member 2" command it shows

     

    Formatting alternate root (/dev/da0s2a)....

    error: Could not format alternate root

     

     

    Please provide solution..

     

    Amit 

     

     



  • 2.  RE: Problem occurs after upgrading the JUNOS

    Posted 11-14-2014 03:08

    Do your switches have the correct jloader version to support resilient-root partitioning?  You can check with:

     

    show chassis firmware

     

    http://kb.juniper.net/InfoCenter/index?page=content&id=KB21062

     

     



  • 3.  RE: Problem occurs after upgrading the JUNOS

    Posted 11-15-2014 00:50

    Everything iscorrect and same as I am doing same software upgarde on more than 175 switches.

     



  • 4.  RE: Problem occurs after upgrading the JUNOS
    Best Answer

    Posted 12-01-2014 09:55

    Below are the steps to solve this issue

     

     

    root> show system snapshot media internal | no-more
    fpc0:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Aug 24 11:26:29 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:41 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    fpc1:
    --------------------------------------------------------------------------
    error: cannot mount /dev/da0s1a----------<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<,,,,,,

    fpc2:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Nov 4 11:56:59 2011
    JUNOS version on snapshot:
    jbase : 11.1R6.4
    jcrypto-ex: 11.1R6.4
    jdocs-ex: 11.1R6.4
    jkernel-ex: 11.1R6.4
    jroute-ex: 11.1R6.4
    jswitch-ex: 11.1R6.4
    jweb-ex: 11.1R6.4
    jpfe-ex42x: 11.1R6.4
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:40 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1

     

    Cause:

    When the 'show system command' is issued, the system has to mount the alternate parition at a temporary mount point '/tmp/snap-tmp.xxxx/mnt.xxxx' in order to verify the software packages installed on that parition. The alternate parition is unmounted once the command is successfully executed. If this command is aborted abruptly while the output is being displayed, the alternate parition will remain mounted.
    This can happen if any of the following activities take place when the command is running: 

    • Entering "q" to quit
    • Entering "control + c"
    • Terminating the ssh / telnet session

    Any subsequent snapshot related commands will then error out since the system will not be able to mount the alternate partition.

    Solution:

    In order to resolve this issue, the alternate parition mounted at the temporary mount point must be manually unmounted. The following example walks us through the procedure to indentify and unmount the alternate partition:
    NOTE: You must be root to execute this procedure

    • We have a 3 member VC where we run the 'show system snapshot media alternate' The command displays the following error for member 1 "error: cannot mount /dev/da0s1a".

    root> show system snapshot media internal | no-more
    fpc0:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Aug 24 11:26:29 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:41 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    fpc1:
    --------------------------------------------------------------------------
    error: cannot mount /dev/da0s1a

    fpc2:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Nov 4 11:56:59 2011
    JUNOS version on snapshot:
    jbase : 11.1R6.4
    jcrypto-ex: 11.1R6.4
    jdocs-ex: 11.1R6.4
    jkernel-ex: 11.1R6.4
    jroute-ex: 11.1R6.4
    jswitch-ex: 11.1R6.4
    jweb-ex: 11.1R6.4
    jpfe-ex42x: 11.1R6.4
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:40 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1

    • In order to check the temporary mount point for the alternate partition, we can use the shell command 'df -h'. If the error is seen for a member of the VC that is not the master, we will have to first login to the member before running the command.

    {master:0}
    root> request session member 1
    --- JUNOS 12.1R3-S1 built 2012-08-24 07:51:52 UTC
    root@:LC:1% df -h
    Filesystem Size Used Avail Capacity Mounted on
    /dev/da0s2a 183M 114M 54M 68% /                   >>>>>>>>>>>>>> this is the active partition
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/md0 40M 40M 0B 100% /packages/mnt/jbase
    /dev/md1 1.5M 1.5M 0B 100% /packages/mnt/fips-mode-powerpc-12.1R3-S1
    /dev/md2 9.0M 4.4M 3.9M 53% /packages/mfs-jcrypto-ex
    /dev/md3 13M 13M 0B 100% /packages/mnt/jcrypto-ex-12.1R3-S1
    /dev/md4 9.0M 4.4M 3.9M 53% /packages/mfs-jdocs-ex
    /dev/md5 7.6M 7.6M 0B 100% /packages/mnt/jdocs-ex-12.1R3-S1
    /dev/md6 41M 37M 836K 98% /packages/mfs-jkernel-ex
    /dev/md7 91M 91M 0B 100% /packages/mnt/jkernel-ex-12.1R3-S1
    /dev/md8 12M 7.1M 3.6M 66% /packages/mfs-jpfe-ex42x
    /dev/md9 20M 20M 0B 100% /packages/mnt/jpfe-ex42x-12.1R3-S1
    /dev/md10 16M 11M 3.2M 78% /packages/mfs-jroute-ex
    /dev/md11 36M 36M 0B 100% /packages/mnt/jroute-ex-12.1R3-S1
    /dev/md12 11M 6.5M 3.7M 64% /packages/mfs-jswitch-ex
    /dev/md13 19M 19M 0B 100% /packages/mnt/jswitch-ex-12.1R3-S1
    /dev/md14 12M 7.6M 3.6M 68% /packages/mfs-jweb-ex
    /dev/md15 20M 20M 0B 100% /packages/mnt/jweb-ex-12.1R3-S1
    /dev/md16 126M 64K 116M 0% /tmp
    /dev/da0s3e 123M 746K 112M 1% /var
    /dev/da0s3d 369M 130K 339M 0% /var/tmp
    /dev/da0s4d 62M 78K 57M 0% /config
    /dev/md17 118M 17M 91M 16% /var/rundb
    procfs 4.0K 4.0K 0B 100% /proc
    /var/jail/etc 123M 746K 112M 1% /packages/mnt/jweb-ex-12.1R3-S1/jail/var/etc
    /var/jail/run 123M 746K 112M 1% /packages/mnt/jweb-ex-12.1R3-S1/jail/var/run
    /var/jail/tmp 123M 746K 112M 1% /packages/mnt/jweb-ex-12.1R3-S1/jail/var/tmp
    /var/tmp 369M 130K 339M 0% /packages/mnt/jweb-ex-12.1R3-S1/jail/var/tmp/uploads
    devfs 1.0K 1.0K 0B 100% /packages/mnt/jweb-ex-12.1R3-S1/jail/dev
    /dev/da0s1a 184M 114M 55M 67% /tmp/snap-tmp.5361/mnt.5361                >>>>>>>>>>>>> this is the alternate parition      
    root@:LC:1%

    • The output displayed above shows that the alternate parition is mounted at the temp mount point  -  /tmp/snap-tmp.5361/mnt.5361
    • Once we know the mount point, it can be unmounted using the shell command 'umount'

    root@:LC:1% umount /tmp/snap-tmp.5361/mnt.5361

     

    • Once the partition is unmounted, we can run the command again to check that the output is populated correctly - which it is in this output:

    root> show system snapshot media internal
    fpc0:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Aug 24 11:26:29 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:41 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    fpc1:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Aug 24 11:30:34 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:41 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1
    fpc2:
    --------------------------------------------------------------------------
    Information for snapshot on internal (/dev/da0s1a) (backup)
    Creation date: Nov 4 11:56:59 2011
    JUNOS version on snapshot:
    jbase : 11.1R6.4
    jcrypto-ex: 11.1R6.4
    jdocs-ex: 11.1R6.4
    jkernel-ex: 11.1R6.4
    jroute-ex: 11.1R6.4
    jswitch-ex: 11.1R6.4
    jweb-ex: 11.1R6.4
    jpfe-ex42x: 11.1R6.4
    Information for snapshot on internal (/dev/da0s2a) (primary)
    Creation date: Aug 24 10:52:40 2012
    JUNOS version on snapshot:
    jbase : ex-12.1R3-S1
    jcrypto-ex: 12.1R3-S1
    jdocs-ex: 12.1R3-S1
    jkernel-ex: 12.1R3-S1
    jroute-ex: 12.1R3-S1
    jswitch-ex: 12.1R3-S1
    jweb-ex: 12.1R3-S1
    jpfe-ex42x: 12.1R3-S1