WO2013097619A1 - 文件在线迁移方法、装置和系统 - Google Patents

文件在线迁移方法、装置和系统 Download PDF

Info

Publication number
WO2013097619A1
WO2013097619A1 PCT/CN2012/086645 CN2012086645W WO2013097619A1 WO 2013097619 A1 WO2013097619 A1 WO 2013097619A1 CN 2012086645 W CN2012086645 W CN 2012086645W WO 2013097619 A1 WO2013097619 A1 WO 2013097619A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
data
target device
source device
read
Prior art date
Application number
PCT/CN2012/086645
Other languages
English (en)
French (fr)
Inventor
孔晗
王瑞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013097619A1 publication Critical patent/WO2013097619A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/185Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/1827Management specifically adapted to NAS

Definitions

  • the present invention relates to data storage technologies, and in particular, to a file online migration method, apparatus, and system.
  • NAS devices have been widely used as network storage devices.
  • NAS devices are becoming more and more updated.
  • files on the source device to be updated need to be migrated to the target device.
  • the target device needs to have the same operating system and operation interface as the source device, that is, the target device and the source device must use the same standard, or the same NAS devices made by the manufacturer cannot be applied to different vendors or devices. Online migration of files between NAS devices of different standards makes the online migration of files inferior.
  • the present invention provides a method, device and system for online migration of files, which can effectively overcome the problem of poor compatibility of online migration of existing files, and can realize online migration of files between NAS devices of different standards or manufacturers.
  • a file online migration method including: mounting a source device to a target device by using a network file sharing protocol, where the source device and the target device are both NAS devices;
  • the data in the file on the source device is migrated to the corresponding image file on the target device through the network file sharing protocol;
  • the user's access request is processed by the target device during the data migration process.
  • a file online migration apparatus including: a mounting module, configured to mount a source device to a target device by using a network file sharing protocol, where the source device and the target device are both NAS Equipment
  • a mirroring module configured to create an image file of a file on the source device on the target device, where the mirror file is initially an empty file;
  • a data migration module configured to migrate data in a file on the source device to a corresponding image file on the target device by using a network file sharing protocol
  • a service processing module configured to process a user's access request by the target device during the data migration process.
  • a file online migration system including a target device and a source device, where the target device and the source device are both NAS devices; and the target device includes the file online migration device.
  • the online migration method, device and system provided by the embodiment of the present invention use the network file sharing protocol to mount the source device to the target device, and use the network transmission to perform file data migration after the target device establishes the image file, and the file migration
  • the access request of the user is processed by the target device, so that the online migration of the file can be realized, and the user service is not interrupted during the file migration process.
  • the file online migration method provided by the technical solution of the embodiment has high compatibility.
  • FIG. 1 is a schematic flowchart of a method for online migration of a file according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for online migration of a file according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic flowchart of processing a user's access request by a target device according to Embodiment 3 of the present invention; a schematic flowchart; a schematic flowchart;
  • FIG. 6 is a schematic flowchart of processing a user equipment's access request by a target device according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a file online migration apparatus according to Embodiment 7 of the present invention.
  • Embodiment 8 is a schematic structural diagram of a file online migration apparatus according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic structural diagram of a service processing module in a file online migration apparatus according to Embodiment 9 of the present invention
  • 10 is a schematic structural diagram of a service processing module in a file online migration apparatus according to Embodiment 10 of the present invention
  • FIG. 11 is a schematic structural diagram of a file online migration system according to Embodiment 11 of the present invention. detailed description
  • FIG. 1 is a schematic flowchart of a method for online migration of a file according to Embodiment 1 of the present invention.
  • This embodiment can implement online migration of files between two NAS devices.
  • the online migration method of this embodiment file can include the following steps:
  • Step 101 The source device is mounted to the target device by using a network file sharing protocol.
  • the source device and the target device are both NAS devices.
  • the network file sharing protocol may specifically be a Server Message Block (SMB) protocol or a Network File System (NFS) protocol.
  • SMB Server Message Block
  • NFS Network File System
  • the SMB protocol or the NFS protocol can be set on the NAS device as needed to establish network file sharing with other devices through the protocol.
  • the target device can access the file system on the source device.
  • Step 102 Create an image file of the file on the source device on the target device, where the image file is initially an empty file.
  • Step 103 The data in the file on the source device is transferred to the corresponding image file on the target device by using a network file sharing protocol;
  • Step 104 The user's access request is processed by the target device during the data migration process.
  • the source device and the target device are all NAS devices.
  • the source device can be mounted to the target device through the network file sharing protocol, and then the target device establishes itself.
  • the image file of the file on the source device, and after the image file is created, the data in each file on the source device is migrated to the corresponding migration file created on the target device through network transmission, and the target device is in the data migration process.
  • the user's access request is processed without interrupting the user's business.
  • the online migration method of the file uses the network file sharing protocol to mount the source device to the target device, and uses the network transmission to migrate the file data after the target device establishes the image file, and the target device is migrated during the file migration process.
  • the user's access request is processed, so that the file can be migrated online.
  • the file migration process does not need to interrupt the user service.
  • the online migration method of the file is not limited by the file migration device itself, and has high compatibility. It can be used for online migration of files between NAS devices of different standards or vendors, improving the practicability and applicability of online migration of files.
  • FIG. 2 is a schematic flowchart of a method for online migration of a file according to Embodiment 2 of the present invention.
  • the online migration method of this embodiment file may include the following steps:
  • Step 201 The target device mounts the source device by using a network file sharing protocol.
  • Step 202 The target device requests, by using a network file sharing protocol, the source device to obtain metadata of the file on the source device.
  • Step 203 The target device creates an image file corresponding to the file on the source device according to the obtained metadata of the file on the source device, where each image file is initially an empty file.
  • Step 204 After the target file is created, notify the administrator to switch the user service to the corresponding image file on the target device.
  • Step 205 The target device migrates data in the file on the source device to the target device by using a network file sharing protocol.
  • Step 206 The target device processes the access request of the user during the data migration process; the boat? 07, the silly preparation--the piece of the piece ⁇ 1 ⁇ 2 ⁇ ⁇ ⁇ jEi 3 ⁇ 4 0 ⁇ ⁇ After that, the data content can be verified and the source device can be taken offline from the target device.
  • the target device and the source device are both NAS devices, and the two NAS devices may be devices using the same standard, or devices with different standards, or different manufacturers, and the two NAS devices.
  • the device supports the same network file sharing protocol. In this way, the target device can mount the source device to the target device through the network file sharing protocol, so that the target device can access the information in the source device through the network.
  • the source device when the source device is mounted to the target device, the source device may be hanged by using a Server Message Block (SMB) protocol or a Network File System (NFS) protocol.
  • SMB Server Message Block
  • NFS Network File System
  • the SMB protocol or the NFS protocol can be set on the NAS device as needed to establish network file sharing with other devices through the protocol.
  • the metadata request information may be sent to the source device.
  • the source device may return the metadata of the file stored by the source device to the target device, where the file is
  • the metadata is attribute information of the file, and is related description information of the file, including file size, file modification information, and file extension attributes, wherein the file extension attribute includes information such as a file access path, so that the target device obtains the file on the source device.
  • the image file created is an empty file. It can be understood that when there are multiple files on the source device, you need to create more corresponding targets on the target device. Mirror files, and these image files are empty files.
  • the foregoing step 202 and step 203 may also establish a target monitoring point on the target device to monitor the change of the file on the source device, and synchronize the target device with the changed file.
  • Image file Because the file on the source device may change during the process of creating an image file, for example, new data is added, which causes the metadata of the file to change. Therefore, by monitoring the change of the file on the source device, the image can be mirrored. Mirror silly ⁇ piece jjH thousand same boat, ⁇ 40 one Specifically, monitoring the change of files on the source device can be implemented by using inodeify of Linux, wherein Inotify is a Linux feature that can monitor file system operations, such as reading, writing, and creating. Therefore, the change of the file on the source device can be monitored in real time, and the monitoring can be set on the target device, and the file change on the source device is monitored through the network file sharing protocol.
  • the administrator can be notified to switch the user service to the target device, so that the target device processes the user's request.
  • the user service is switched to the target device, and the domain name accessed by the user, that is, the access domain name of the file stored on the source device, can be pointed to the IP address of the target device.
  • the target device or the source device may also automatically notify the domain name system to change the IP address corresponding to the domain name, so as to point the access of the user to the target device, which is not specifically limited in this embodiment.
  • the data in each file on the source device can be copied to the corresponding image file on the target device through the network file sharing protocol to implement the image file. data migration.
  • the target device can receive the user's access request, and process the user's access request, for example, when the target device is read from the source device by using the network file sharing protocol, and then provided to the user.
  • the data on the target device can be verified.
  • the data on the target device can be verified by the manual verification method to be consistent with the data on the target device.
  • the source device is uninstalled from the target device, thereby completing the online migration of the file.
  • FIG. 3 is a schematic flowchart of processing a user device's access request by a target device according to Embodiment 3 of the present invention.
  • the target device can process the access request of the user, specifically As shown in FIG. 3, when the target device processes the read request in the user's access request, the following steps may be included:
  • Step 301 The target device receives a read request sent by the user.
  • Step 302 Find whether there is data to be read by the read request on the target device, if yes, go to step 303; otherwise, go to step 304;
  • Step 303 Read data from the image file of the target device, and return it to the user, and the process ends.
  • the target device after the user service is switched to the target device, the target device requests to read the data according to the read request, and confirms whether the data already exists in the corresponding image file, and then directly reads the data from the local, otherwise,
  • the network file sharing protocol reads the corresponding data from the corresponding file in the source device.
  • the file data can be read from the source device through the network file sharing protocol according to the access path information in the extended attribute recorded in the file metadata.
  • the embodiment receives the data sent by the user.
  • the request is read, it can be determined whether the data to be requested is present in the target device, so as to determine whether the target device needs to be acquired from the source device through the network file sharing protocol, so as to ensure the smooth running of the user service.
  • Schematic diagram of the process Different from the technical solution of the embodiment shown in FIG. 3 above, is the embodiment in the above cabinet 1? The example shown is too ancient and frustrated. - Ten mystery i ⁇ inflammation jH thousand days, ten The data is obtained from the source device, and the obtained data is stored in the image file, and then returned to the user, which may include the following steps:
  • Step 401 The target device receives a read request sent by the user.
  • Step 402 Find the data to be read by the read request on the target device, if yes, go to step 403; otherwise, go to step 404;
  • Step 403 Read data from the image file of the target device, and return it to the user, and the process ends.
  • Step 405 Store data read from the source device in a corresponding image file on the target device.
  • Step 406 Return the data to the user, and the process ends.
  • the data read from the source device may be stored in the corresponding device established on the target device. After the image file is returned to the user, the data can be read back from the source device to save data migration time.
  • the data accessed by the user is often data that needs to be modified or accessed. After being stored in the target device, the user can be easily accessed again to improve the processing efficiency of the user access request.
  • Schematic diagram of the process On the basis of the foregoing technical solutions of the embodiment shown in FIG. 1 to FIG. 4, the processing flow for processing the write request of the user when the target device receives the write request of the user is further included. Specifically, as shown in FIG. 5
  • the target device in the embodiment processes the write request in the access request of the user, and may include the following steps:
  • Step 501 The target device receives a write request sent by the user.
  • Step 502 After the target device searches for the data in the image file corresponding to the data to be written by the write request, whether the migration is completed, if yes, go to step 503, otherwise go to step 504;
  • Step 504 Write the data to be written by the write request to the temporary file, so as to be written into the image file after the data migration in the corresponding image file is completed.
  • step 502 when the write request sent by the user is received, it may be first determined whether the data in the image file corresponding to the data to be written by the write request is migrated, wherein the data of the file corresponding to the image file on the source device is Copying all to the image file indicates that the data migration in the image file is complete.
  • the data that needs to be written to the image file whose data migration has not been completed may be temporarily written in a temporary file until the data migration of the corresponding image file is completed, or The data of the entire source device is completely migrated to the target device, and the data written in the temporary file is written into the corresponding image file.
  • FIG. 6 is a schematic flowchart of processing a user's access request by a target device according to Embodiment 6 of the present invention.
  • the processing flow for processing the write request of the user when the target device receives the write request of the user is further included, but the embodiment shown in FIG. 6 Different from the technical solution of the embodiment shown in FIG.
  • the source when the write request sent by the user is processed, if the data in the image file corresponding to the data to be written has not been migrated, the source may be preferentially The data in the corresponding file of the device is copied to the image file, and after the data migration of the image file is completed, the data to be written by the write request is directly written in the image file. Specifically, as shown in FIG.
  • the target device processes the write request in the user's access request, the following steps may be included:
  • Step 601 The target device receives a write request sent by the user.
  • Step 602 After the target device searches for the data in the image file corresponding to the data to be written by the write request, whether the migration is completed, if yes, go to step 603, otherwise go to step 604;
  • step 603 the data to be written by the write request is directly written in the corresponding image file, and the process ends.
  • Step 604 The target device preferentially migrates the data in the file corresponding to the image file corresponding to the write request on the source device by using the network file sharing protocol. To the target device;
  • the data migration may be preferentially performed on the image file, that is, the data in the corresponding file on the source device is preferentially passed through the network file sharing protocol. Copy to the image file, so that the data to be written by the write request can be directly written in the image file. This can avoid data migration of the image file, save data migration time, and avoid image file migration. After the completion, the temporarily written data needs to be rewritten from the temporary file to the image file.
  • the data accessed by the user is often data that needs to be modified or accessed, it is convenient for the user to store the data after the target device is stored. Re-access of data to improve the processing efficiency of user access requests.
  • FIG. 7 is a schematic structural diagram of a file online migration apparatus according to Embodiment 7 of the present invention.
  • the online migration device is a NAS device, and the online migration of the file can be implemented.
  • the implementation device can include a mounting module 11, a mirroring module 12, a data migration module 13, and a service processing module 14. , among them:
  • the mounting module 11 is configured to mount the source device to the target device by using a network file sharing protocol.
  • the mirroring module 12 is configured to create an image file of the file on the source device on the target device, where the image file is initially an empty file.
  • the data migration module 13 is configured to migrate data in the file on the source device to a corresponding image file on the target device by using a network file sharing protocol;
  • the service processing module 14 is configured to process the user's access request by the target device during the data migration process.
  • the online migration device of the embodiment file may be integrated on the target device, so that the files on the source device are migrated online to the target device, where the target device and the source device are both NAS devices.
  • the online migration of the file between the NAS devices can be implemented.
  • the specific implementation refer to the description of the method embodiment of the present invention, and details are not described herein.
  • FIG. 8 is a schematic structural diagram of an online file migration apparatus according to Embodiment 8 of the present invention.
  • cabinet 7 ⁇ M ⁇ ⁇ , -kv R ⁇ , t ⁇ i? J ⁇ can;
  • the data acquisition unit 121 and the mirror unit 122 wherein:
  • the metadata obtaining unit 121 is configured to request, by the network file sharing protocol, the source device to obtain metadata of the file on the source device.
  • the mirroring unit 122 is configured to establish an image file corresponding to the file on the source device according to the acquired metadata of the file on the source device.
  • apparatus provided by the embodiment of the present invention may further include:
  • the monitoring module 123 is configured to monitor the change of the file on the source device, and synchronize the image file corresponding to the changed file in the target device.
  • the monitoring module monitors the change of the file on the source device during the image file creation process to ensure the consistency between the image file on the target device and the file on the source device.
  • FIG. 9 is a schematic structural diagram of a service processing module in a file online migration apparatus according to Embodiment 9 of the present invention.
  • the service processing module 14 in this embodiment includes: a read request receiving unit 141, a read request searching unit 142, and a first read request processing unit. 143 and a second read request processing unit 144, wherein:
  • a read request receiving unit 141 configured to receive a read request sent by a user
  • the read request searching unit 142 is configured to find whether the target device has data to be read by the read request;
  • the first read request processing unit 143 is configured to: when the data to be read by the read request exists in the target device, read data from the corresponding image file on the target device, and return the data to the user;
  • the second read request processing unit 144 is configured to: when the target device does not have the data to be read by the read request, read the data to be read by the read request from the source device through the network file sharing protocol, and return the data to the user, or The data to be read by the read request is read from the source device through the network file sharing protocol, and stored in the corresponding image file created on the target device, and then returned to the user.
  • FIG. 10 is a schematic structural diagram of a service processing module in a file online migration apparatus according to Embodiment 10 of the present invention.
  • the service processing module 14 in this embodiment may further include a write request receiving unit 145, a write request searching unit 146, and a A write request processing unit 147 and a second write request processing unit 148, wherein:
  • a write request receiving unit 145 configured to receive a write request sent by a user
  • the write request lookup unit 146 is configured to search, in the target device, whether the data in the image file corresponding to the data to be written by the write request is migrated;
  • the first write request processing unit 147 is configured to directly write the data to be written by the write request to the corresponding image file when the data migration in the image file corresponding to the data to be written by the write request is completed; the second write request processing unit 148.
  • the data to be written by the write request is written into the temporary file, so as to be the data in the corresponding image file.
  • the migration is completed, it is written to the image file, or is used to preferentially migrate the data in the file corresponding to the image file corresponding to the write request on the source device to the target device through the network file sharing protocol, and then write the data to be written by the write request. Go to the image file.
  • the write request sent by the user may be processed.
  • the write request sent by the user may be processed.
  • FIG. 11 is a schematic structural diagram of a file online migration system according to Embodiment 11 of the present invention.
  • the online migration system of the present invention may include a target device 10 and a source device 20, and the target device 10 and the source device 20 are both NAS devices, wherein the target device 10 may include the file provided by any of the foregoing embodiments of FIG. 7 to FIG.
  • the migration device can implement online migration of files between the target device 10 and the source device 20.
  • the above-mentioned source device 20 may also include the file online migration device provided by any of the foregoing embodiments of FIG. 7-8, which is not particularly limited in this embodiment.
  • the steps can be completed by the hardware associated with the program instructions.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供一种文件在线迁移方法、装置和系统。该方法包括:通过网络文件共享协议将源设备挂载到目标设备,所述源设备和目标设备均为NAS设备;在目标设备上建立源设备上文件的镜像文件,所述镜像文件初始为空文件;通过网络文件共享协议将源设备上文件中的数据通过网络传输迁移至目标设备;在数据迁移过程中由目标设备处理用户的访问请求。本发明技术方案可在两个NAS设备之间实现文件的在线迁移,可适用不同标准或厂商制作的NAS设备之间文件的在线迁移。

Description

文件在线迁移方法、 装置和系统 本申请要求于 2011年 12月 31 日提交中国专利局、 申请号为
201110460202.0、 发明名称为 "文件在线迁移方法、 装置和系统" 以及 2012年 2月 27日提交中国专利局、 申请号为 201210045643.9、发明名称为 "文件在线 迁移方法、 装置和系统" 的中国专利申请的优先权, 其全部内容通过引用结合 在本申请中。 技术领域 本发明涉及数据存储技术, 尤其涉及一种文件在线迁移方法、 装置和系 统。
背景技术 网络附属存储(Network Attached Storage, NAS )设备作为一种网络存储 装置得到了广泛的应用, 同时, 随着信息技术的发展和信息量的倶增, NAS 设备的更新也变得越来越频繁, 在对 NAS设备进行更新时, 需要将待更新的 源设备上的文件迁移至目标设备上。
目前, 将源设备上的文件迁移至目标设备时, 通常需要将源设备上的用户 业务停掉, 然后通过复制工具将源设备上的文件复制到目标设备, 最后再启用 新设备, 这样会导致用户业务中断, 因此, 为保证用户业务不被中断, 需要实 现文件的在线迁移。 现有技术在源设备和目标设备之间进行文件在线迁移时, 是在源设备的虚拟文件系统各操作接口增加写日志操作,记录各操作接口在源 设备上的操作, 在所有源设备上的文件均复制到目标设备时, 再根据记录下的 各操作接口的操作, 对目标设备进行与源设备相同的操作。
但是, 现有利用记录操作接口在源设备上的操作进行文件在线迁移时, 目 标设备需要与源设备具有相同的操作系统和操作接口, 即目标设备和源设备必 须为釆用同一标准, 或同一厂商制作的 NAS设备, 无法适用于不同厂商或釆 用不同标准的 NAS设备之间的文件在线迁移,使得文件在线迁移的兼容性差。 发明内容
本发明提供一种文件在线迁移方法、 装置和系统, 可有效克服现有文 件在线迁移存在的兼容性差的问题, 可实现釆用不同标准或厂家的 NAS设 备之间的文件在线迁移。
根据本发明实施例的一个方面, 提供一种文件在线迁移方法, 包括: 通过网络文件共享协议将源设备挂载到目标设备, 所述源设备和目标 设备均为 NAS设备;
在目标设备上建立源设备上文件的镜像文件, 所述镜像文件初始为空 文件;
通过网络文件共享协议将源设备上文件中的数据通过网络传输迁移至 目标设备上对应的镜像文件中;
在数据迁移过程中由目标设备处理用户的访问请求。
根据本发明实施例的另一个方面, 提供一种文件在线迁移装置, 包括: 挂载模块, 用于通过网络文件共享协议将源设备挂载到目标设备, 所 述源设备和目标设备均为 NAS设备;
镜像模块, 用于在目标设备上建立源设备上文件的镜像文件, 所述镜 像文件初始为空文件;
数据迁移模块, 用于通过网络文件共享协议将源设备上文件中的数据 通过网络传输迁移至目标设备上对应的镜像文件中;
业务处理模块, 用于在数据迁移过程中由目标设备处理用户的访问请 求。
根据本发明实施例的又一方面, 提供一种文件在线迁移系统, 包括目 标设备和源设备, 所述目标设备和源设备均为 NAS设备; 该目标设备包括 上述文件在线迁移装置。 本发明实施例提供的文件在线迁移方法、 装置和系统, 利用网络文件共享协 议将源设备挂载到目标设备, 并在目标设备建立镜像文件后利用网络传输进行 文件数据的迁移, 且在文件迁移过程中由目标设备对用户的访问请求进行处 理, 从而可实现文件的在线迁移, 文件迁移过程中不需要中断用户业务; 本实 施例技术方案提供的文件在线迁移方法具有较高的兼容性, 可适合不同标准或 厂商的 NAS设备之间的文件在线迁移,提高文件在线迁移的实用性和适用性。 附图说明 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一提供的文件在线迁移方法流程示意图;
图 2为本发明实施例二提供的文件在线迁移方法流程示意图;
图 3为本发明实施例三提供的目标设备对用户的访问请求进行处理的 流程示意图; 流程示意图; 流程示意图;
图 6为本发明实施例六提供的目标设备对用户的访问请求进行处理的 流程示意图;
图 7为本发明实施例七提供的文件在线迁移装置结构示意图;
图 8为本发明实施例八提供的文件在线迁移装置结构示意图;
图 9为本发明实施例九提供的文件在线迁移装置中业务处理模块的结 构示意图; 图 10为本发明实施例十提供的文件在线迁移装置中业务处理模块的结 构示意图;
图 11为本发明实施例十一提供的文件在线迁移系统结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合本发明实 施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显 然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动的前提下 所获得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明实施例一提供的文件在线迁移方法流程示意图。 本实施 例可实现两个 NAS设备之间的文件在线迁移, 如图 1所示, 本实施例文件 在线迁移方法可包括以下步骤:
步骤 101、 通过网络文件共享协议将源设备挂载到目标设备; 其中, 源设备和目标设备均为 NAS设备。
网络文件共享协议具体可以为服务器消息块 ( Server Message Block, SMB )协议, 或网络文件系统 (Network File System, NFS )协议。 本领域 技术人员可以理解的是, 实际应用中, 可根据需要在 NAS设备上设置支持 SMB协议或 NFS协议, 以便通过该协议与其他设备建立网络文件共享。 本 领域技术人员可以理解, 将源设备挂载到目标设备后, 目标设备就可以访 问源设备上的文件系统。
步骤 102、 在目标设备上建立源设备上文件的镜像文件, 该镜像文件初 始为空文件;
步骤 103、通过网络文件共享协议将源设备上文件中的数据通过网络传 输迁移至目标设备上对应的镜像文件中;
步骤 104、 在数据迁移过程中由目标设备处理用户的访问请求。 本实施例中, 源设备和目标设备均为 NAS设备, 需要将源设备上的文 件迁移至目标设备时, 可通过网络文件共享协议将源设备挂载到目标设备, 然后由目标设备在自身建立源设备上文件的镜像文件, 并在镜像文件建立 完毕后, 通过网络传输将源设备上各文件中的数据迁移至目标设备上建立 的相应迁移文件中, 并在数据迁移过程中由目标设备对用户的访问请求进 行处理, 不需要中断用户业务。
本实施例提供的文件在线迁移方法, 利用网络文件共享协议将源设备 挂载到目标设备, 并在目标设备建立镜像文件后利用网络传输进行文件数 据的迁移, 且在文件迁移过程中由目标设备对用户的访问请求进行处理, 从而可实现文件的在线迁移, 文件迁移过程中不需要中断用户业务; 本实 施例提供的文件在线迁移方法不受文件迁移设备自身的限制, 具有较高的 兼容性, 可适合不同标准或厂商的 NAS设备之间的文件在线迁移, 提高文 件在线迁移的实用性和适用性。
图 2为本发明实施例二提供的文件在线迁移方法流程示意图。 本实施 例文件在线迁移方法可包括以下步骤:
步骤 201、 目标设备通过网络文件共享协议挂载源设备;
步骤 202、 目标设备通过网络文件共享协议向源设备请求获取源设备上 文件的元数据;
步骤 203、 目标设备根据获取的源设备上文件的元数据, 建立与源设备 上的文件对应的镜像文件, 各镜像文件初始均为空文件;
步骤 204、 目标设备在镜像文件建立完毕后, 通知管理员将用户业务切 换至目标设备上对应的镜像文件中;
步骤 205、 目标设备通过网络文件共享协议将源设备上文件中的数据通 过网络传输迁移至目标设备;
步骤 206、 目标设备在数据迁移过程中, 对用户的访问请求进行处理; 舟 ?07、 淤 备卜― ±件 ό 翁 ½ 千 刭目 ^ ^备卜 jEi ¾ 0^ 傻 ±件 后, 可验证数据内容, 将源设备从目标设备上下线。
上述步骤 201中, 目标设备和源设备均为 NAS设备, 该两个 NAS设 备可以是釆用相同标准的设备, 或者釆用不同标准的设备, 也可以是不同 厂商制造的, 且该两个 NAS设备均支持相同网络文件共享协议, 这样, 目 标设备就可以通过网络文件共享协议将源设备挂载到目标设备, 使得目标 设备可以通过网络来访问源设备中的信息。
上述步骤 202和步骤 203中, 将源设备挂载至目标设备时, 具体可以 通过服务器消息块( Server Message Block, SMB )协议, 或网络文件系统 ( Network File System, NFS ) 协议来将源设备挂载到目标设备, 本领域技 术人员可以理解的是, 实际应用中, 可根据需要在 NAS设备上设置支持 SMB协议或 NFS协议, 以便通过该协议与其他设备建立网络文件共享。 目 标设备将源设备挂载后, 就可以向源设备发送元数据请求信息, 源设备接 收到该元数据请求信息后, 就可以将自身存储的文件的元数据返回给目标 设备, 其中, 文件的元数据是文件的属性信息, 为文件的相关描述信息, 包括文件大小、 文件修改信息以及文件扩展属性等, 其中文件扩展属性包 括文件访问路径等信息, 这样, 当目标设备获得源设备上的文件的元数据 后, 就可以建立与其属性完全相同的镜像文件, 其中, 建立的镜像文件是 空文件, 可以理解的是, 当源设备上有多个文件时, 需要再目标设备上相 应的建立多个镜像文件, 且这些镜像文件均为空文件。
实际应用中, 上述步骤 202和步骤 203在建立镜像文件过程中, 还可 在目标设备上建立目标监控点, 以监控源设备上文件的变化情况, 并在目 标设备同步与发生变化的文件对应的镜像文件。 由于在建立镜像文件的过 程中, 源设备上的文件有可能会发生变化, 例如新增了数据等, 导致文件 的元数据发生变化, 因此, 通过监控源设备上文件的变化情况, 可在镜像 镜傻 ±件 jjH千同舟, 硇保 ±件^40 一 具体地,对源设备上文件的变化情况的监控, 可通过 Linux的索引节点 监控 (inotify ) 来实现, 其中, Inotify 是一个 Linux特性, 可以监控文件 系统操作, 例如读取、 写入和创建等, 从而可实时监控源设备上文件的变 化, 该监控可设置在目标设备上, 并通过网络文件共享协议来监控源设备 上文件的变化。
上述步骤 204中, 当目标设备建立镜像文件完毕后, 就可以通知管理 者将用户业务切换至目标设备, 以便由目标设备对用户的请求进行处理。 本领域技术人员可以理解, 将用户业务切换至目标设备, 可以通过将用户 访问的域名, 即源设备上存储的文件的访问域名,指向目标设备的 IP地址。 实际应用中, 也可由目标设备或源设备自动通知域名系统更改域名对应的 IP地址, 以将用户的访问指向到目标设备, 本实施例对此并不做特别限制。
上述步骤 205和步骤 206中, 当用户业务切换至目标设备后, 就可以 通过网络文件共享协议, 将源设备上各文件中的数据拷贝到目标设备上相 应的镜像文件中, 以实现镜像文件的数据迁移。 此外, 在数据迁移过程中, 目标设备可接收用户的访问请求, 对用户的访问请求进行处理, 例如当用 网络文件共享协议由目标设备从源设备上读取后再提供给用户。
上述步骤 207中, 当源设备数据全部迁移至目标设备后, 就可以对目 标设备上的数据进行验证, 例如, 可通过人工验证的方式来验证目标设备 上的数据是否与目标设备上的数据一致, 并在验证完毕后, 将源设备从目 标设备上卸载掉, 从而完成文件的在线迁移。
此外, 上述步骤 203和 204中建立镜像文件时, 也可不建立监控点对 源设备上文件变化情况进行监控, 而是在目标设备还未建立完镜像文件前, 目标设备可通知源设备暂停对用户的访问请求进行处理。 由于镜像文件建 立过程时间较短, 在该较短时间内暂停对访问请求的处理, 因此对用户业 备 當 杆 响 小— 图 3为本发明实施例三提供的目标设备对用户的访问请求进行处理的 流程示意图。 在上述图 1或图 2所示实施例技术方案基础上, 当目标设备 建立源设备上文件的镜像文件并将用户的访问请求指向目标设备后, 目标 设备就可以处理用户的访问请求, 具体地, 如图 3所示, 目标设备在对用 户的访问请求中的读请求进行处理时, 可包括以下步骤:
步骤 301、 目标设备接收用户发送的读请求;
步骤 302、 查找目标设备上是否存在读请求所要读取的数据, 是则执行 步骤 303 , 否则, 执行步骤 304;
步骤 303、 从目标设备的镜像文件读取数据, 并返回给用户, 结束。 步骤 304、 目标设备通过网络文件共享协议从源设备读取读请求所要读 取的数据, 返回给用户, 结束。
本实施例中, 用户业务切换至目标设备后, 目标设备根据读请求所要 请求读取的数据, 确认该数据是否已经存在相应的镜像文件中, 是则直接 从本地读取数据, 否则, 可通过网络文件共享协议, 从源设备中相应的文 件中读取相应的数据。
本领域技术人员可以理解, 目标设备在读取源设备上的数据时, 可根 据文件元数据中记载的扩展属性中的访问路径信息, 通过网络文件共享协 议, 从源设备上读取文件数据。
在将源设备中文件的数据迁移至目标设备的过程中, 由于用户请求的 数据可能已经迁移至目标设备的镜像文件中, 也有可能还没有迁移至目标 设备, 因此, 本实施例接收到用户发送的读请求时, 可判断所要请求读取 的数据是否存在于目标设备, 以便确定是否需要目标设备通过网络文件共 享协议从源设备获取, 以确保用户业务的顺利进行。 流程示意图。 与上述图 3所示实施例技术方案不同的是, 本实施例在上述 阁 1 阁 ?所示 施例 太古奮 ϋ 卜―, 十谜 i旮炎 jH千处 日十, 从源设备获取数据, 可将获取的数据存储在镜像文件上, 然后再返回给用 户, 具体可包括以下步骤:
步骤 401、 目标设备接收用户发送的读请求;
步骤 402、 查找目标设备上是否存在读请求所要读取的数据, 是则执行 步骤 403 , 否则, 执行步骤 404;
步骤 403、 从目标设备的镜像文件读取数据, 并返回给用户, 结束。 步骤 404、 目标设备通过网络文件共享协议从源设备读取读请求所要读 取的数据;
步骤 405、 将从源设备读取的数据存储在目标设备上相应的镜像文件 中;
步骤 406、 将该数据返回给用户, 结束。
本实施例中, 当用户所要读取的数据不在目标设备上, 需要通过网络 文件共享协议从源设备读取相应的数据时, 可将从源设备读取的数据存储 在目标设备上建立的相应的镜像文件中后再将读取的数据返给用户, 这样, 可避免后续重复从源设备读取该数据 , 以节省数据迁移时间; 此外, 由于 用户访问的数据经常是需要修改或访问的数据, 将其存储在目标设备后, 可便于用户对该数据的再次访问, 以提高用户访问请求的处理效率。 流程示意图。 在上述图 1至图 4任一所示实施例技术方案基础上, 还包括 了当目标设备接收到用户的写请求时, 对用户的写请求进行处理的处理流 程, 具体地, 如图 5所示, 本实施例目标设备对用户的访问请求中的写请 求进行处理, 可包括以下步骤:
步骤 501、 目标设备接收用户发送的写请求;
步骤 502、在目标设备查找写请求所要写的数据对应的镜像文件中的数 据是否迁移完成, 是则执行步骤 503 , 否则执行步骤 504;
舟 50 f % ^ ^S i^l ^ 4f^ , ^ ^: 步骤 504、 将写请求所要写的数据写到临时文件中, 以便在相应的镜像 文件中的数据迁移完成后再写到镜像文件中。
上述步骤 502中, 当接收到用户发送的写请求时, 可首先确定该写请 求所要写的数据对应的镜像文件中的数据是否迁移完成, 其中, 源设备上 与该镜像文件对应的文件的数据全部拷贝到该镜像文件, 则说明镜像文件 中的数据迁移完成。
本实施例中, 在对用户的写请求进行处理时, 可将需要写到数据迁移 尚未完成的镜像文件中的数据, 暂时写在一个临时文件中, 直到相应的镜 像文件的数据迁移完成, 或者整个源设备的数据全部迁移至目标设备, 再 将写在临时文件中的数据写入相应的镜像文件。
图 6为本发明实施例六提供的目标设备对用户的访问请求进行处理的 流程示意图。 在上述图 1至图 4任一所示实施例技术方案基础上, 还包括 了当目标设备接收到用户的写请求时, 对用户的写请求进行处理的处理流 程, 但图 6所示实施例与上述图 5所示实施例技术方案不同的是, 本实施 例在对用户发送的写请求进行处理时, 若需要写的数据对应的镜像文件中 的数据还未迁移完成, 则可优先将源设备的相应文件中的数据拷贝至镜像 文件, 使该镜像文件的数据迁移完成后, 再直接将写请求所要写的数据写 在该镜像文件中, 具体地, 如图 6所示, 本实施例目标设备对用户的访问 请求中的写请求进行处理时, 可包括以下步骤:
步骤 601、 目标设备接收用户发送的写请求;
步骤 602、在目标设备查找写请求所要写的数据对应的镜像文件中的数 据是否迁移完成, 是则执行步骤 603 , 否则执行步骤 604;
步骤 603、 直接将写请求所要写的数据写在相应的镜像文件中, 结束; 步骤 604、 目标设备通过网络文件共享协议将源设备上与写请求对应的 镜像文件对应的文件中的数据优先迁移至目标设备;
Figure imgf000012_0001
将写请求所要写的数据直接写到镜像文件中。
本实施例中, 当用户所要写的数据对应的镜像文件中的数据未迁移完 成时, 可优先对该镜像文件进行数据迁移, 即优先通过网络文件共享协议 将源设备上相应的文件中的数据拷贝至该镜像文件中, 以便将写请求所要 写的数据直接写在该镜像文件中, 这样, 可避免后续仍旧需要对镜像文件 进行数据迁移, 节省数据迁移时间, 同时, 也可避免镜像文件迁移完成后, 还需要从临时文件中再将临时写的数据重新写到镜像文件; 此外, 由于用 户访问的数据经常是需要修改或访问的数据, 将其存储在目标设备后, 可 便于用户对该数据的再次访问, 以提高用户访问请求的处理效率。
图 7为本发明实施例七提供的文件在线迁移装置结构示意图。 本实施 例文件在线迁移装置为 NAS设备, 可实现文件的在线迁移, 具体地, 如图 7所示, 本实施装置可包括挂载模块 11、 镜像模块 12、 数据迁移模块 13和 业务处理模块 14, 其中:
挂载模块 11, 用于通过网络文件共享协议将源设备挂载到目标设备; 镜像模块 12, 用于在目标设备上建立源设备上文件的镜像文件, 该镜 像文件初始为空文件;
数据迁移模块 13, 用于通过网络文件共享协议将源设备上文件中的数 据通过网络传输迁移至目标设备上对应的镜像文件中;
业务处理模块 14, 用于在数据迁移过程中由目标设备处理用户的访问 请求。
本实施例文件在线迁移装置可集成在目标设备上, 以便将源设备上的 文件在线迁移至目标设备, 其中目标设备和源设备均为 NAS设备。
本实施例可实现 NAS设备之间文件的在线迁移, 其具体实现可参见上 述本发明方法实施例的说明, 在此不再赘述。
图 8为本发明实施例八提供的文件在线迁移装置结构示意图。 在上述 阁 7 ^^^M^^^^ 卜―, -kv R ^, t^ i? J ^可 ; 开, 数据获取单元 121和镜像单元 122 , 其中:
元数据获取单元 121 ,用于通过网络文件共享协议向源设备请求获取源 设备上文件的元数据;
镜像单元 122 , 用于根据获取的源设备上文件的元数据, 建立与源设备 上的文件对应的镜像文件。
此外, 本发明实施例提供的装置中还可以包括:
监控模块 123 , 用于监控源设备上文件的变化情况, 并在目标设备中同 步与发生变化的文件对应的镜像文件。
具体的, 该监控模块可在镜像文件建立过程中, 对源设备上文件的变 化情况进行监控, 以确保目标设备上的镜像文件与源设备上的文件的一致 性。
图 9为本发明实施例九提供的文件在线迁移装置中业务处理模块的结 构示意图。 在上述图 7或图 8所示实施例技术方案基础上, 如图 9所示, 本实施例中业务处理模块 14包括: 读请求接收单元 141、 读请求查找单元 142、 第一读请求处理单元 143和第二读请求处理单元 144 , 其中:
读请求接收单元 141 , 用于接收用户发送的读请求;
读请求查找单元 142 ,用于查找目标设备是否存在该读请求所要读取的 数据;
第一读请求处理单元 143 ,用于当目标设备中存在该读请求所要读取的 数据时, 从目标设备上相应的镜像文件读取数据, 返回给用户;
第二读请求处理单元 144 ,用于目标设备不存在该读请求所要读取的数 据时, 通过网络文件共享协议从源设备读取该读请求所要读取的数据, 返 回给用户, 或用于通过网络文件共享协议从源设备上读取读请求所要读取 的数据, 并存储在目标设备上建立的相应的镜像文件中后返回给用户。
本实施例可对用户发送的读请求进行处理, 以确保用户的正常运行, JLJL^ ^ ^T^ !?. 卜― 太 a月古法! ^施例三 四^ I说 a月, ^Κ^^^\ 图 10为本发明实施例十提供的文件在线迁移装置中业务处理模块的结 构示意图。 在上述图 7、 图 8或图 9所示实施例技术方案基础上, 如图 10 所示, 本实施例中业务处理模块 14具体还可以包括写请求接收单元 145、 写请求查找单元 146、第一写请求处理单元 147和第二写请求处理单元 148, 其中:
写请求接收单元 145 , 用于接收用户发送的写请求;
写请求查找单元 146 ,用于在目标设备中查找该写请求所要写的数据对 应的镜像文件中的数据是否迁移完成;
第一写请求处理单元 147 ,用于当写请求所要写的数据对应的镜像文件 中的数据迁移完成时, 直接将写请求所要写的数据写到相应的镜像文件中; 第二写请求处理单元 148 ,用于在目标设备查找该写请求所要写的数据 对应的镜像文件中的数据没有迁移完成时, 将该写请求所要写的数据写到 临时文件中, 以便在相应的镜像文件中的数据迁移完成后再写到镜像文件 中, 或用于通过网络文件共享协议将源设备上与写请求对应的镜像文件对 应的文件中的数据优先迁移至目标设备后, 将写请求所要写的数据写到镜 像文件中。
本实施例可对用户发送的写请求进行处理, 其具体实现可参见上述本 发明方法实施例五或六的说明, 在此不再赘述。
图 11为本发明实施例十一提供的文件在线迁移系统结构示意图。 本实 施文件在线迁移系统可包括目标设备 10和源设备 20 , 该目标设备 10和源 设备 20均为 NAS设备, 其中该目标设备 10可包括上述图 7至图 10任一 实施例提供的文件在线迁移装置, 可在目标设备 10与源设备 20之间实现 文件的在线迁移。
本领域技术人员可以理解, 上述的源设备 20也可以包括上述图 7-8任 意实施例提供的文件在线迁移装置, 对此本实施例并不做特别限制。
太 ϋ善 i甬 太人 可以 解' 规, hL^ ^ir ^ ^^ ^^ ^ ^ 步骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步 骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储 程序代码的介质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者 对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并不使相 应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权利要求
1、 一种文件在线迁移方法, 其特征在于, 包括:
通过网络文件共享协议将源设备挂载到目标设备, 所述源设备和目 标设备均为 NAS设备;
在目标设备上建立源设备上文件的镜像文件, 所述镜像文件初始为 空文件;
通过网络文件共享协议将源设备上文件中的数据通过网络传输迁移 至目标设备上对应的镜像文件中;
在数据迁移过程中由目标设备处理用户的访问请求。
2、 根据权利要求 1所述的文件在线迁移方法, 其特征在于, 所述网 络文件共享协议包括:
服务器消息块协议, 或网络文件系统协议。
3、 根据权利要求 1所述的文件在线迁移方法, 其特征在于, 所述在 目标设备上建立源设备上文件的镜像文件包括:
通过网络文件共享协议向源设备请求获取源设备上文件的元数据; 根据获取的源设备上文件的元数据, 建立与源设备上的文件对应的 镜像文件。
4、 根据权利要求 1所述的文件在线迁移方法, 其特征在于, 在目标 设备上建立源设备上文件的镜像文件过程中, 还包括:
监控源设备上文件的变化情况, 并在目标设备同步与发生变化的文 件对应的镜像文件。
5、 根据权利要求 1-4任意一项所述的文件在线迁移方法, 其特征在 于, 所述由目标设备处理用户的访问请求包括:
接收用户发送的读请求;
查找目标设备是否存在所述读请求所要读取的数据; 当目标设备中存在所述读请求所要读取的数据时, 从所述目标设备 上相应的镜像文件中读取数据, 返回给用户;
当目标设备中不存在所述读请求所要读取的数据时, 通过网络文件 共享协议从源设备读取所述读请求所要读取的数据, 返回给用户, 或通 过网络文件共享协议从源设备上读取所述读请求所要读取的数据, 并存 储在所述目标设备上建立的相应的镜像文件中后返回给用户。
6、 根据权利要求 5所述的文件在线迁移方法, 其特征在于, 所述由 目标设备处理用户的访问请求还包括:
接收用户发送的写请求;
在目标设备查找所述写请求所要写的数据对应的镜像文件中的数据 是否迁移完成;
当所述写请求所要写的数据对应的镜像文件中的数据迁移完成时, 直接将所述写请求所要写的数据写在相应的镜像文件中;
当所述写请求所要写的数据对应的镜像文件中的数据未迁移完成 时, 将所述写请求所要写的数据写到临时文件中, 以便在相应的镜像文 件中的数据迁移完成后再写到镜像文件中, 或通过网络文件共享协议将 源设备上与所述写请求对应的镜像文件对应的文件中的数据优先迁移至 目标设备后, 将所述写请求所要写的数据写到镜像文件中。
7、 一种文件在线迁移装置, 其特征在于, 包括:
挂载模块, 用于通过网络文件共享协议将源设备挂载到目标设备, 所述源设备和目标设备均为 NAS设备;
镜像模块, 用于在目标设备上建立源设备上文件的镜像文件, 所述 镜像文件初始为空文件;
数据迁移模块, 用于通过网络文件共享协议将源设备上文件中的数 据通过网络传输迁移至目标设备上对应的镜像文件中;
业务处理模块, 用于在数据迁移过程中由目标设备处理用户的访问 请求。
8、 根据权利要求 7所述的文件在线迁移装置, 其特征在于, 所述镜 像模块包括:
元数据获取单元, 用于通过网络文件共享协议向源设备请求获取源 设备上文件的元数据;
镜像单元, 用于根据获取的源设备上文件的元数据, 建立与源设备 上的文件对应的镜像文件。
9、 根据权利要求 7-8任意一项所述的文件在线迁移装置, 其特征在 于, 所述业务处理模块包括:
读请求接收单元, 用于接收用户发送的读请求;
读请求查找单元, 用于查找目标设备是否存在所述读请求所要读取 的数据;
第一读请求处理单元, 用于当目标设备中存在所述读请求所要读取 的数据时, 从所述目标设备上相应的镜像文件读取数据, 返回给用户; 第二读请求处理单元, 用于当目标设备中不存在所述读请求所要读 取的数据时, 通过网络文件共享协议从源设备读取所述读请求所要读取 的数据, 返回给用户, 或通过网络文件共享协议从源设备上读取所述读 请求所要读取的数据, 并存储在所述目标设备上建立的相应的镜像文件 中后返回给用户。
10、 根据权利要求 9所述的文件在线迁移装置, 其特征在于, 所述 业务处理模块还包括:
写请求接收单元, 用于接收用户发送的写请求;
写请求查找单元, 用于在目标设备查找所述写请求所要写的数据对 应的镜像文件中的数据是否迁移完成;
第一写请求处理单元, 用于当所述写请求所要写的数据对应的镜像 文件中的数据迁移完成时, 直接将所述写请求所要写的数据写在相应的 镜像文件中;
第二写请求处理单元, 用于当所述写请求所要写的数据对应的镜像 文件中的数据没有迁移完成时, 将所述写请求所要写的数据写到临时文 件中, 以便在相应的镜像文件中的数据迁移完成后再写到镜像文件中, 或用于通过网络文件共享协议将源设备上与所述写请求对应的镜像文件 对应的文件中的数据优先迁移至目标设备后, 将所述写请求所要写的数 据写到镜像文件中。
11、 一种文件在线迁移系统, 其特征在于, 包括目标设备和源设备, 所述目标设备和源设备均为 NAS设备;
所述目标设备包括上述权利要求 7-10任一所述的文件在线迁移装 置。
PCT/CN2012/086645 2011-12-31 2012-12-14 文件在线迁移方法、装置和系统 WO2013097619A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201110460202.0 2011-12-31
CN201110460202 2011-12-31
CN201210045643.9 2012-02-27
CN201210045643.9A CN102611745B (zh) 2011-12-31 2012-02-27 文件在线迁移方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2013097619A1 true WO2013097619A1 (zh) 2013-07-04

Family

ID=46528895

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086645 WO2013097619A1 (zh) 2011-12-31 2012-12-14 文件在线迁移方法、装置和系统

Country Status (2)

Country Link
CN (1) CN102611745B (zh)
WO (1) WO2013097619A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611745B (zh) * 2011-12-31 2015-02-25 华为数字技术(成都)有限公司 文件在线迁移方法、装置和系统
CN103856502B (zh) * 2012-11-29 2016-12-21 北京华胜天成科技股份有限公司 实现虚拟机镜像文件热迁移的方法和nas集群系统
CN104378396B (zh) * 2013-08-15 2018-05-15 上海七牛信息技术有限公司 数据管理装置及方法
CN103731502A (zh) * 2014-01-13 2014-04-16 浪潮(北京)电子信息产业有限公司 一种服务器端文件的快速拷贝方法
CN104281503A (zh) * 2014-09-30 2015-01-14 华为数字技术(成都)有限公司 一种数据备份方法以及相关系统
CN106649335A (zh) * 2015-10-30 2017-05-10 阿里巴巴集团控股有限公司 一种数据处理方法及装置
CN107368486B (zh) * 2016-05-12 2020-06-09 阿里巴巴集团控股有限公司 一种业务迁移方法及装置
CN105912428B (zh) * 2016-05-20 2019-01-08 上海数腾软件科技股份有限公司 实现源数据实时转化为虚拟机镜像的系统及方法
CN109753229B (zh) * 2017-11-08 2020-09-18 华为技术有限公司 数据迁移方法、装置、网络附属存储设备和存储介质
CN112511627B (zh) * 2018-01-25 2022-09-23 华为技术有限公司 迁移元数据的方法和装置
CN108667847A (zh) * 2018-05-18 2018-10-16 深圳市智微智能科技开发有限公司 实现nas的实时高速读写的方法及设备
CN111581175B (zh) * 2020-04-29 2023-11-17 上海爱数信息技术股份有限公司 一种文件存储网关系统及其数据迁移方法
CN111597144B (zh) * 2020-05-19 2022-09-16 上海鸿翼软件技术股份有限公司 一种文件迁移方法、装置及设备
CN112269759B (zh) * 2020-10-23 2023-12-22 北京浪潮数据技术有限公司 一种共享文件存储的迁移方法及相关装置
CN117951080A (zh) * 2022-10-18 2024-04-30 华为技术有限公司 一种迁移文件系统的方法和相关设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453489A (zh) * 2008-12-17 2009-06-10 上海爱数软件有限公司 一种网络附加存储装置及其数据备份和数据恢复方法
CN101609419A (zh) * 2009-06-29 2009-12-23 北京航空航天大学 虚拟机持续在线迁移的数据备份方法及装置
US20110047340A1 (en) * 2009-08-21 2011-02-24 James Robert Olson Proxy Backup of Virtual Disk Image Files on NAS Devices
CN102611745A (zh) * 2011-12-31 2012-07-25 成都市华为赛门铁克科技有限公司 文件在线迁移方法、装置和系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4349871B2 (ja) * 2003-09-09 2009-10-21 株式会社日立製作所 ファイル共有装置及びファイル共有装置間のデータ移行方法
CN101819545B (zh) * 2010-04-09 2012-07-25 济南银泉科技有限公司 一种利用虚拟化技术实现平台迁移的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453489A (zh) * 2008-12-17 2009-06-10 上海爱数软件有限公司 一种网络附加存储装置及其数据备份和数据恢复方法
CN101609419A (zh) * 2009-06-29 2009-12-23 北京航空航天大学 虚拟机持续在线迁移的数据备份方法及装置
US20110047340A1 (en) * 2009-08-21 2011-02-24 James Robert Olson Proxy Backup of Virtual Disk Image Files on NAS Devices
CN102611745A (zh) * 2011-12-31 2012-07-25 成都市华为赛门铁克科技有限公司 文件在线迁移方法、装置和系统

Also Published As

Publication number Publication date
CN102611745A (zh) 2012-07-25
CN102611745B (zh) 2015-02-25

Similar Documents

Publication Publication Date Title
WO2013097619A1 (zh) 文件在线迁移方法、装置和系统
US11662936B2 (en) Writing data using references to previously stored data
US20230031079A1 (en) Resynchronization to a synchronous replication relationship
US8706694B2 (en) Continuous data protection of files stored on a remote storage device
US8694469B2 (en) Cloud synthetic backups
JP5775177B2 (ja) クローンファイル作成方法と、それを用いたファイルシステム
US8504797B2 (en) Method and apparatus for managing thin provisioning volume by using file storage system
JP5343166B2 (ja) 通信ネットワークを介してリモートのファイルサーバにファイルを転送するローカルのファイルサーバ、及び、それらのファイルサーバを有するストレージシステム
US10154112B1 (en) Cloud-to-cloud data migration via cache
US7664785B2 (en) Method and apparatus of WAFS backup managed in centralized center
US7962583B2 (en) Dynamically adding partitions to be distributed directory setup with no downtime
JP2011034525A (ja) 階層化ストレージシステム及び階層化ストレージシステムにおけるファイルのコピー制御方法
TW201227291A (en) Data deduplication
US9760457B2 (en) System, method and computer program product for recovering stub files
JP2006195712A (ja) ストレージ制御装置、論理ボリューム管理方法及びストレージ装置
US11023433B1 (en) Systems and methods for bi-directional replication of cloud tiered data across incompatible clusters
US9122689B1 (en) Recovering performance of a file system post-migration
WO2014000249A1 (zh) 快照数据处理方法及系统、存储系统、快照代理
US20120311002A1 (en) Computer and data management method by the computer
EP3942397A1 (en) Timestamp consistency for synchronous replication
WO2016101662A1 (zh) 一种数据处理方法及相关服务器
US20150381727A1 (en) Storage functionality rule implementation
US10324652B2 (en) Methods for copy-free data migration across filesystems and devices thereof
US11561720B2 (en) Enabling access to a partially migrated dataset
US8595454B1 (en) System and method for caching mapping information for off-host backups

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12861784

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12861784

Country of ref document: EP

Kind code of ref document: A1