Sync_by_file of TFS Data Migration

Source: Internet
Author: User
Tags nameserver

in this article, I followed an article that introduced the TFS 2.2.16 version uses the syn_by_file tool to implement data migration between two sets of TFS Systems based on file names . The test environment is consistent with the previous article.

One: Clear the data on target at the end of the previous migration

#/usr/local/tfs/bin/ssm-s 192.168.1.12:8108show > block

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/29/wKioL1Q3egbTr_GnAAH3X6LvSOE672.jpg "title=" Picture 1.png "alt=" Wkiol1q3egbtr_gnaah3x6lvsoe672.jpg "/>


#/usr/local/tfs/scripts/tfs Stop_ds 1-3 dataserver 1 exit successfully dataserver 2 exit successfully dataserver 3 exit Successfully #/usr/local/tfs/scripts/stfs Clear 1-3

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4C/29/wKioL1Q3ejeD7ygcAARzI_BV2d4867.jpg "title=" Picture 2.png "alt=" Wkiol1q3ejed7ygcaarzi_bv2d4867.jpg "/>


#/usr/local/tfs/scripts/stfs format 1-3#/usr/local/tfs/scripts/tfs stop_ns#/usr/local/tfs/scripts/tfs Start_ns #/ Usr/local/tfs/scripts/tfs Start_ds 1-3 DataServer 1 is up successfully pid:25002 DataServer 2 are up SUCCESSFULLY pid:25 001 DataServer 3 is up successfully pid:25000


Second: After reformatting the dataserver mountpoint ,thetarget Environment reverts to the initial state before the migration

#/usr/local/tfs/bin/ssm-s 192.168.1.12:8108show > block

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/29/wKioL1Q3enThV8KjAAMRvoJM33A182.jpg "title=" Picture 3.png "alt=" Wkiol1q3enthv8kjaamrvojm33a182.jpg "/>


Three: Prepare a list of file names

after the last migration, the list will be logs directory generated sync_succ_file files, copy the contents of the file can be. Note that the file name may be duplicated.

# tail-5/tmp/file1.txt T1mtdtbmv41r4baz6kt1mtdtbk_41r4baz6kt1mtdtbka41r4baz6kt1mtdtbtd41r4baz6kt1mtdtbg_ 41r4baz6k # wc-l/tmp/file1.txt 10730/tmp/file1.txt # uniq/tmp/file1.txt |wc-l9575


Four: Start migration

#/usr/local/tfs/bin/sync_by_file-s 192.168.1.229:8108-d 192.168.1.12:8108-f/tmp/file1.txt-m 20140926-l error-s parameter specified The nameserver IP and Port-d parameter of source specifies the IP and port-F parameters of the target (destination) for the specified list of file name-m parameters of the nameserver. File modification time files after the-m parameter value are ignored and not synchronized. The-l parameter represents the log level, and the default is info

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/29/wKioL1Q3es3wz0J_AAJARdQV5fw831.jpg "title=" Picture 4.png "alt=" Wkiol1q3es3wz0j_aajardqv5fw831.jpg "/>


V: View Results

#/usr/local/tfs/bin/ssm-s 192.168.1.12:8108show > block

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/27/wKiom1Q3erzBiCs8AAI5XAz60wM918.jpg "title=" Picture 5.png "alt=" Wkiom1q3erzbics8aai5xaz60wm918.jpg "/>


VI: Validation

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/29/wKioL1Q3ex2C4sg7AAWZj5p3Yos769.jpg "title=" Picture 6.png "alt=" Wkiol1q3ex2c4sg7aawzj5p3yos769.jpg "/>


This article from "Chop Month" blog, declined reprint!

Sync_by_file of TFS Data Migration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.