doc-exports/docs/sfs/umn/sfs_01_0117.html
Wei, Hongmin 0d1ba8215b SFS UMN initial version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com>
Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
2022-11-02 12:40:18 +00:00

32 lines
4.4 KiB
HTML

<a name="sfs_01_0117"></a><a name="sfs_01_0117"></a>
<h1 class="topictitle1">Migrating Data Between an SFS Capacity-Oriented File System and an SFS Turbo File System</h1>
<div id="body1605184778500"><div class="section" id="sfs_01_0117__section38323714281"><h4 class="sectiontitle">Context</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 ECSs running Linux can be used for data migration.</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></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 management 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 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 command 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">The parameters are described as follows. Set <strong id="sfs_01_0117__b1697548326">transfers</strong> and <strong id="sfs_01_0117__b1598112819210">checkers</strong> based on the system specifications.</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 the migration is successful.</p>
</p></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>