Junos OS

last person joined: 3 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  SRX240 Commit issue

    Posted 02-15-2018 00:42

    Hey Junos

     

    I have issue in my SRX240 where i can't commit any config and once i commit i get:

     

    [edit]
    root# commit
    error: /config/juniper.conf+: write failed: Broken pipe
    error: /config/juniper.conf+: was not properly closed: Broken pipe
    error: commit failed: commit to file failed during export to /config/juniper.conf+
    -------------------------------------------------

     

    and these error were showing during the boot-up

     

     

    Can't stat /dev/bo0s3e: No such file or directory
    Can't stat /dev/bo0s3e: No such file or directory
    mount: /dev/bo0s3e : No such file or directory
    WARNING: Mount of /dev/bo0s3e on /config failed
    WARNING: Formatting /dev/bo0s3e before attempting mount again
    newfs: /dev/bo0s3e: could not find special device
    mount: /dev/bo0s3e : No such file or directory
    ERROR: Mount of /dev/bo0s3e on /config failed
    Can't stat /dev/bo0s3f: No such file or directory
    Can't stat /dev/bo0s3f: No such file or directory
    mount: /dev/bo0s3f : No such file or directory
    WARNING: Mount of /dev/bo0s3f on /cf/var failed
    WARNING: Formatting /dev/bo0s3f before attempting mount again
    newfs: /dev/bo0s3f: could not find special device
    mount: /dev/bo0s3f : No such file or directory
    ERROR: Mount of /dev/bo0s3f on /cf/var failed
    Loading configuration ...
    mgd: error: Cannot open configuration file: /config/juniper.conf
    mgd: warning: activating factory configuration
    cannot create /config/juniper.conf+.gz: Read-only file system
    mgd: error: /config/juniper.conf+: write failed: Broken pipe
    mgd: error: /config/juniper.conf+: was not properly closed: Broken pipe
    mgd: error: commit failed: commit to file failed during export to /config/juniper.conf+
    Warning: Commit failed, activating partial configuration.
    Warning: Edit the router configuration to fix these errors.
    usage: mv [-f | -i | -n] [-v] source target
           mv [-f | -i | -n] [-v] source ... directory

     

    --------------------------------------------------------------

    thanks in advance...



  • 2.  RE: SRX240 Commit issue

    Posted 02-15-2018 03:13

    This feels like a disk problem.  Check these two kb that outline commands you can use to repair the internal drive.

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB29069

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB20570

     



  • 3.  RE: SRX240 Commit issue

    Posted 02-17-2018 05:45

    Hey Spuluka thanks for your responce, but it didnt work 

     

    root@% nand-mediack -C
    Media check on da0
    root@%

     

    and showing nth



  • 4.  RE: SRX240 Commit issue

     
    Posted 02-15-2018 05:49

    Hi,

     

    Could you try rescue system configuration and check if that helps to recover?

    https://www.juniper.net/documentation/en_US/junos/topics/task/operational/junos-software-rescue-configuration-file-saving.html

     

     



  • 5.  RE: SRX240 Commit issue

    Posted 02-15-2018 19:54

    Hi,

    Can you please share the output of "commit | display detail" and also try following from shell to see if that helps?

     

    start shell user root

    %mgd -I       >>> Use capital letter I

     

    Thanks

     



  • 6.  RE: SRX240 Commit issue

    Posted 02-17-2018 05:49

    hey Sarathirao

     

    [edit]
    root# commit | display detail
    2018-02-17 15:44:48 UTC: start loading commit script changes
    2018-02-17 15:44:48 UTC: no commit script changes
    2018-02-17 15:44:48 UTC: no transient commit script changes
    2018-02-17 15:44:48 UTC: finished loading commit script changes
    2018-02-17 15:44:48 UTC: copying juniper.db to juniper.data+
    2018-02-17 15:44:49 UTC: finished copying juniper.db to juniper.data+
    2018-02-17 15:44:49 UTC: exporting juniper.conf
    error: /config/juniper.conf+: was not properly closed: Unknown error: 0
    error: commit failed: commit to file failed during export to /config/juniper.conf+

    [edit]
    root#

     

    --------------------

     

    root@% mgd -I
    mgd: error: Cannot open configuration file: /config/juniper.conf
    mgd: warning: activating factory configuration
    cannot create /config/juniper.conf+.gz: Read-only file system
    mgd: error: /config/juniper.conf+: write failed: Broken pipe
    mgd: error: /config/juniper.conf+: was not properly closed: Broken pipe
    mgd: error: commit failed: commit to file failed during export to /config/juniper.conf+
    root@%

     

     

    ------------------------------

     

    any ideas ?

     

     



  • 7.  RE: SRX240 Commit issue
    Best Answer

     
    Posted 02-17-2018 08:11

    The reason for the problem is the failure to mount the partitions bo0s3e and bo0s3f. The partition" bo0s3e " has the configuration and the partition bo0s3f  has IDP signatures.

     

    ERROR: Mount of /dev/bo0s3f on /cf/var failed
    ERROR: Mount of /dev/bo0s3e on /config failed

     

    The solution is to re-image the box, this will format the CF and re-partition it. Re-imaging can be done by several methods including the snapshot method suggested  by the below KB link.

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB24684

     

    If there are no identical working SRX240H boxes for the snapshot method , please use the below procedure to reimage the box via loader prompt.

     

    https://www.juniper.net/documentation/en_US/junos12.1x47/topics/topic-map/security-software-installation-boot-loader-usb-srx.html   (Refer section: Installing Junos OS on SRX Series Devices From the Boot Loader Using an USB Storage Device).



  • 8.  RE: SRX240 Commit issue

    Posted 02-20-2018 00:34
    thanks rnayar your method worked Kind regards


  • 9.  RE: SRX240 Commit issue

     
    Posted 02-20-2018 04:39

    Glad to know that issue is resolved. Please help to close the thread.


    Regards,

    Rahul



  • 10.  RE: SRX240 Commit issue

    Posted 02-17-2018 05:46

    Dinit work 😕