TFS data migration based on block blocks

Source: Internet
Author: User

Restore Tool :sync_by_blk

One, source end environment Introduction:

ip:192.168.1.230 Port: 8108

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/BD/wKiom1RupIvDJCJwAABv2bXYlDQ436.jpg "title=" 1.jpg " alt= "Wkiom1rupivdjcjwaabv2bxyldq436.jpg"/>

IP of source_ds: 192.168.1.238 Port: 9999

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/BD/wKiom1RupO_A-ZQSAAJdEQkV1TI556.jpg "title=" 2.jpg " alt= "Wkiom1rupo_a-zqsaajdeqkv1ti556.jpg"/>

Source_ DS HDD Mount:1 x max_mountsize:10G

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/BD/wKiom1RupbfxBunvAAEOsSFxF2k081.jpg "title=" 3.jpg " alt= "Wkiom1rupbfxbunvaaeossfxf2k081.jpg"/>

Source_ DS Partition Mount Condition

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/BD/wKiom1RupfWArtJcAACB9z4O38Q820.jpg "title=" 4.jpg " alt= "Wkiom1rupfwartjcaacb9z4o38q820.jpg"/>

In order to experience the effect we upload a new picture

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/BE/wKiom1RuqVzTe5Y1AASh9FAUW28565.jpg "title=" 5.jpg " alt= "Wkiom1ruqvzte5y1aash9fauw28565.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/M00/53/BC/ Wkiol1ruqikbx1xcaagwnjebecm709.jpg "title=" 6.jpg "alt=" Wkiol1ruqikbx1xcaagwnjebecm709.jpg "/>

Second, destination end environment Introduction

ip:192.168.1.155 Port: 8108

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/BC/wKioL1RurLajkJ2rAABmxpzNOwE288.jpg "title=" 1.jpg " alt= "Wkiol1rurlajkj2raabmxpznowe288.jpg"/>destination_ds IP:192.168.1.156 Port: 9999

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/BE/wKiom1RurcPCfDfvAAKGFF9R1SA022.jpg "title=" 2.jpg " alt= "Wkiom1rurcpcfdfvaakgff9r1sa022.jpg"/>

Destination_ds HDD Mount number:1 x max_mountsize:20G

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/BD/wKioL1Rurs-jpxqTAAESNK2WbPU898.jpg "title=" 3.jpg " alt= "Wkiol1rurs-jpxqtaaesnk2wbpu898.jpg"/>Destination_DS partition Mount condition

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/BD/wKioL1Rury2TxnTqAAC1Mv5CHZI462.jpg "title=" 4.jpg " alt= "Wkiol1rury2txntqaac1mv5chzi462.jpg"/>

Start the data migration, Destination_ds all the data inside, and then migrate the data:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/BD/wKioL1RusFuwscvKAAEgSyxjrCw277.jpg "title=" 5.jpg " alt= "Wkiol1rusfuwscvkaaegsyxjrcw277.jpg"/>

Blck block information for statistical SOURCE_TFS:

show > block > /tmp/1.txtshow >  Exit filters out Version, filecount, size, del_file, del_size These fields are all 0 of those block_id, and the rest of the blocks contain actual data. grep -v  ' 0          0           0          0           0 '   /TMP/1.TXT  > /TMP/2. TXT remove block_id number cut -c 1-10 /tmp/2.txt  > /tmp/3.txt indent space for i in  $ (cat /tmp/3.txt);d o echo  $i  >> /tmp/4.txt; done 

Iii. using tfs Bring the s ync_by_blk for Data migration

Ensure that the time between the two NS is consistent prior to data migration

/usr/local/tfs/bin/sync_by_blk-s 192.168.1.230:8108-d 192.168.1.155:8108-f/tmp/4.txt-m 20141121

Total count:0, actual_count:8167, SUCCESS count:8167, FAIL count:0

Iv. Viewing logs

CD Logs[[email protected] logs]# cat sync_done_blk |wc-l168[[email protected] logs]# cat Sync_fail_file | Wc-l0[[email protected] logs]# cat Sync_succ_file | wc-l8167

Five, verify the picture

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/BF/wKioL1Ru0GXz3mK5AAGpB2hohjs228.jpg "title=" 6.jpg " alt= "Wkiol1ru0gxz3mk5aagpb2hohjs228.jpg"/>

This article from "Loyalty" blog, declined reprint!

TFS data migration based on block blocks

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.