7.1.2开始支持这个feature, 默认功能是关闭的, 开启后自动将主引擎harddisk:/mirror/ 下的文件同步到备引擎。
测试如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 #show mirror <<<<< default disable Sun Apr 25 03:40:36.544 UTC % Mirror is not enabled RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 # RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 # RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 #conf Sun Apr 25 03:40:38.634 UTC RP /0/RSP0/CPU0 :ASR-9006-L_NPE2(config) #mirror enable RP /0/RSP0/CPU0 :ASR-9006-L_NPE2(config-mirror) #commit RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 #show mirror Sun Apr 25 03:40:53.688 UTC MIRROR DIR: /harddisk : /mirror/ % Last sync of this dir ended at Sun Apr 25 03:40:43 2021 Location |Mirrored |Modification Time ------------------------------------------------ script-mgmt/| yes |Thu Apr 15 18:42:06 2021 RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 #show run | file harddisk:/mirror/test_mirror.cfg Sun Apr 25 03:41:35.610 UTC Building configuration... [OK] RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 #show mirror Sun Apr 25 03:41:38.621 UTC MIRROR DIR: /harddisk : /mirror/ % Last sync of this dir ended at Sun Apr 25 03:41:36 2021 Location |Mirrored |Modification Time ---------------------------------------------------- test_mirror.cfg | yes |Sun Apr 25 03:41:36 2021 script-mgmt/ | yes |Thu Apr 15 18:42:06 2021 RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 #dir harddisk:/mirror/ location 0/rSP1/CPU0 Sun Apr 25 03:41:55.205 UTC Directory of harddisk: /mirror/ 652810 drwxr-xr-x. 7 4096 Apr 15 18:42 script-mgmt 652819 -rwxr--r--. 1 84943 Apr 25 03:41 test_mirror.cfg 23099260 kbytes total (18171220 kbytes free ) RP /0/RSP0/CPU0 :ASR-9006-L_NPE2 # |
The Blog from link: http://imxing.cn/wp-trackback.php?p=1164