SRX

 View Only
last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Copying config on Active and backup partition

    Posted 01-29-2019 06:31

    Morning guys!

     

    I am trying to understand if there is a simple command to copy the running config from one partition to the other and boot the SRX from that partition ?

     

    Lets say the Active partition has been corrupted and the SRX booted up using the Backup partition, I would like to restore the config on the Active partition by copying the config file from Backup partition. 

    Is this the appropriate command to do that ?

    request system snapshot slice altnerate

    Or do we have any file copy <Source> <destination> command ?

    I am assuming the config resides on /config folder of the active partition and the /altconfig of the backup partition. 

     

    Kindly help me understand.

     

    Thanking you.

    Regards,

    Pavan Katakam



  • 2.  RE: Copying config on Active and backup partition
    Best Answer

     
    Posted 01-29-2019 07:26

    /var and /config live on seperate partitions from and are shared by the the primary and backup roots. Therefore there is only one copy.

     

    From https://www.juniper.net/documentation/en_US/junos/topics/concept/switch-resilient-dual-root-partitions.html:

     

    In the resilient dual-root partition scheme, the /var file system is contained in a separate slice (Slice 3) from the root file systems, the /config directory is contained in its own slice (Slice 4), and switches ship from the factory with identical Junos OS images in Slice 1 and Slice 2. The /var file system, which has a greater frequency of reads and writes than the root file systems and is therefore more likely to have corruption issues, is isolated from the root directories and the /config directory. If the switch fails to boot from the active partition, the switch automatically boots from the alternate root partition and triggers an alarm.
    

     



  • 3.  RE: Copying config on Active and backup partition

    Posted 01-29-2019 07:36

    Thank you 🙂 

     

    So I was going through the file copy commands and was trying to understand what this command does:

     

    file copy /config/juniper.conf /altconfig/juniper1.conf 

     

    What is the /altconfig used for ?

     

    Thanking you.

    Regards,

    Pavan Katakam



  • 4.  RE: Copying config on Active and backup partition

    Posted 01-29-2019 08:22

    Assuming there is only one config location /config for both the parititions, can I test the booting of SRX from backup partition by taking down the active partition ?

     

    Is there a command to manually failover to the backup partition ?

     

    Thank you

    Pavan



  • 5.  RE: Copying config on Active and backup partition

    Posted 01-29-2019 08:47

    There is no command to boot from backup partition. Backup partition is used as a recovery partition and you can not boot manually from it.  If the SRX is unable to boot from the primary Junos OS image, it boots up from the backup Junos OS image in the backup root partition.

     

    Please refer this URL to understand how dual-root partitioning works on srx:  https://www.juniper.net/documentation/en_US/junos/topics/concept/security-dual-root-partitioning-scheme-overview.html

     

     



  • 6.  RE: Copying config on Active and backup partition

     
    Posted 01-29-2019 13:10

    /altroot is used a mount point for the alternate partition while snapshotting. I don't know what /altconfig is for--maybe someone else does. 



  • 7.  RE: Copying config on Active and backup partition

    Posted 01-30-2019 07:26

    Thank you 🙂 



  • 8.  RE: Copying config on Active and backup partition

    Posted 01-29-2019 10:20
    Yes, you can perform file copy to a selected node in a cluster too.

    Simple file copy from one location to another
    &gt;file copy ‹src› ‹dst›
    Copy file across cluster devices
    › file copy ‹src› node0/1:‹dst›