forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
36 lines
5.1 KiB
HTML
36 lines
5.1 KiB
HTML
<a name="sfs_01_0117"></a><a name="sfs_01_0117"></a>
|
|
|
|
<h1 class="topictitle1">Migrating Data Between File Systems</h1>
|
|
<div id="body1605184778500"><div class="section" id="sfs_01_0117__section38323714281"><h4 class="sectiontitle">Solution Overview</h4><p id="sfs_01_0117__p11021339112116">You can migrate data from an SFS Capacity-Oriented file system to an SFS Turbo file system or the other way around.</p>
|
|
<p id="sfs_01_0117__p38391614183714">This solution creates a Linux ECS to connect an SFS Capacity-Oriented file system with an SFS Turbo file system.</p>
|
|
</div>
|
|
<div class="section" id="sfs_01_0117__section2217941193119"><h4 class="sectiontitle">Limitations and Constraints</h4><ul id="sfs_01_0117__ul10111653155410"><li id="sfs_01_0117__li8111153145410">Only Linux ECSs can be used to migrate data.</li><li id="sfs_01_0117__li911120534549">The Linux ECS, SFS Capacity-Oriented file system, and SFS Turbo file system must be in the same VPC.</li><li id="sfs_01_0117__li1837372122911">Incremental migration is supported, so that only changed data is migrated.</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_01_0117__section1689695774314"><h4 class="sectiontitle">Prerequisites</h4><ul id="sfs_01_0117__ul22392394151035"><li id="sfs_01_0117__li1040313973418">You have created a Linux ECS.</li><li id="sfs_01_0117__li2654923983">You have created an SFS Capacity-Oriented file system and an SFS Turbo file system and have obtained their mount points.</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_01_0117__section4954112712376"><h4 class="sectiontitle">Procedure</h4><ol id="sfs_01_0117__ol179971227123711"><li id="sfs_01_0117__li2099712273371"><span>Log in to the ECS console.</span></li><li id="sfs_01_0117__li12997122711376"><span>Log in to the created Linux ECS that can access SFS Capacity-Oriented and SFS Turbo file systems.</span></li><li id="sfs_01_0117__li15997162710373"><span>Run the following command to mount file system 1 (either the SFS Capacity-Oriented or SFS Turbo file system). After that, you can access file system 1 on the Linux ECS.</span><p><pre class="screen" id="sfs_01_0117__screen899720274377">mount -t nfs -o vers=3,timeo=600,noresvport,nolock <em id="sfs_01_0117__i63622916593">[Mount point of file system 1]</em> /mnt/src</pre>
|
|
</p></li><li id="sfs_01_0117__li19997152763710"><span>Run the following command to mount file system 2 (the other file system that you have not mounted in the previous step). After that, you can access file system 2 on the Linux ECS.</span><p><pre class="screen" id="sfs_01_0117__screen39979273376">mount -t nfs -o vers=3,timeo=600,noresvport,nolock <em id="sfs_01_0117__i7776113916">[Mount point of file system 2]</em> /mnt/dst</pre>
|
|
</p></li><li id="sfs_01_0117__li3997227173710"><span>Run the following commands on the Linux ECS to install the rclone tool:</span><p><pre class="screen" id="sfs_01_0117__screen1997927173716">wget https://downloads.rclone.org/v1.53.4/rclone-v1.53.4-linux-amd64.zip --no-check-certificate
|
|
unzip rclone-v1.53.4-linux-amd64.zip
|
|
chmod 0755 ./rclone-*/rclone
|
|
cp ./rclone-*/rclone /usr/bin/
|
|
rm -rf ./rclone-*</pre>
|
|
</p></li><li id="sfs_01_0117__li0997927103712"><span>Run the following command to synchronize data:</span><p><pre class="screen" id="sfs_01_0117__screen139971727133717">rclone copy /mnt/src /mnt/dst -P --transfers 32 --checkers 64</pre>
|
|
<div class="note" id="sfs_01_0117__note7997527113717"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="sfs_01_0117__p14997122715374">Set <strong id="sfs_01_0117__b8832172621611">transfers</strong> and <strong id="sfs_01_0117__b683382661611">checkers</strong> based on the system specifications. The parameters are described as follows:</p>
|
|
<ul id="sfs_01_0117__ul13997172717372"><li id="sfs_01_0117__li13997202717376"><strong id="sfs_01_0117__b19705132620217">transfers</strong>: number of files that can be transferred concurrently</li><li id="sfs_01_0117__li299702793719"><strong id="sfs_01_0117__b2017015291623">checkers</strong>: number of files that can be scanned concurrently</li><li id="sfs_01_0117__li1899732763711"><strong id="sfs_01_0117__b1470215371221">P</strong>: data copy progress</li></ul>
|
|
</div></div>
|
|
<p id="sfs_01_0117__p1399732743718">After data synchronization is complete, go to the target file system to check whether data is migrated.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="sfs_01_0117__section1169918233234"><h4 class="sectiontitle">Verification</h4><ol id="sfs_01_0117__en-us_topic_0000001135473116_ol11464202427"><li id="sfs_01_0117__en-us_topic_0000001135473116_li154091419132410"><span>Log in to the created Linux ECS.</span></li><li id="sfs_01_0117__li432912511386"><span>Run the following commands on the destination server to verify file synchronization:</span><p><pre class="screen" id="sfs_01_0117__screen6140104817414">cd /mnt/dst
|
|
ls | wc -l</pre>
|
|
</p></li><li id="sfs_01_0117__li161401486416"><span>If the data volume is the same as that on the source server, the data is migrated successfully.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="sfs_01_0101.html">Data Migration</a></div>
|
|
</div>
|
|
</div>
|
|
|