Prior to Cisco IOS XR Software Release 7.1.2, XR dual RP devices did not support file mirroring from active RP to standby RP. Administrators had to manually perform the task or use EEM scripts to sync files across active RP and standby RP. Starting with Cisco IOS XR Software Release 7.1.2, file mirroring feature enables the router to copy files or directories automatically from /harddisk:/mirror location in active RP to /harddisk:/mirror location in standby RP or RSP without user intervention or EEM scripts.
mirror enable (Mandatory in 712, for the upcoming releases(r72x,r73x) its enabled by default) The /harddisk:/mirror directory is created by default, but file mirroring functionality is only enabled by executing the mirror enable command from configuration terminal. Status of the mirrored files can be viewed with show mirror status command.
The primary process is mirror_server, which is booted once the 'mirror enable' config is set. This process uses rsync via ssh to sync the active to standby nodes. Exclusive mirror_server process runs on RP spawns thread per mirror directory (currently only support a single mirror directory). Whenever a filesystem modification is detected by the watches, mirror_server triggers transfer the files across to standby RP.
Mirroring is also triggered whenever the standby node changes state to UP (this will handle standby reboots, as well as insertions). When there are more files added into the mirror directory there will be a slight increase in cpu on one core during the copy.
Mirroring always unidirectional from Active RP--> Standby RP
Configuration & Verification
File mirroring has to be enabled explicitly on the router. It is not enabled by default.
RP/0/RSP0/CPU0:router#show run mirror
Following is an example of copying running configuration to harddisk:/mirror location:
Helloi have a problem with an ASR 9006.I'm getting logs.ipv4_rib: %ROUTING-RIB-5-TABLE_NH_DAMPED : Nexthops in Vrf: default Tbl: default (0xe0000000) Safi: Unicast are getting damped 0/RSP0/CPU0 A9K-RSP880-TR(Standby) IOS XR RUN PWR,NSH...
I built the test environment as shown, R1-R6 configures MPLS and Segment Routing. At present, CE-R7 PING CE-R8 is normal, the outer label is the SID instead of the LDP distribution label, R1-R6 Loopback's SID Troune 16100-16600.Then I tried to configure S...
Hello, We have a very simple setup: The setup: In MPLS environment, PE1 (ASR9001) router (with IOS-XR 6.6.3) peering with upstream Internet provider - ISP1 (with a standard single hop eBGP session) and receiving the full Internet tabl...