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.  EX-3200 Switch Commit problem

    Posted 01-14-2011 04:19

    Hi,

     

    While commiting Ex-3200 switch i receive the following message

     

     

    error: error copying files (/config/juniper.conf.3.gz->/var/db/config/juniper.co nf.4.gz): No such file or directory error: rotation of old files failed

     

    Please guide



  • 2.  RE: EX-3200 Switch Commit problem

    Posted 01-14-2011 09:34

    Hello,

     

    I had the same issue with an EX-4200. You are missing db/config directories. Below are the commands to get this fixed.

     

    Thanks,

     

    MA

     

    > start shell

    %cd /config
    %mkdir db
    %cd db
    %mkdir config

    %cli
    >edit
    #commit


  • 3.  RE: EX-3200 Switch Commit problem

    Posted 01-14-2011 22:06

    Thanks MA,

    the said directories do exist already.

     

    pls note while comitting following error msg appears

     

    error: error copying files (/config/juniper.conf.3.gz->/var/db/config/juniper.co
    nf.4.gz): No such file or directory
    error: rotation of old files failed

     

     



  • 4.  RE: EX-3200 Switch Commit problem

    Posted 01-14-2011 22:14

     

     

    > start shell
    % cd /config
    % mkdir db
    mkdir: db: File exists
    % mkdir config
    mkdir: config: Permission denied
    % cli
    > edit
    Entering configuration mode
    Users currently editing the configuration:
      admin terminal p2 (pid 1099) on since 2009-01-19 20:03:47 UTC, idle 00:09:01
          [edit]

    [edit]
    # commit
    error: error copying files (/config/juniper.conf.3.gz->/var/db/config/juniper.co
    nf.4.gz): No such file or directory
    error: rotation of old files failed

    [edit]

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


     



  • 5.  RE: EX-3200 Switch Commit problem

    Posted 01-15-2011 08:31

    Hello,

     

    Lets  actually check the Unix shell for the directories. Also the reason you can't create the directory is because you are not logged in as root. (my bad!) . In your output yes you have the db directory but you may not have the config directory under db. When you tried to create it you did not get a message stating that it already exists instead you could not create because you are not logged in a root.

     

          >start shell user root

    password: (You created as the root when configuring switch, not your user (admin) password unless the same)

     

          root@1C:RE:0% cd /config
          root@1C:RE:0% ls
    .snap                   juniper.conf.gz         ssh_host_key.pub
    db                      juniper.conf.md5        ssh_host_rsa_key
    juniper.conf.1.gz       ssh_host_dsa_key        ssh_host_rsa_key.pub
    juniper.conf.2.gz       ssh_host_dsa_key.pub    usage.db
    juniper.conf.3.gz       ssh_host_key            vchassis

     

    **** You should see the directory db ****

     

    root@1C:RE:0% cd db
    root@1C:RE:0% ls
    commits         config          dcd.snmp_ix     scripts         snmp_engine.db

     

    **** You should see the directory config ****

     

    root@1C:RE:0% cd config
    root@1C:RE:0% ls
    juniper.conf.10.gz      juniper.conf.18.gz      juniper.conf.26.gz
    juniper.conf.11.gz      juniper.conf.19.gz      juniper.conf.4.gz
    juniper.conf.12.gz      juniper.conf.20.gz      juniper.conf.5.gz
    juniper.conf.13.gz      juniper.conf.21.gz      juniper.conf.6.gz
    juniper.conf.14.gz      juniper.conf.22.gz      juniper.conf.7.gz
    juniper.conf.15.gz      juniper.conf.23.gz      juniper.conf.8.gz
    juniper.conf.16.gz      juniper.conf.24.gz      juniper.conf.9.gz
    juniper.conf.17.gz      juniper.conf.25.gz

     

    **** You should see your juniper configurations of all commits previously done ****

     

    Now if you are missing any of these files fallow the previous solution to create the directories logged in as root.

     

    Thanks,

     

    MA



  • 6.  RE: EX-3200 Switch Commit problem

    Posted 01-16-2011 21:04

     

    Below mentioned is output checking Unix shell for the directories

     

    admin@> start shell user root
    root@% cd /config
    root@% ls
    .snap                   juniper.conf.3.gz       ssh_host_key.pub
    config                  juniper.conf.gz         ssh_host_rsa_key
    db                      rescue.conf.gz          ssh_host_rsa_key.pub
    juniper.conf+.gz        ssh_host_dsa_key        usage.db
    juniper.conf.1.gz       ssh_host_dsa_key.pub    vchassis
    juniper.conf.2.gz       ssh_host_key
    root@% cd db
    root@% ls
    commits config
    root@% cd config
    root@% ls
    juniper.conf.4.gz       juniper.conf.5.gz
    root@% cli
    admin@> edit
    Entering configuration mode

    [edit]
    admin@# commit
    error: error copying files (/config/juniper.conf.3.gz->/var/db/config/juniper.co
    nf.4.gz): No such file or directory
    error: rotation of old files failed

    [edit]
    admin@#

     



  • 7.  RE: EX-3200 Switch Commit problem
    Best Answer

    Posted 01-16-2011 23:32

    Not sure if it helps, but in your output you cd to the db directory from inside the config directory - so you'll end up going directly to /config/db/config instead of via the /var/db/config symlink.  If the symlink is missing, this could be causing your error.

     

    Try cd /var/db/config and then ls



  • 8.  RE: EX-3200 Switch Commit problem

    Posted 01-18-2011 01:50

    Thanks alot M A it works now.



  • 9.  RE: EX-3200 Switch Commit problem

    Posted 01-18-2011 01:52

    Thanks dfex



  • 10.  RE: EX-3200 Switch Commit problem

    Posted 01-18-2011 08:56

    Hello,

     

    Excellent!! Glad to hear that!

     

    Thanks,

     

    MA



  • 11.  RE: EX-3200 Switch Commit problem

    Posted 12-17-2011 21:46

    Just a word to a the same error but different fix.

     

    For me I ended up finding that the symbolic link was in place but the actual directory was gone.

     

    So /config existed, but there was no /config/db directory. So to fix the issue I went into the shell, and did:

     

    mkdir /config/db

    mkdir /config/db/config

     

    After that I went back in to commit the config and it all worked perfectly. Not sure how this could have possibly have happened, I had committed plenty of normal config changes to the switch previously but after having added a vlan to a port and successfully committed, I then went back and added another port to a vlan and got the error with the above stated fix.

     

    By the way for the record, a single, non-stacked:

     

    Model: ex4200-48t
    JUNOS Base OS boot [11.2R1.2]




  • 12.  RE: EX-3200 Switch Commit problem

    Posted 06-25-2012 06:13

    That did the trick for me too.  Found I was missing the directories.  Thanks for the info!