WO2015081521A1 - Data processing method, apparatus and system in storage system - Google Patents

Data processing method, apparatus and system in storage system Download PDF

Info

Publication number
WO2015081521A1
WO2015081521A1 PCT/CN2013/088577 CN2013088577W WO2015081521A1 WO 2015081521 A1 WO2015081521 A1 WO 2015081521A1 CN 2013088577 W CN2013088577 W CN 2013088577W WO 2015081521 A1 WO2015081521 A1 WO 2015081521A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
host
snapshot
storage device
file system
Prior art date
Application number
PCT/CN2013/088577
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Priority to PCT/CN2013/088577 priority Critical patent/WO2015081521A1/en
Priority to CN201380002234.3A priority patent/CN103842954B/en
Publication of WO2015081521A1 publication Critical patent/WO2015081521A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/82Solving problems relating to consistency

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and system in a storage system. Background technique
  • the embodiment of the invention provides a data processing method, device and system in a storage system, which can not only perform snapshot and copying of a block storage device and a file system at the same time, but also can uniformly manage data on a block storage device and a file system. Data protection.
  • an embodiment of the present invention provides a data processing method in a storage system, including: establishing a Consistency Group for application snapshot and replication;
  • LUN logical unit number
  • the block storage device logical unit number used in adding the database of the application in the consistency group, and a separate file storing related files of the application System volume including:
  • a separate file system volume of the associated file of the application is obtained from the file system, and the independent file system volume is stored in the consistency group.
  • the snapshot is performed on the block storage device and the file system according to the snapshot policy, including:
  • the sending, by the snapshot policy, the snapshot command to the block storage device and the file system according to the snapshot policy including: by the primary controller Sending a snapshot command to the block storage device and the file system according to the snapshot policy;
  • the blocking host writes data to the disk and creates a protection time point, including: by the primary controller
  • the secondary controller sends a blocking command for instructing the blocking host to write data, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command, and the primary controller sends a command to create a protection time point to the secondary controller. , causing the secondary controller to create a protection time point according to the command to create a protection time point.
  • the determining a replication policy of the consistency group, and performing remote data replication on the block storage device and the file system according to the replication policy including:
  • Remote data replication is performed according to the protection time point.
  • the preventing the host from writing data to the disk according to the replication policy, and creating a protection time point including: by the primary controller Sending, according to the replication policy, a blocking command for instructing the blocking host to write data to the secondary controller, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command;
  • the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command for creating a protection time point.
  • the secondary controller blocks the data sent by the host in the cache according to the blocking command, including:
  • the secondary controller sets a blocking identifier according to the blocking command
  • the secondary controller When the secondary controller receives the data sent by the host, if it is determined that the blocking identifier exists, the data is blocked in the cache;
  • releasing the blocking of the data written to the host includes: deleting the blocking identifier by the secondary controller.
  • an embodiment of the present invention further provides a data processing apparatus in a storage system, including a establishing unit, an adding unit, and a snapshot unit and/or a copying unit;
  • An adding unit a logical unit number of a block storage device used to add a database of the application in the consistency group, and a separate file system volume storing related files of the application; a snapshot unit, configured to determine a snapshot policy of the consistency group, and simultaneously snapshot the block storage device and the file system according to the snapshot policy;
  • a copy unit is configured to determine a replication policy of the consistency group, and perform remote data replication on the block storage device and the file system according to the replication policy.
  • the adding unit is specifically configured to acquire a logical unit number of the block storage device used by the database of the application from the block storage device, add the logical unit number to the consistency group, and, from the file system Obtaining a separate file system volume of the related file of the application, and storing the independent file system volume in the consistency group.
  • the snapshot unit in combination with the first possible implementation manner of the second aspect, includes a snapshot subunit, a first blocking subunit, and a first disarming subunit;
  • the snapshot subunit is configured to send a snapshot command to the block storage device and the file system according to the snapshot policy;
  • the first blocking sub-unit is configured to block the host to write data to the disk and create a protection time point; the first releasing sub-unit is configured to release the blocking of the data written to the host after the protection time point .
  • the snapshot subunit is specifically configured to send a snapshot command to the block storage device and the file system according to the snapshot policy by using the primary controller;
  • the first blocking sub-unit is configured to send, by using the main controller, a blocking command for instructing the blocking host to write data to the secondary controller, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command.
  • the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command for creating a protection time point.
  • the copying unit in combination with the first possible implementation manner of the second aspect, includes a copying subunit, a second blocking subunit, and a second releasing subunit;
  • the second blocking subunit is configured to prevent the host from writing data to the disk according to the copying policy, and creating a protection time point;
  • the second release subunit is configured to cancel writing data to the host after the protection time point Blocking
  • the replicating subunit is configured to perform remote data replication according to the protection time point.
  • the second blocking sub-unit is configured to send, by using the primary controller, a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy, so that the secondary controller sends the host according to the blocking command.
  • the data is blocked in the cache; the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
  • an embodiment of the present invention further provides a communication system, including a data processing device in any one of the storage systems provided by the embodiments of the present invention.
  • the embodiment of the present invention further provides a storage management server, including a processor, a transceiver device for transmitting and receiving data, and a memory for storing data;
  • the processor is configured to establish a consistency group for application snapshot and replication; add a logical unit number of a block storage used by the application database in the consistency group, and independently store related files of the application a file system volume; determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage and the network shared file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and determining the block according to the replication policy Storage and network shared file systems for remote data replication.
  • the processor is specifically configured to acquire, from a block storage, a logical unit number of a block storage used by the database of the application, add the logical unit number to the consistency group, and acquire the file system from the file system.
  • the processor is specifically configured to send a snapshot command to the block storage and file system according to the snapshot policy; block the host to write data to the disk, and create a protection time point; after the protection time point, release the pair Blocking of data written by the host.
  • the processor is specifically configured to prevent the host from writing data to the disk according to the replication policy, and create a protection time point; after the protection time point, unblock the data written to the host; according to the protection time point Perform remote data replication.
  • the embodiment of the present invention establishes a consistency group for application snapshot and replication, adds a logical unit number of the block storage device used by the application database in the consistency group, and a separate file system volume for storing related files of the application, Determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and remotely controlling the block storage device and the file system according to the replication policy Data replication; because the scheme establishes a consistency group for application snapshots and replication, not only can the consistency group be used for simultaneous snapshot and replication of block storage devices and file systems, but also block storage. Unified management and data protection of data on devices and file systems. DRAWINGS
  • FIG. 1 is a flowchart of a data processing method in a storage system according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a data processing method in a storage system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a snapshot in a data processing method in a storage system according to an embodiment of the present invention
  • FIG. 3 is a data processing in a storage system according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a data processing method in a storage system provided by an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a data processing apparatus in a storage system preparation according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a storage management server in a storage system according to an embodiment of the present invention.
  • Embodiments of the present invention provide a data processing method, apparatus, and system in a storage system. The details are described below separately.
  • Embodiment 1
  • the embodiment of the present invention will be described from the perspective of a data processing device in a storage system.
  • the data processing device in the storage system may be integrated into a device such as a storage management server (Storage Management Server).
  • Storage Management Server Storage Management Server
  • a data processing method in a storage system comprising: establishing a consistency group for application snapshot and replication; adding a logical unit number LUN of a block storage device used by the application database in the consistency group, and storing the application a separate file system volume of the related file; determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and according to the replication policy Block storage devices and file systems for remote data replication.
  • the consistency group refers to a collection of data volumes in which multiple data volumes can be saved; since the consistency group established in step 101 is for the snapshot and copy of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
  • step 101 a logical unit number of a block storage device used for adding a database of the application in the consistency group, and a separate file system volume for storing related files of the application are established; for example, the specifics may be as follows:
  • a separate file system volume of the relevant file of the application is obtained from the file system, and the independent file system volume is stored in the consistency group.
  • the file system may be specifically a network shared file system (NFS, Network File System) or a common Internet file system (CIFS, Common Internet File Systems), and the file system may be integrated into a network attached storage (NAS). In the device, it will not be described here.
  • NFS Network File System
  • CIFS Common Internet File Systems
  • steps 103 and/or 104 may be performed as follows:
  • the snapshot policy of the consistency group is determined, and the block storage device and the file system (such as the network shared file system) are simultaneously snapshotd according to the snapshot policy; for example, the details may be as follows:
  • the details may be as follows:
  • the master controller simultaneously sends snapshot commands to the block storage device and the file system according to the determined snapshot policy.
  • the block storage device and the file system can take snapshots of the data or files saved by themselves according to the snapshot command, thereby generating a snapshot.
  • the block storage device and the file system can perform snapshots in various ways.
  • COW Copy on Write
  • COFW Copy on Fist Write
  • Snapshot algorithms such as ROW, Redirect on Write, also called ROFW, Redirect on Fist Write.
  • a snapshot algorithm such as Qtree (Q-tree) or binary tree can be used, and will not be described here.
  • the snapshot policy can be set according to the requirements of the actual application, and is not described here.
  • the data processing device in the storage system includes the primary controller and the secondary controller as an example, the details may be as follows:
  • the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
  • the secondary controller can prevent the host from writing data in various ways. For example, you can indicate whether to prevent the host from writing data by setting a blocking flag. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk; otherwise, if the blocking identifier does not exist, it indicates that the host does not need to prevent the host from writing data to the disk, and the host can directly write data to the disk. ,and many more.
  • the received data when it is necessary to prevent the host from writing data to the disk, the received data may be first stored in the cache, that is, the step "the secondary controller blocks the data sent by the host according to the blocking command in the cache" may include: Setting a blocking identifier according to the blocking command, when the secondary controller receives the sending by the host In the case of data, if it is determined that the blocking identifier exists, the data is blocked in the cache.
  • the host Since the host is prevented from writing new data to the disk at this time, the consistency of the data on the block storage device and the file system corresponding to the protection time point can be ensured. Therefore, the snapshots made by the block storage device and the file system will also be consistent.
  • the blocking flag is set in (2) to indicate that the host needs to be prevented from writing data
  • the blocking identifier can be deleted by the secondary controller. In this way, the data can be written to the disk later, for example, the data that was previously stored in the cache can be written to the disk, and so on.
  • 104 Determine a replication policy of the consistency group, and perform remote data replication on the block storage device and the file system (such as a network shared file system) according to the replication policy; for example, the following may be specifically: (1) blocking the host according to the replication policy Write data to disk and create a protection point in time.
  • the data processing device in the storage system includes the primary controller and the secondary controller as an example, the details may be as follows:
  • the primary controller sends a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command;
  • the command at the time point is given to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
  • the secondary controller can prevent the host from writing data in various ways.
  • the blocking identifier can be set to indicate whether to prevent the host from writing data. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk; otherwise, if the blocking identifier does not exist, it indicates that the host does not need to prevent the host from writing data to the disk, and the host can directly write data to the disk. ,and many more.
  • the received data may be first stored in the cache, that is, the step "the secondary controller blocks the data sent by the host according to the blocking command in the cache" may include: The device sets the blocking identifier according to the blocking command. When the secondary controller receives the data sent by the host, if it determines that the blocking identifier exists, the data is blocked in the cache.
  • the host Since the host is prevented from writing new data to the disk at this time, the consistency of the data on the block storage device and the file system corresponding to the protection time point can be ensured. (2) After the protection time point, the blocking of the data written to the host is released.
  • the blocking identifier can be deleted by the secondary controller.
  • the data can be written to the disk later, for example, the data that was previously stored in the cache can be written to the disk, and so on.
  • the embodiment establishes a consistency group for application snapshot and replication, adds a logical unit number of the block storage device used by the application database in the consistency group, and a separate file for storing related files of the application.
  • a system volume which determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system (such as a network shared file) system according to the snapshot policy; and/or determines a replication policy of the consistency group, and according to the replication
  • the policy performs remote data replication on block storage devices and file systems, such as network shared file systems.
  • Embodiment 2 Since the solution establishes a consistency group for application snapshot and replication, not only can the consistency group be used to realize the simultaneous snapshot and copy of the block storage device and the file system (such as a network shared file system), but also Unified management and data protection for data on block storage devices and file systems such as network shared file systems. According to the method described in the first embodiment, further details will be exemplified in the second and third embodiments.
  • Embodiment 2 Embodiment 2
  • a snapshot is taken as an example for further detailed description.
  • the data processing device in the storage system is specifically integrated into the storage management server, and the file system is specifically a network shared file system and is installed on a network attached storage device (NAS, Network Attached). Storage is described as an example.
  • NAS network attached storage device
  • the figure is a schematic diagram of a scenario of a data processing method in the storage system.
  • the storage system may include a host, a block storage device, a network attached storage device, and a storage management server.
  • the host, the block storage device, and the network attached storage device can communicate through a storage area network (SAN).
  • the host can also connect the block storage device, the network attached storage device, and the storage management server through a local area network (LAN).
  • Block storage devices and network attached storage devices are respectively composed of multiple storage orders. Yuan composition, no longer repeat here.
  • the functions of each device of the storage system may be specifically as follows:
  • the logical unit number of the block storage device used by the application database may be added to the consistency group of the storage management server, and when the snapshot command issued by the storage management server is received, the stored application according to the snapshot command The database is snapshotted to generate a snapshot of the required data.
  • Used to store related files of the application receive data written by the host, and send data that the host needs to read to the host, and so on.
  • the independent file system volume of the related file of the application may be added to the consistency group of the storage management server, and when the snapshot command sent by the storage management server is received, the related file of the stored application is performed according to the snapshot command. Snapshots to generate a snapshot of the required data.
  • the storage management server includes storage management software, which can be used to establish a consistency group for application snapshots and replications, receive a logical unit number used by a database of applications sent by the block storage device, and receive related files of applications sent by the network attached storage device. a separate file system volume in which the logical unit number used by the application database and the independent file system volume storing the relevant files of the application are added to the consistency group, and the snapshot policy of the consistency group is determined, and according to the snapshot policy pair
  • the block storage device and the network attached storage device that is, the file system, such as the network shared file system
  • perform snapshots at the same time for example, the snapshot command can be issued to the block storage device and the network attached storage device at the same time, and the like.
  • a data processing method in a storage system may be as follows: 201.
  • the storage management server establishes a consistency group for application snapshots and replication.
  • the consistency group refers to a collection of data volumes, in which multiple data volumes can be saved; since the consistency group established in step 201 is for the snapshot and copy of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
  • the block storage device sends the logical unit number of the block storage device used by the application database to the storage management server, and then performs step 203.
  • the storage management server adds the logical unit number of the block storage device used by the database of the received application to the consistency group.
  • the network attached storage device sends a separate file system curl of the related file of the application to the storage management server, and then performs step 205.
  • the storage management server adds the independent file system volume of the related file of the received application to the consistency group.
  • steps 202 and 204 may be in no particular order.
  • the storage management server determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system according to the snapshot policy. For example, a snapshot command is issued to a block storage device and a network attached storage device. For example, see Figure 2c for details.
  • the process can be as follows:
  • the primary controller simultaneously sends a snapshot command to the block storage device and the network attached storage device according to the determined snapshot policy.
  • the block storage device and the network attached storage device can take snapshots of the data or files saved by themselves according to the snapshot command, thereby generating a snapshot.
  • the algorithm for performing snapshots on the block storage device and the network attached storage device may be various.
  • a snapshot algorithm such as COW or ROW may be used, and for a network attached storage device (and a file system), Snapshot algorithms such as Qtree or binary tree are not described here.
  • the snapshot policy can be set according to the requirements of the actual application, and is not described here.
  • the primary controller sends a blocking command to the secondary controller to instruct the blocking host to write data.
  • the secondary controller sets a blocking identifier according to the blocking command. For example, the input/output (I/O, Input/Output) may be set to be marked, and a response message indicating completion of the blocking command is returned to the primary controller. 2064.
  • the host continues to write data to the secondary controller, such as writing I/O data.
  • the secondary controller determines whether there is a blocking identifier. If yes, the data written by the host is blocked. If it does not exist, the data does not operate, that is, the host is allowed to continue to write data to the secondary controller.
  • the controller writes I/O data, writes the I/O data to disk, and so on.
  • the main controller sends a command to create a protection time point to the secondary controller.
  • the secondary controller creates a protection time point according to the command for creating a protection time point.
  • the secondary controller deletes the blocking identifier. For example, the previously set I/O lowering brush flag may be canceled, and a response message indicating completion of the command to create the protection time point is returned to the primary controller.
  • the secondary controller writes the I/O data in the cache to the disk, and returns a response message indicating that the host writes successfully to the host.
  • the embodiment establishes a consistency group for application snapshot and replication, adds a logical unit number of the block storage device used by the application database in the consistency group, and a separate file for storing related files of the application.
  • the system volume determines the snapshot policy of the consistency group and simultaneously snapshots the block storage device and the network attached storage device (and file system) according to the snapshot policy. Since the scheme establishes a consistency group for application snapshot and replication, the consistency group can be used not only to realize the simultaneous snapshot operation of the block storage device and the network attached storage device, but also to block storage devices and networks. Data on the attached storage device for unified management and data protection.
  • Embodiment 3 Embodiment 3
  • the storage system may include a host, a block storage device, a network attached storage device, and a storage management server as an example.
  • the second embodiment is different from the second embodiment.
  • the remote data replication will be taken as an example.
  • the structure of the storage system is the same as that of the storage system in the second embodiment, and details are not described herein again.
  • Each device in the storage system can perform the following functions:
  • Mainly used to write or read data to block storage devices and network attached storage devices for example, storing the application database in a block storage device, and storing related files of the application to the network attached Storage devices, and more.
  • the root Used to store related files of the application, receive data written by the host, and send data that the host needs to read to the host, and so on. And when receiving the copy command issued by the storage management server, the root (4) stores the management server;
  • the storage management server is mainly used to establish a consistency group for application snapshot and replication, receive a logical unit number of a block storage device used by a database of an application sent by the block storage device, and receive related files of an application sent by the network attached storage device.
  • a separate file system volume label in which the logical unit number of the block storage device used by the application database and the independent file system volume volume label of the relevant file storing the application are added to the consistency group, and the replication policy of the consistency group is determined.
  • the remote storage data is simultaneously performed on the block storage device and the network attached storage device (that is, the file system, such as the network shared file system). For example, the copy command can be issued to the block storage device and the network attached storage device at the same time, etc. Wait.
  • a data processing method in a storage system may be as follows: 301.
  • a storage management server establishes a consistency group for application snapshot and replication.
  • the consistency group refers to a collection of data volumes in which multiple data volumes can be saved; since the consistency group established in step 301 is for the snapshot and replication of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
  • the block storage device sends the logical unit number of the block storage device used by the application database to the storage management server, and then performs step 303.
  • the logic of the block storage device used by the storage management server to receive the database of the application
  • the unit number is added to the consistency group.
  • the network attached storage device sends a separate file system curl of the related file of the application to the storage management server, and then performs step 305.
  • the storage management server adds the independent file system volume of the related file of the received application to the consistency group.
  • steps 302 and 304 may be in no particular order.
  • the storage management server determines a replication policy of the consistency group, and performs remote data replication on the block storage device and the network attached storage device (that is, a file system, such as a network shared file system) according to the replication policy.
  • a replication policy of the consistency group that is, a file system, such as a network shared file system
  • the process can be as follows:
  • the primary controller of the storage device sends a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy.
  • the replication policy can be set according to the requirements of the actual application, and is not described here.
  • the secondary controller sets a blocking identifier according to the blocking command. For example, the I/O lowering flag may be set, and a response message indicating completion of the blocking command is returned to the primary controller.
  • the host continues to write data to the secondary controller, such as writing I/O data.
  • the secondary controller determines whether there is a blocking identifier. If yes, the data written by the host is blocked. If it does not exist, the data does not operate, that is, the host is allowed to continue to write data to the secondary controller.
  • the controller writes I/O data, writes the I/O data to disk, and so on.
  • the main controller sends a command to create a protection time point to the secondary controller.
  • the secondary controller creates a protection time point according to the command for creating a protection time point.
  • the secondary controller deletes the blocking identifier. For example, the previously set I/O downstamp flag may be canceled, and a response message indicating completion of the command to create the protection time point is returned to the primary controller.
  • the secondary controller writes the I/O data in the cache to the disk, and returns a response message indicating that the host writes successfully to the host.
  • the secondary controller performs remote data replication according to the created protection time point.
  • this embodiment establishes a consistency group for snapshots and replications of applications, Adding a logical unit number of the block storage device used by the database of the application to the independent file system volume of the relevant file storing the application, determining a replication policy of the consistency group, and according to the replication policy, the block storage device and Network attached storage devices (ie file systems, such as network shared file systems) for remote data replication. Since the scheme establishes a consistency group for application snapshot and replication, the consistency group can be used not only to achieve the purpose of copying the block storage device and the network attached storage device at the same time, but also to block storage devices and networks. Data on the attached storage device for unified management and data protection.
  • the embodiment of the present invention further provides a data processing apparatus in a storage system.
  • the data processing apparatus in the storage system includes an establishing unit 401, an adding unit 402, and a snapshot unit 403. And copy unit 404;
  • the establishing unit 401 is configured to establish a consistency group for application snapshot and replication
  • the consistency group refers to a collection of data volumes in which multiple data volumes can be saved; since the consistency group established by the establishing unit 401 is for the snapshot and replication of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
  • the adding unit 402 is configured to add, in the consistency group established by the establishing unit 401, a logical unit number of the block storage device used by the application database, and a separate file system volume storing related files of the application;
  • a snapshot unit 403 configured to determine a snapshot policy of the consistency group, and simultaneously snapshot the block storage device and the file system according to the snapshot policy; and/or;
  • the copy unit 404 is configured to determine a replication policy of the consistency group, and perform remote data replication on the block storage device and the file system according to the replication policy.
  • the adding unit 402 is specifically configured to obtain a logical unit number of the block storage device used by the database of the application from the block storage device, add the logical unit number to the consistency group, and obtain the file system from the file system.
  • a separate file system volume of the application's associated file, the independent file system volume is placed in the consistency group.
  • the file system may be a network shared file system or a universal Internet file system.
  • the file system may be integrated into a device such as a network attached storage device, and details are not described herein.
  • the snapshot unit 403 may include a snapshot subunit, a first blocking subunit, and a first disarming subunit, as follows:
  • a snapshot subunit configured to send a snapshot command to the block storage device and the file system according to the snapshot policy
  • the snapshot subunit may be specifically configured to use the primary controller to simultaneously send a snapshot command to the block storage device and the file system according to the snapshot policy.
  • the block storage device and the file system can take snapshots of the data or files saved by themselves according to the snapshot command, thereby generating a snapshot.
  • the algorithm for snapshotting the block storage device and the file system may be various.
  • a snapshot algorithm such as COW (ie, COFW) or ROW (ie, ROFW) may be used, and for the file system, Qtree may be adopted. Snapshot algorithms such as binary trees are not described here.
  • a first blocking sub-unit configured to block the host to write data to the disk, and create a protection time point;
  • the first blocking sub-unit may be specifically configured to send, by the primary controller, the secondary controller to indicate that the blocking host writes
  • the data blocking command causes the secondary controller to block the data sent by the host in the cache according to the blocking command, and the primary controller sends a command to create a protection time point to the secondary controller, so that the secondary controller creates the protection time point according to the The command creates a protection time point.
  • the secondary controller can prevent the host from writing data in multiple ways.
  • the blocking identifier can be set to indicate whether to prevent the host from writing data. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk. On the contrary, if the blocking identifier does not exist, it means that the host does not need to prevent the host from writing data to the disk. At this time, the host can directly write data to the disk, and the like, wherein when the host needs to prevent the host from writing data to the disk, The data received from the received data is stored in the cache. For details, refer to the previous embodiment, and details are not described herein.
  • the snapshot policy can be set according to the requirements of the actual application, and is not described here.
  • the first release subunit is configured to release the blocking of the data written to the host after the protection time point. For example, if the blocking identifier is used to indicate that the host needs to be prevented from writing data, then the blocking identifier can be deleted by the first releasing subunit, so that the data can be subsequently written to the disk, for example. , you can write data that was previously cached to disk, and so on.
  • the copy unit 404 may include a copy subunit, a second blocker unit, and a second release unit; a second blocking subunit, configured to prevent the host from writing data to the disk according to the replication policy, and creating a protection time point;
  • the second blocking sub-unit may be configured to send, by using the primary controller, a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy, so that the secondary controller sends the host according to the blocking command.
  • the data is blocked in the cache; the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
  • the secondary controller can prevent the host from writing data in multiple ways.
  • the blocking identifier can be set to indicate whether to prevent the host from writing data. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk. On the contrary, if the blocking identifier does not exist, it means that the host does not need to prevent the host from writing data to the disk. At this time, the host can directly write data to the disk, and the like, wherein when the host needs to prevent the host from writing data to the disk, The data received from the received data is stored in the cache. For details, refer to the previous embodiment, and details are not described herein.
  • the second release subunit is configured to release the blocking of the data written to the host after the protection time point.
  • the second disarming unit can delete the blocking identifier, so that the data can be subsequently written to the disk, for example, You can write data that was previously cached to disk, and so on.
  • the data processing device in the storage system may be specifically integrated in a device such as a storage management server.
  • the foregoing units may be implemented as an independent entity, or may be implemented in any combination, and may be implemented as the same entity or a plurality of entities.
  • the foregoing refer to the foregoing embodiments, and details are not described herein.
  • the establishing unit 401 in the data processing apparatus in the storage system of the present embodiment can establish a consistency group for application snapshot and copy, and the adding unit 402 adds the block used by the application database in the consistency group. a logical unit number of the storage device, and a separate file system volume storing related files of the application, and then the snapshot unit 403 determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system according to the snapshot policy, and / or, the replication unit 404 determines the replication policy of the consistency group, and performs remote data replication on the block storage device and the file system according to the replication policy; since the scheme establishes a consistency group for application snapshot and replication, Can The consistency group is used to realize the simultaneous snapshot and copy of the block storage device and the file system, and the data on the block storage device and the file system can be uniformly managed and protected.
  • Embodiment 5 Embodiment 5
  • the embodiment of the present invention further provides a communication system, including the data processing device in any one of the storage systems provided by the embodiment of the present invention, where the data processing device in the storage system is specifically referred to the fourth embodiment, for example.
  • the data processing device in the storage system is specifically integrated in the storage management server, and the specifics may be as follows:
  • a storage management server for establishing a consistency group for application snapshots and replications; adding a logical unit number of the block storage device used by the application's database to the consistency group, and a separate file system volume storing related files of the application Determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and performing block storage devices and file systems according to the replication policy
  • the remote data replication refer to the previous embodiment, and details are not described herein.
  • the communication system may also include other devices, such as a host, a block storage device (such as a block storage device, etc.), and a file system (which may be integrated in a network attached storage device), etc., as follows:
  • the host is mainly used for the forward block.
  • the storage device and the file system write or read data, for example, store the application database in a block storage device, and store related files of the application to the file system, and the like.
  • a block storage device is mainly used to store an application database, receive data written by the host, and send data that the host needs to read to the host, and the like.
  • the database of the stored application is snapshot according to the snapshot command; and/or when the copy command issued by the storage management server is received, the storage is performed according to the copy command.
  • the applied database is used for remote data replication.
  • the file system is mainly used to store related files of the application, receive data written by the host, and send data that the host needs to read to the host, and the like. And receiving a snapshot command sent by the storage management server, taking a snapshot of the related file of the stored application according to the snapshot command, thereby generating a snapshot of the required data; and/or receiving the copy command issued by the storage management server Remote data replication of the stored application's database based on the copy command.
  • the embodiment of the present invention further provides a storage management server, including a processor 501, a transceiver device 502 for transmitting and receiving data, and a memory 503 for storing data;
  • a processor 501 configured to establish a consistency group for application snapshot and replication, add a logical unit number of the block storage device used by the application database in the consistency group, and a separate file system volume that stores related files of the application; Determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and remotely controlling the block storage device and the file system according to the replication policy Data replication.
  • the file system may be a network shared file system or a CIFS.
  • the file system may be integrated into a device such as a network attached storage device, and details are not described herein.
  • the processor 501 is specifically configured to obtain, from the block storage device, a logical unit number of the block storage device used by the database of the application, add the logical unit number to the consistency group, and, from the file system Obtain a separate file system volume of the relevant file of the application, and store the independent file system volume in the consistency group.
  • the processor 501 is specifically configured to: prevent the host from writing data to the disk according to the replication policy, and create a protection time point; after the protection time point, unblock the data written to the host; according to the protection time point Perform remote data replication.
  • the blocking identifier can be used to indicate whether to prevent the host from writing data. For example, if the blocking identifier is present, it indicates that the host needs to prevent the host from writing data to the disk. Otherwise, if the blocking identifier does not exist, it indicates that the host does not need to be blocked. Write data to disk. At this time, the host can directly write data to the disk, and so on. When the host needs to prevent the host from writing data to the disk, the received data can be stored in the cache first. For details, see the front. The description in the embodiments is not described herein again. For the specific implementation of the foregoing various devices, refer to the foregoing embodiments, and details are not described herein again.
  • the storage management server of this embodiment can establish a logical unit number of the block storage device used by the database of the application, and a storage unit for storing the application by establishing a consistency group for application snapshot and replication.
  • a separate file system volume of the related file determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system according to the snapshot policy, and/or determines a replication policy of the consistency group, and according to the replication policy Block storage device and file system for remote data replication; because the scheme establishes a consistency group for application snapshot and replication, not only can the consistency group be used to achieve simultaneous snapshot and replication of block storage devices and file systems.
  • unified management and data protection can be performed on the data on the block storage device and the file system.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), random access memory (RAM), disk or optical disk.

Landscapes

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

Abstract

A data processing method in a storage system comprises: establishing a consistency group for an application snapshot and a replication; adding a logical unit number of a block storage device used by a database of the application and an independent file system volume for storing a related file of the application into the consistency group; determining a snapshot policy of the consistency group, and simultaneously snapshoting the block storage device and a file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and performing remote data replication for the block storage device and the file system according the replication policy. In addition, embodiments also provide a data processing apparatus and system and a related device in a storage system.

Description

一种存储系统中的数据处理方法、 装置和系统 技术领域  Data processing method, device and system in storage system
本发明涉及通信技术领域, 具体涉及一种存储系统中的数据处理方法、装 置和系统。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and system in a storage system. Background technique
随着通信技术的发展, 网络化管理也逐渐深入到各个领域, 而其所涉及到 的数据也越来越庞大, 因此,如何对这些数据进行存储和管理也成为一个极为 重要的问题。  With the development of communication technology, network management has gradually penetrated into various fields, and the data involved has become more and more large. Therefore, how to store and manage such data has become an extremely important issue.
4艮多应用, 特别是数据库应用是部署在块(Block )存储上, 因为所有主 流数据库都有自己的存储管理层, 因此只需要映射棵盘就行,但也有很多情况 下是数据库中的索引存放在块存储设备,而数据库中存放的具体文件存储在文 件系统, 通过网络文件系统( NFS , Network File System )或通用互联网文件 系统(CIFS, Common Internet File Systems )访问。 也就是说, 此时完整的数 据库数据包括块存储设备上存储的数据和文件系统上存储的数据。为了提高数 据的安全性, 避免数据丟失, 在现有技术中, 往往需要对数据进行快照或复制 操作, 以供后续其他操作如数据备份和复制 /远程复制容灾等使用。 对于这种 将数据库数据进行分开存储的方式,往往需要分别对块存储设备和文件系统中 的数据进行快照或复制, 而这可能会出现两边的时间戳不一致的情况, 进而导 致快照点数据库的块数据和文件系统数据不一致,最终可能会发生数据库无法 拉起, 或对应的文件不一致的问题。 因此, 必须保证块存储设备和文件系统中 的快照或复制的操作可以在尽量一致的时间点同时进行。在现有技术中, 一般 可以通过备份脚本来实现,使该脚本同时在两边运行,从而达到块存储设备和 文件系统(比如网络共享文件系统) 同时进行快照或复制的目的。  More than 4 applications, especially database applications are deployed on block storage, because all mainstream databases have their own storage management layer, so only need to map the disk, but there are many cases where the index is stored in the database. In a block storage device, specific files stored in the database are stored in the file system and accessed through a network file system (NFS, Network File System) or a Common Internet File System (CIFS). That is, the complete database data at this point includes the data stored on the block storage device and the data stored on the file system. In order to improve the security of data and avoid data loss, in the prior art, data is often snapshotted or copied for subsequent operations such as data backup and copy/remote replication disaster recovery. For this way of storing the database data separately, it is often necessary to separately snapshot or copy the data in the block storage device and the file system, and this may result in inconsistent timestamps on both sides, which in turn leads to a block of the snapshot point database. Data and file system data are inconsistent, and eventually the database may not be pulled up, or the corresponding files are inconsistent. Therefore, it must be ensured that the snapshot or copy operations in the block storage device and the file system can be performed simultaneously at the same possible point in time. In the prior art, it can generally be implemented by a backup script, so that the script runs on both sides at the same time, thereby achieving the purpose of simultaneously snapshotting or copying the block storage device and the file system (such as a network shared file system).
在对现有技术的研究和实践过程中, 本发明的发明人发现,现有方案虽然 可以实现块存储设备和文件系统同时进行快照或复制的目的,但是块存储设备 和文件系统上的数据需要分别进行管理,数据恢复时也需要分别进行恢复, 因 此, 在管理和数据保护上十分不便。 发明内容 本发明实施例提供一种存储系统中的数据处理方法、装置和系统, 不仅可 以实现块存储设备和文件系统同时进行快照和复制,而且可以对块存储设备和 文件系统上的数据进行统一管理和数据保护。 In the research and practice of the prior art, the inventors of the present invention have found that although the existing solution can realize the purpose of simultaneous snapshot or copying of the block storage device and the file system, the data on the block storage device and the file system are required. Management separately, data recovery also needs to be separately restored, so it is very inconvenient in management and data protection. Summary of the invention The embodiment of the invention provides a data processing method, device and system in a storage system, which can not only perform snapshot and copying of a block storage device and a file system at the same time, but also can uniformly manage data on a block storage device and a file system. Data protection.
第一方面, 本发明实施例提供一种存储系统中的数据处理方法, 包括: 建立针对应用快照和复制的一致性组( Consistency Group );  In a first aspect, an embodiment of the present invention provides a data processing method in a storage system, including: establishing a Consistency Group for application snapshot and replication;
在所述一致性组中添加所述应用的数据库所用的块存储设备的逻辑单元 号 (LUN, Logical Unit Number ), 以及存放所述应用的相关文件的独立文件 系统卷;  Adding, in the consistency group, a logical unit number (LUN) of a block storage device used by the application database, and a separate file system volume storing related files of the application;
确定一致性组的快照策略,并根据所述快照策略对块存储设备和文件系统 同时进行快照; 和 /或,  Determining a snapshot policy for the consistency group and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or,
确定一致性组的复制策略,并根据所述复制策略对块存储设备和文件系统 进行远程数据复制。  Determine the replication policy for the consistency group and perform remote data replication on the block storage device and file system based on the replication policy.
在第一种可能的实施方式中, 结合第一方面, 所述在所述一致性组中添加 所述应用的数据库所用的块存储设备逻辑单元号、以及存放所述应用的相关文 件的独立文件系统卷, 包括:  In a first possible implementation, in combination with the first aspect, the block storage device logical unit number used in adding the database of the application in the consistency group, and a separate file storing related files of the application System volume, including:
从块存储设备中获取所述应用的数据库所用的块存储设备的逻辑单元号, 将所述逻辑单元号添加到所述一致性组中; 以及,  Obtaining, from the block storage device, a logical unit number of the block storage device used by the database of the application, adding the logical unit number to the consistency group; and
从文件系统中获取所述应用的相关文件的独立文件系统卷,将所述独立文 件系统卷存放在所述一致性组中。  A separate file system volume of the associated file of the application is obtained from the file system, and the independent file system volume is stored in the consistency group.
在第二种可能的实施方式中, 结合第一方面的第一种可能的实施方式, 所 述根据所述快照策略对块存储设备和文件系统同时进行快照, 包括:  In a second possible implementation manner, in combination with the first possible implementation manner of the first aspect, the snapshot is performed on the block storage device and the file system according to the snapshot policy, including:
根据所述快照策略同时向所述块存储设备和文件系统发送快照命令; 阻塞主机将数据写入磁盘, 并创建保护时间点;  Simultaneously sending a snapshot command to the block storage device and the file system according to the snapshot policy; blocking the host to write data to the disk, and creating a protection time point;
在所述保护时间点之后, 解除对主机写入数据的阻塞。  After the protection time point, the blocking of the data written to the host is released.
在第三种可能的实施方式中, 结合第一方面的第二种可能的实施方式, 所 述根据所述快照策略同时向所述块存储设备和文件系统发送快照命令, 包括: 由主控制器根据所述快照策略同时向所述块存储设备和文件系统发送快 照命令;  In a third possible implementation, in combination with the second possible implementation manner of the first aspect, the sending, by the snapshot policy, the snapshot command to the block storage device and the file system according to the snapshot policy, including: by the primary controller Sending a snapshot command to the block storage device and the file system according to the snapshot policy;
所述阻塞主机将数据写入磁盘, 并创建保护时间点, 包括: 由主控制器向 副控制器发送用于指示阻塞主机写入数据的阻塞命令,使得副控制器根据所述 阻塞命令将主机发送的数据阻塞在緩存,由主控制器下发创建保护时间点的命 令给副控制器, 使得副控制器根据所述创建保护时间点的命令创建保护时间 点。 The blocking host writes data to the disk and creates a protection time point, including: by the primary controller The secondary controller sends a blocking command for instructing the blocking host to write data, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command, and the primary controller sends a command to create a protection time point to the secondary controller. , causing the secondary controller to create a protection time point according to the command to create a protection time point.
在第四种可能的实施方式中, 结合第一方面的第一种可能的实施方式, 所 述确定一致性组的复制策略,并根据所述复制策略对块存储设备和文件系统进 行远程数据复制, 包括:  In a fourth possible implementation manner, in combination with the first possible implementation manner of the first aspect, the determining a replication policy of the consistency group, and performing remote data replication on the block storage device and the file system according to the replication policy , including:
根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点; 在所述保护时间点之后, 解除对主机写入数据的阻塞;  Blocking the host from writing data to the disk according to the replication policy, and creating a protection time point; after the protection time point, unblocking the data written to the host;
根据所述保护时间点进行远程数据复制。  Remote data replication is performed according to the protection time point.
在第五种可能的实施方式中, 结合第一方面的第四种可能的实施方式, 所 述根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点, 包括: 由主控制器根据所述复制策略向副控制器发送用于指示阻塞主机写入数 据的阻塞命令, 使得副控制器根据所述阻塞命令将主机发送的数据阻塞在緩 存;  In a fifth possible implementation manner, in combination with the fourth possible implementation manner of the first aspect, the preventing the host from writing data to the disk according to the replication policy, and creating a protection time point, including: by the primary controller Sending, according to the replication policy, a blocking command for instructing the blocking host to write data to the secondary controller, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command;
由主控制器下发创建保护时间点的命令给副控制器,使得副控制器根据所 述创建保护时间点的命令创建保护时间点。  The primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command for creating a protection time point.
在第六种可能的实施方式中, 结合第一方面的第五种可能的实施方式, 所 述副控制器根据所述阻塞命令将主机发送的数据阻塞在緩存, 包括:  In a sixth possible implementation manner, in combination with the fifth possible implementation manner of the first aspect, the secondary controller blocks the data sent by the host in the cache according to the blocking command, including:
副控制器根据所述阻塞命令设置阻塞标识;  The secondary controller sets a blocking identifier according to the blocking command;
当副控制器接收到主机发送的数据时, 若确定存在所述阻塞标识, 则将所 述数据阻塞在緩存;  When the secondary controller receives the data sent by the host, if it is determined that the blocking identifier exists, the data is blocked in the cache;
所述在所述保护时间点之后, 解除对主机写入数据的阻塞包括: 由副控制 器删除所述阻塞标识。  After the protection time point, releasing the blocking of the data written to the host includes: deleting the blocking identifier by the secondary controller.
第二方面, 本发明实施例还提供一种存储系统中的数据处理装置, 包括建 立单元、 添加单元、 以及快照单元和 /或复制单元;  In a second aspect, an embodiment of the present invention further provides a data processing apparatus in a storage system, including a establishing unit, an adding unit, and a snapshot unit and/or a copying unit;
建立单元, 用于建立针对应用快照和复制的一致性组;  Establishing a unit for establishing a consistency group for application snapshots and replication;
添加单元,用于在所述一致性组中添加所述应用的数据库所用的块存储设 备的逻辑单元号、 以及存放所述应用的相关文件的独立文件系统卷; 快照单元, 用于确定一致性组的快照策略, 并根据所述快照策略对块存储 设备和文件系统同时进行快照; An adding unit, a logical unit number of a block storage device used to add a database of the application in the consistency group, and a separate file system volume storing related files of the application; a snapshot unit, configured to determine a snapshot policy of the consistency group, and simultaneously snapshot the block storage device and the file system according to the snapshot policy;
复制单元, 用于确定一致性组的复制策略, 并根据所述复制策略对块存储 设备和文件系统进行远程数据复制。  A copy unit is configured to determine a replication policy of the consistency group, and perform remote data replication on the block storage device and the file system according to the replication policy.
在第一种可能的实施方式中, 结合第二方面, 其中:  In a first possible implementation, the second aspect is combined, wherein:
所述添加单元,具体用于从块存储设备中获取所述应用的数据库所用的块 存储设备的逻辑单元号, 将所述逻辑单元号添加到所述一致性组中; 以及, 从 文件系统中获取所述应用的相关文件的独立文件系统卷,将所述独立文件系统 卷存放在所述一致性组中。  The adding unit is specifically configured to acquire a logical unit number of the block storage device used by the database of the application from the block storage device, add the logical unit number to the consistency group, and, from the file system Obtaining a separate file system volume of the related file of the application, and storing the independent file system volume in the consistency group.
在第二种可能的实施方式中, 结合第二方面的第一种可能的实施方式, 所 述快照单元包括快照子单元、 第一阻塞子单元和第一解除子单元;  In a second possible implementation manner, in combination with the first possible implementation manner of the second aspect, the snapshot unit includes a snapshot subunit, a first blocking subunit, and a first disarming subunit;
所述快照子单元,用于根据所述快照策略同时向所述块存储设备和文件系 统发送快照命令;  The snapshot subunit is configured to send a snapshot command to the block storage device and the file system according to the snapshot policy;
所述第一阻塞子单元,用于阻塞主机将数据写入磁盘,并创建保护时间点; 所述第一解除子单元, 用于在所述保护时间点之后,解除对主机写入数据 的阻塞。  The first blocking sub-unit is configured to block the host to write data to the disk and create a protection time point; the first releasing sub-unit is configured to release the blocking of the data written to the host after the protection time point .
在第三种可能的实施方式中, 结合第二方面的第二种可能的实施方式, 其 中:  In a third possible implementation, in combination with the second possible implementation of the second aspect, wherein:
所述快照子单元,具体用于利用主控制器根据所述快照策略同时向所述块 存储设备和文件系统发送快照命令;  The snapshot subunit is specifically configured to send a snapshot command to the block storage device and the file system according to the snapshot policy by using the primary controller;
所述第一阻塞子单元,具体用于利用主控制器向副控制器发送用于指示阻 塞主机写入数据的阻塞命令,使得副控制器根据所述阻塞命令将主机发送的数 据阻塞在緩存, 由主控制器下发创建保护时间点的命令给副控制器,使得副控 制器根据所述创建保护时间点的命令创建保护时间点。  The first blocking sub-unit is configured to send, by using the main controller, a blocking command for instructing the blocking host to write data to the secondary controller, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command. The primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command for creating a protection time point.
在第四种可能的实施方式中, 结合第二方面的第一种可能的实施方式, 所 述复制单元包括复制子单元、 第二阻塞子单元和第二解除子单元;  In a fourth possible implementation, in combination with the first possible implementation manner of the second aspect, the copying unit includes a copying subunit, a second blocking subunit, and a second releasing subunit;
所述第二阻塞子单元, 用于根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点;  The second blocking subunit is configured to prevent the host from writing data to the disk according to the copying policy, and creating a protection time point;
所述第二解除子单元, 用于在所述保护时间点之后,解除对主机写入数据 的阻塞; The second release subunit is configured to cancel writing data to the host after the protection time point Blocking
所述复制子单元, 用于根据所述保护时间点进行远程数据复制。  The replicating subunit is configured to perform remote data replication according to the protection time point.
在第五种可能的实施方式中, 结合第二方面的第五种可能的实施方式, 其 中:  In a fifth possible implementation, in combination with the fifth possible implementation of the second aspect, wherein:
所述第二阻塞子单元,具体用于利用主控制器根据所述复制策略向副控制 器发送用于指示阻塞主机写入数据的阻塞命令,使得副控制器根据所述阻塞命 令将主机发送的数据阻塞在緩存;由主控制器下发创建保护时间点的命令给副 控制器, 使得副控制器根据所述创建保护时间点的命令创建保护时间点。  The second blocking sub-unit is configured to send, by using the primary controller, a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy, so that the secondary controller sends the host according to the blocking command. The data is blocked in the cache; the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
第三方面, 本发明实施例还提供一种通信系统, 包括本发明实施例提供的 任一种存储系统中的数据处理装置。  In a third aspect, an embodiment of the present invention further provides a communication system, including a data processing device in any one of the storage systems provided by the embodiments of the present invention.
第四方面, 本发明实施例还提供的一种存储管理服务器, 包括处理器、 用 于收发数据的收发设备和用于存储数据的存储器;  In a fourth aspect, the embodiment of the present invention further provides a storage management server, including a processor, a transceiver device for transmitting and receiving data, and a memory for storing data;
所述处理器, 用于建立针对应用快照和复制的一致性组; 在所述一致性组 中添加所述应用的数据库所用的块存储的逻辑单元号、以及存放所述应用的相 关文件的独立文件系统卷; 确定一致性组的快照策略, 并根据所述快照策略对 块存储和网络共享文件系统同时进行快照; 和 /或, 确定一致性组的复制策略, 并根据所述复制策略对块存储和网络共享文件系统进行远程数据复制。  The processor is configured to establish a consistency group for application snapshot and replication; add a logical unit number of a block storage used by the application database in the consistency group, and independently store related files of the application a file system volume; determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage and the network shared file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and determining the block according to the replication policy Storage and network shared file systems for remote data replication.
在第一种可能的实施方式中, 结合第二方面, 其中:  In a first possible implementation, the second aspect is combined, wherein:
所述处理器,具体用于从块存储中获取所述应用的数据库所用的块存储的 逻辑单元号, 将所述逻辑单元号添加到所述一致性组中; 以及, 从文件系统中 获取所述应用的相关文件的独立文件系统卷,将所述独立文件系统卷存放在所 述一致性组中。  The processor is specifically configured to acquire, from a block storage, a logical unit number of a block storage used by the database of the application, add the logical unit number to the consistency group, and acquire the file system from the file system. A separate file system volume of the associated file of the application, the independent file system volume being stored in the consistency group.
在第二种可能的实施方式中, 结合第二方面的第一种可能的实施方式, 其 中:  In a second possible implementation, in combination with the first possible implementation of the second aspect, wherein:
所述处理器,具体用于根据所述快照策略同时向所述块存储和文件系统发 送快照命令; 阻塞主机将数据写入磁盘, 并创建保护时间点; 在所述保护时间 点之后, 解除对主机写入数据的阻塞。  The processor is specifically configured to send a snapshot command to the block storage and file system according to the snapshot policy; block the host to write data to the disk, and create a protection time point; after the protection time point, release the pair Blocking of data written by the host.
在第三种可能的实施方式中, 结合第二方面的第一种可能的实施方式, 其 中: 所述处理器, 具体用于根据所述复制策略阻止主机将数据写入磁盘, 并创 建保护时间点; 在所述保护时间点之后, 解除对主机写入数据的阻塞; 根据所 述保护时间点进行远程数据复制。 In a third possible implementation, in combination with the first possible implementation of the second aspect, wherein: The processor is specifically configured to prevent the host from writing data to the disk according to the replication policy, and create a protection time point; after the protection time point, unblock the data written to the host; according to the protection time point Perform remote data replication.
本发明实施例通过建立针对应用快照和复制的一致性组,在该一致性组中 添加该应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用的相关 文件的独立文件系统卷,确定一致性组的快照策略, 并根据该快照策略对块存 储设备和文件系统同时进行快照; 和 /或, 确定一致性组的复制策略, 并根据 该复制策略对块存储设备和文件系统进行远程数据复制;由于该方案建立了一 个针对应用快照和复制的一致性组,所以不仅可以利用该一致性组来实现块存 储设备和文件系统同时进行快照和复制的目的, 而且,还可以对块存储设备和 文件系统上的数据进行统一管理和数据保护。 附图说明  The embodiment of the present invention establishes a consistency group for application snapshot and replication, adds a logical unit number of the block storage device used by the application database in the consistency group, and a separate file system volume for storing related files of the application, Determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and remotely controlling the block storage device and the file system according to the replication policy Data replication; because the scheme establishes a consistency group for application snapshots and replication, not only can the consistency group be used for simultaneous snapshot and replication of block storage devices and file systems, but also block storage. Unified management and data protection of data on devices and file systems. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域技术人员来讲,还可以根据这些附图获得其他的附 图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present invention. Other figures may also be obtained from those skilled in the art from these figures.
图 1是本发明实施例提供的存储系统中的数据处理方法的流程图; 图 2a是本发明实施例所提供的存储系统中的数据处理方法的场景示意图; 图 2b是本发明实施例提供的存储系统中的数据处理方法的另一流程图; 图 2c是本发明实施例提供的存储系统中的数据处理方法中快照的流程图; 图 3a是本发明实施例提供的存储系统中的数据处理方法的又一流程图; 图 3b是本发明实施例提供的存储系统中的数据处理方法中复制的流程图; 图 4是本发明实施例提供的存储系统备中的数据处理装置的结构示意图; 图 5是本发明实施例提供的存储系统中的存储管理服务器的结构示意图。 具体实施方式  1 is a flowchart of a data processing method in a storage system according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a data processing method in a storage system according to an embodiment of the present invention; FIG. 2 is a flowchart of a snapshot in a data processing method in a storage system according to an embodiment of the present invention; FIG. 3 is a data processing in a storage system according to an embodiment of the present invention; FIG. 3 is a flowchart of a data processing method in a storage system provided by an embodiment of the present invention; FIG. 4 is a schematic structural diagram of a data processing apparatus in a storage system preparation according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a storage management server in a storage system according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 本发明实施例提供一种存储系统中的数据处理方法、装置和系统。 以下分 别进行详细说明。 实施例一、 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Embodiments of the present invention provide a data processing method, apparatus, and system in a storage system. The details are described below separately. Embodiment 1
本发明实施例将从存储系统中的数据处理装置的角度进行描述,该存储系 统中的数据处理装置具体可以集成在存储管理服务器 (Storage Management Server )等设备中。  The embodiment of the present invention will be described from the perspective of a data processing device in a storage system. The data processing device in the storage system may be integrated into a device such as a storage management server (Storage Management Server).
一种存储系统中的数据处理方法, 包括: 建立针对应用快照和复制的一致 性组; 在该一致性组中添加该应用的数据库所用的块存储设备的逻辑单元号 LUN、 以及存放该应用的相关文件的独立文件系统卷;确定一致性组的快照策 略, 并根据该快照策略对块存储设备和文件系统同时进行快照; 和 /或, 确定 一致性组的复制策略,并根据该复制策略对块存储设备和文件系统进行远程数 据复制。  A data processing method in a storage system, comprising: establishing a consistency group for application snapshot and replication; adding a logical unit number LUN of a block storage device used by the application database in the consistency group, and storing the application a separate file system volume of the related file; determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and according to the replication policy Block storage devices and file systems for remote data replication.
如图 1所示, 具体流程可以如下:  As shown in Figure 1, the specific process can be as follows:
101、 建立针对应用快照和复制的一致性组。  101. Establish a consistency group for application snapshots and replication.
其中, 一致性组指的是一种数据卷的集合, 在该一致性组中, 可以保存多 份数据卷;由于步骤 101中建立的一致性组是针对应用的快照和复制的,因此, 该一致性组主要是用来存放与该应用的快照和复制相关的数据和 /或文件。  The consistency group refers to a collection of data volumes in which multiple data volumes can be saved; since the consistency group established in step 101 is for the snapshot and copy of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
102、 在步骤 101建立一致性组中添加该应用的数据库所用的块存储设备 的逻辑单元号、 以及存放该应用的相关文件的独立文件系统卷等; 例如, 具体 可以如下:  102. In step 101, a logical unit number of a block storage device used for adding a database of the application in the consistency group, and a separate file system volume for storing related files of the application are established; for example, the specifics may be as follows:
从块存储设备中获取该应用的数据库所用的块存储设备的逻辑单元号,将 该逻辑单元号添加到所述一致性组中; 以及,  Obtaining, from the block storage device, a logical unit number of the block storage device used by the database of the application, adding the logical unit number to the consistency group; and
从文件系统中获取该应用的相关文件的独立文件系统卷,将该独立文件系 统卷存放在所述一致性组中。  A separate file system volume of the relevant file of the application is obtained from the file system, and the independent file system volume is stored in the consistency group.
其中,文件系统具体可以为网络共享文件系统( NFS , Network File System ) 或通用互联网文件系统(CIFS , Common Internet File Systems )等, 这些文件 系统具体可以集成在网络附加存储(NAS, Network Attached Storage )等设备 中, 在此不再赘述。  The file system may be specifically a network shared file system (NFS, Network File System) or a common Internet file system (CIFS, Common Internet File Systems), and the file system may be integrated into a network attached storage (NAS). In the device, it will not be described here.
在建立了一致性组之后, 可以执行步骤 103和 /或 104, 具体如下: 103、 确定一致性组的快照策略, 并根据该快照策略对块存储设备和文件 系统(比如网络共享文件系统) 同时进行快照; 例如, 具体可以如下: After the consistency group is established, steps 103 and/or 104 may be performed as follows: The snapshot policy of the consistency group is determined, and the block storage device and the file system (such as the network shared file system) are simultaneously snapshotd according to the snapshot policy; for example, the details may be as follows:
( 1 )根据该快照策略同时向块存储设备和文件系统发送快照命令。  (1) Simultaneously send a snapshot command to the block storage device and the file system according to the snapshot policy.
例如, 以该存储系统中的数据处理装置包括主控制器和副控制器为例, 则 具体可以如下:  For example, taking the data processing device in the storage system as a main controller and a secondary controller as an example, the details may be as follows:
由主控制器根据确定的快照策略同时向块存储设备和文件系统发送快照 命令。  The master controller simultaneously sends snapshot commands to the block storage device and the file system according to the determined snapshot policy.
这样, 块存储设备和文件系统在接收到该快照命令后, 就可以分别根据该 快照命令对自身保存的数据或文件进行快照, 从而生成快照。 其中, 块存储设 备和文件系统进行快照的算法可以有多种, 比如, 对于块存储设备, 可以采用 写时拷贝 ( COW, Copy on Write ), 也叫 COFW, Copy on Fist Write )或重定 向写 ( ROW, Redirect on Write, 也叫 ROFW, Redirect on Fist Write )等快照 算法。 而对于文件系统, 则可以采用 Qtree ( Q树)或二叉树等快照算法, 在 此不再赘述。  In this way, after receiving the snapshot command, the block storage device and the file system can take snapshots of the data or files saved by themselves according to the snapshot command, thereby generating a snapshot. Among them, the block storage device and the file system can perform snapshots in various ways. For example, for a block storage device, COW (Copy on Write), also called COFW (Copy on Fist Write) or redirected write can be used. Snapshot algorithms such as ROW, Redirect on Write, also called ROFW, Redirect on Fist Write. For the file system, a snapshot algorithm such as Qtree (Q-tree) or binary tree can be used, and will not be described here.
其中, 快照策略可以根据实际应用的需求进行设置, 在此不再赘述。  The snapshot policy can be set according to the requirements of the actual application, and is not described here.
( 2 ) 阻塞主机将数据写入磁盘, 并创建保护时间点。  (2) Block the host to write data to disk and create a protection point in time.
例如, 还是以该存储系统中的数据处理装置包括主控制器和副控制器为 例, 则具体可以如下:  For example, if the data processing device in the storage system includes the primary controller and the secondary controller as an example, the details may be as follows:
由主控制器向副控制器发送用于指示阻塞主机写入数据的阻塞命令,使得 副控制器根据该阻塞命令将主机发送的数据阻塞在緩存;  Sending, by the primary controller, a blocking command for instructing the blocking host to write data to the secondary controller, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command;
由主控制器下发创建保护时间点的命令给副控制器,使得副控制器根据该 创建保护时间点的命令创建保护时间点。  The primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
其中, 副控制器可以采用多种方式阻止主机写入数据。 例如, 可以通过设 置阻塞标识来指示是否阻止主机写入数据。 比如, 如果存在该阻塞标识, 就表 明需要阻止主机写入数据到磁盘; 反之, 如果不存在该阻塞标识, 就表明不需 要阻止主机写入数据到磁盘,此时主机可以直接写入数据到磁盘,等等。其中, 当需要阻止主机写入数据到磁盘时, 可以将从接收到的数据先存放在緩存中, 即步骤 "副控制器根据该阻塞命令将主机发送的数据阻塞在緩存" 可以包括: 副控制器根据所述阻塞命令设置阻塞标识,当副控制器接收到主机发送的 数据时, 若确定存在该阻塞标识, 则将该数据阻塞在緩存。 Among them, the secondary controller can prevent the host from writing data in various ways. For example, you can indicate whether to prevent the host from writing data by setting a blocking flag. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk; otherwise, if the blocking identifier does not exist, it indicates that the host does not need to prevent the host from writing data to the disk, and the host can directly write data to the disk. ,and many more. Wherein, when it is necessary to prevent the host from writing data to the disk, the received data may be first stored in the cache, that is, the step "the secondary controller blocks the data sent by the host according to the blocking command in the cache" may include: Setting a blocking identifier according to the blocking command, when the secondary controller receives the sending by the host In the case of data, if it is determined that the blocking identifier exists, the data is blocked in the cache.
反之, 若确定不存在该阻塞标识, 则将该数据写入到磁盘。  Conversely, if it is determined that the blocking identifier does not exist, the data is written to the disk.
由于此时阻止了主机写入新的数据到磁盘, 因此, 可以保证该保护时间点 所对应的块存储设备和文件系统上的数据的一致性。所以, 此时块存储设备和 文件系统所作的快照也将会是一致的。  Since the host is prevented from writing new data to the disk at this time, the consistency of the data on the block storage device and the file system corresponding to the protection time point can be ensured. Therefore, the snapshots made by the block storage device and the file system will also be consistent.
( 3 )在该保护时间点之后, 解除对主机写入数据的阻塞。  (3) After the protection time point, the blocking of the data written to the host is released.
例如, 如果在 (2 ) 中主要是通过设置阻塞标识来指示需要阻止主机写入 数据的话, 则此时, 可以由副控制器删除该阻塞标识。 这样, 后续就可以将该 数据写入到磁盘, 比如, 可以将原先暂存在緩存的数据写入到磁盘中, 等等。  For example, if the blocking flag is set in (2) to indicate that the host needs to be prevented from writing data, then the blocking identifier can be deleted by the secondary controller. In this way, the data can be written to the disk later, for example, the data that was previously stored in the cache can be written to the disk, and so on.
104、 确定一致性组的复制策略, 并根据该复制策略对块存储设备和文件 系统(比如网络共享文件系统)进行远程数据复制; 例如, 具体可以如下: ( 1 )根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点。 例如, 还是以该存储系统中的数据处理装置包括主控制器和副控制器为 例, 则具体可以如下:  104. Determine a replication policy of the consistency group, and perform remote data replication on the block storage device and the file system (such as a network shared file system) according to the replication policy; for example, the following may be specifically: (1) blocking the host according to the replication policy Write data to disk and create a protection point in time. For example, if the data processing device in the storage system includes the primary controller and the secondary controller as an example, the details may be as follows:
由主控制器根据该复制策略向副控制器发送用于指示阻塞主机写入数据 的阻塞命令, 使得副控制器根据该阻塞命令将主机发送的数据阻塞在緩存; 由主控制器下发创建保护时间点的命令给副控制器,使得副控制器根据该 创建保护时间点的命令创建保护时间点。  The primary controller sends a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command; The command at the time point is given to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
其中, 副控制器可以采用多种方式阻止主机写入数据, 例如, 可以通过设 置阻塞标识来指示是否阻止主机写入数据。 比如, 如果存在该阻塞标识, 就表 明需要阻止主机写入数据到磁盘; 反之, 如果不存在该阻塞标识, 就表明不需 要阻止主机写入数据到磁盘,此时主机可以直接写入数据到磁盘,等等。其中, 当需要阻止主机写入数据到磁盘时, 可以将从接收到的数据先存放在緩存中, 即步骤 "副控制器根据该阻塞命令将主机发送的数据阻塞在緩存" 可以包括: 副控制器根据该阻塞命令设置阻塞标识,当副控制器接收到主机发送的数 据时, 若确定存在该阻塞标识, 则将该数据阻塞在緩存。  The secondary controller can prevent the host from writing data in various ways. For example, the blocking identifier can be set to indicate whether to prevent the host from writing data. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk; otherwise, if the blocking identifier does not exist, it indicates that the host does not need to prevent the host from writing data to the disk, and the host can directly write data to the disk. ,and many more. Wherein, when it is necessary to prevent the host from writing data to the disk, the received data may be first stored in the cache, that is, the step "the secondary controller blocks the data sent by the host according to the blocking command in the cache" may include: The device sets the blocking identifier according to the blocking command. When the secondary controller receives the data sent by the host, if it determines that the blocking identifier exists, the data is blocked in the cache.
反之, 若确定不存在该阻塞标识, 则将该数据写入到磁盘。  Conversely, if it is determined that the blocking identifier does not exist, the data is written to the disk.
由于此时阻止了主机写入新的数据到磁盘, 因此, 可以保证该保护时间点 所对应的块存储设备和文件系统上的数据的一致性。 ( 2 )在该保护时间点之后, 解除对主机写入数据的阻塞。 Since the host is prevented from writing new data to the disk at this time, the consistency of the data on the block storage device and the file system corresponding to the protection time point can be ensured. (2) After the protection time point, the blocking of the data written to the host is released.
例如, 如果在 (1 ) 中主要是通过设置阻塞标识来指示需要阻止主机写入 数据的话, 则此时, 可以由副控制器删除该阻塞标识。 这样, 后续就可以将该 数据写入到磁盘, 比如, 可以将原先暂存在緩存的数据写入到磁盘中, 等等。  For example, if (1) is mainly to set the blocking identifier to indicate that the host needs to be prevented from writing data, then at this time, the blocking identifier can be deleted by the secondary controller. In this way, the data can be written to the disk later, for example, the data that was previously stored in the cache can be written to the disk, and so on.
( 3 )根据该保护时间点进行远程数据复制。  (3) Remote data replication is performed according to the protection time point.
由上可知, 本实施例通过建立针对应用快照和复制的一致性组,在该一致 性组中添加该应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用 的相关文件的独立文件系统卷,确定一致性组的快照策略, 并根据该快照策略 对块存储设备和文件系统(比如网络共享文件) 系统同时进行快照; 和 /或, 确定一致性组的复制策略, 并根据该复制策略对块存储设备和文件系统(比如 网络共享文件系统 )进行远程数据复制。 由于该方案建立了一个针对应用快照 和复制的一致性组,所以不仅可以利用该一致性组来实现块存储设备和文件系 统(比如网络共享文件系统)同时进行快照和复制的目的, 而且, 还可以对块 存储设备和文件系统(比如网络共享文件系统 )上的数据进行统一管理和数据 保护。 根据实施例一所描述的方法,以下将在实施例二和三中举例作进一步详细 说明。 实施例二、  As can be seen from the above, the embodiment establishes a consistency group for application snapshot and replication, adds a logical unit number of the block storage device used by the application database in the consistency group, and a separate file for storing related files of the application. a system volume, which determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system (such as a network shared file) system according to the snapshot policy; and/or determines a replication policy of the consistency group, and according to the replication The policy performs remote data replication on block storage devices and file systems, such as network shared file systems. Since the solution establishes a consistency group for application snapshot and replication, not only can the consistency group be used to realize the simultaneous snapshot and copy of the block storage device and the file system (such as a network shared file system), but also Unified management and data protection for data on block storage devices and file systems such as network shared file systems. According to the method described in the first embodiment, further details will be exemplified in the second and third embodiments. Embodiment 2
在本实施例中, 将以快照为例作进一步详细说明。 此外, 为了描述方便, 在本实施例中,将以该存储系统中的数据处理装置具体集成在存储管理服务器 中, 文件系统具体为网络共享文件系统且安装在网络附加存储设备(NAS , Network Attached Storage ) 中为例进行说明。  In this embodiment, a snapshot is taken as an example for further detailed description. In addition, for the convenience of description, in the embodiment, the data processing device in the storage system is specifically integrated into the storage management server, and the file system is specifically a network shared file system and is installed on a network attached storage device (NAS, Network Attached). Storage is described as an example.
参见图 2a, 该图为该存储系统中的数据处理方法的场景示意图, 由图 2a 可以看出, 该存储系统可以包括主机、 块存储设备、 网络附加存储设备和存储 管理服务器。 其中, 主机、 块存储设备和网络附加存储设备之间可以通过存储 区域网络( SAN , Storage Area Network )进行通信。 此外, 主机还可以通过局 域网 (LAN, Local Area Network )将块存储设备、 网络附加存储设备和存储 管理服务器连接起来。而块存储设备和网络附加存储设备则分别由多个存储单 元组成, 在此不再赘述。 其中, 该存储系统的各个设备的功能具体可以如下:Referring to FIG. 2a, the figure is a schematic diagram of a scenario of a data processing method in the storage system. As can be seen from FIG. 2a, the storage system may include a host, a block storage device, a network attached storage device, and a storage management server. The host, the block storage device, and the network attached storage device can communicate through a storage area network (SAN). In addition, the host can also connect the block storage device, the network attached storage device, and the storage management server through a local area network (LAN). Block storage devices and network attached storage devices are respectively composed of multiple storage orders. Yuan composition, no longer repeat here. The functions of each device of the storage system may be specifically as follows:
( 1 )主机; (1) host;
主要用于将向块存储设备和网络附加存储设备写入或读出数据。 比如,将 应用的数据库存放到块存储设备中,以及将该应用的相关文件存放到网络附加 存储设备, 等等。  Mainly used to write or read data to block storage devices and network attached storage devices. For example, storing the application's database in a block storage device, storing the application's associated files on a network attached storage device, and so on.
( 2 )块存储设备;  (2) block storage device;
用于存储应用的数据库,接收主机写入的数据, 以及将主机需要读出的数 据发送给主机, 等等。 此外, 还可以将应用的数据库所用的块存储设备的逻辑 单元号添加到存储管理服务器的一致性组中,以及在接收到存储管理服务器下 发的快照命令时,根据快照命令对存储的应用的数据库进行快照,从而生成所 需的数据的快照。  A database for storing applications, receiving data written by the host, and transmitting data that the host needs to read to the host, and so on. In addition, the logical unit number of the block storage device used by the application database may be added to the consistency group of the storage management server, and when the snapshot command issued by the storage management server is received, the stored application according to the snapshot command The database is snapshotted to generate a snapshot of the required data.
( 3 ) 网络附加存储设备;  (3) Network attached storage devices;
用于存储应用的相关文件,接收主机写入的数据, 以及将主机需要读出的 数据发送给主机, 等等。 此外, 还可以将应用的相关文件的独立文件系统卷添 加到存储管理服务器的一致性组中,以及在接收到存储管理服务器下发的快照 命令时,根据快照命令对存储的应用的相关文件进行快照,从而生成所需的数 据的快照。  Used to store related files of the application, receive data written by the host, and send data that the host needs to read to the host, and so on. In addition, the independent file system volume of the related file of the application may be added to the consistency group of the storage management server, and when the snapshot command sent by the storage management server is received, the related file of the stored application is performed according to the snapshot command. Snapshots to generate a snapshot of the required data.
( 4 )存储管理服务器;  (4) a storage management server;
该存储管理服务器包含存储管理软件,可以用于建立针对应用快照和复制 的一致性组,接收块存储设备发送的应用的数据库所用的逻辑单元号, 以及接 收网络附加存储设备发送的应用的相关文件的独立文件系统卷,在该一致性组 中添加该应用的数据库所用的逻辑单元号、以及存放该应用的相关文件的独立 文件系统卷,确定一致性组的快照策略, 并根据该快照策略对块存储设备和网 络附加存储设备(即文件系统, 如网络共享文件系统) 同时进行快照, 比如, 可以同时对块存储设备和网络附加存储设备下发快照命令, 等等。  The storage management server includes storage management software, which can be used to establish a consistency group for application snapshots and replications, receive a logical unit number used by a database of applications sent by the block storage device, and receive related files of applications sent by the network attached storage device. a separate file system volume in which the logical unit number used by the application database and the independent file system volume storing the relevant files of the application are added to the consistency group, and the snapshot policy of the consistency group is determined, and according to the snapshot policy pair The block storage device and the network attached storage device (that is, the file system, such as the network shared file system) perform snapshots at the same time, for example, the snapshot command can be issued to the block storage device and the network attached storage device at the same time, and the like.
基于上述存储系统的结构, 以下将对该存储系统的具体执行流程进行说 明。  Based on the structure of the above storage system, the specific execution flow of the storage system will be described below.
如图 2b所示, 一种存储系统中的数据处理方法, 具体流程可以如下: 201、 存储管理服务器建立针对应用快照和复制的一致性组。 As shown in FIG. 2b, a data processing method in a storage system may be as follows: 201. The storage management server establishes a consistency group for application snapshots and replication.
其中, 一致性组指的是一种数据卷的集合, 在该一致性组中, 可以保存多 份数据卷; 由于步骤 201中建立的一致性组是针对应用的快照和复制的, 因此, 该一致性组主要是用来存放与该应用的快照和复制相关的数据和 /或文件。  The consistency group refers to a collection of data volumes, in which multiple data volumes can be saved; since the consistency group established in step 201 is for the snapshot and copy of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
202、 块存储设备将应用的数据库所用的块存储设备的逻辑单元号发送给 存储管理服务器, 然后执行步骤 203。  202. The block storage device sends the logical unit number of the block storage device used by the application database to the storage management server, and then performs step 203.
203、 存储管理服务器将接收到的应用的数据库所用的块存储设备的逻辑 单元号添加到一致性组中。  203. The storage management server adds the logical unit number of the block storage device used by the database of the received application to the consistency group.
204、 网络附加存储设备将该应用的相关文件的独立文件系统卷发送给存 储管理服务器, 然后执行步骤 205。  204. The network attached storage device sends a separate file system curl of the related file of the application to the storage management server, and then performs step 205.
205、 存储管理服务器将接收到的应用的相关文件的独立文件系统卷添加 到一致性组中。  205. The storage management server adds the independent file system volume of the related file of the received application to the consistency group.
其中, 步骤 202和 204的执行可以不分先后。  The execution of steps 202 and 204 may be in no particular order.
206、 存储管理服务器确定一致性组的快照策略, 并根据该快照策略对块 存储设备和文件系统同时进行快照。 比如, 同时向块存储设备和网络附加存储 设备下发快照命令等。 例如, 具体可参见图 2c, 流程可以如下:  206. The storage management server determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system according to the snapshot policy. For example, a snapshot command is issued to a block storage device and a network attached storage device. For example, see Figure 2c for details. The process can be as follows:
2061、主控制器根据确定的快照策略同时向块存储设备和网络附加存储设 备发送快照命令。  2061. The primary controller simultaneously sends a snapshot command to the block storage device and the network attached storage device according to the determined snapshot policy.
这样, 块存储设备和网络附加存储设备在接收到该快照命令后, 就可以分 别根据该快照命令对自身保存的数据或文件进行快照, 从而生成快照。  In this way, after receiving the snapshot command, the block storage device and the network attached storage device can take snapshots of the data or files saved by themselves according to the snapshot command, thereby generating a snapshot.
其中,块存储设备和网络附加存储设备进行快照的算法可以有多种,比如, 对于块存储设备, 可以采用 COW或 ROW等快照算法, 而对于网络附加存储设 备(及文件系统), 则可以采用 Qtree或二叉树等快照算法, 在此不再赘述。  The algorithm for performing snapshots on the block storage device and the network attached storage device may be various. For example, for a block storage device, a snapshot algorithm such as COW or ROW may be used, and for a network attached storage device (and a file system), Snapshot algorithms such as Qtree or binary tree are not described here.
其中, 快照策略可以根据实际应用的需求进行设置, 在此不再赘述。  The snapshot policy can be set according to the requirements of the actual application, and is not described here.
2062、 主控制器向副控制器发送用于指示阻塞主机写入数据的阻塞命令。 2062. The primary controller sends a blocking command to the secondary controller to instruct the blocking host to write data.
2063、 副控制器根据该阻塞命令设置阻塞标识, 比如, 具体可以设置输入 输出 (I/O, Input/Output ) 下刷标记, 并向主控制器返回表示阻塞命令完成的 响应消息。 2064、 主机继续向副控制器写入数据, 比如写入 I/O数据。 2063. The secondary controller sets a blocking identifier according to the blocking command. For example, the input/output (I/O, Input/Output) may be set to be marked, and a response message indicating completion of the blocking command is returned to the primary controller. 2064. The host continues to write data to the secondary controller, such as writing I/O data.
2065、副控制器确定是否存在阻塞标识,若存在,则阻塞主机写入的数据, 若不存在, 则不动作, 即允许主机继续向副控制器写入数据。  2065. The secondary controller determines whether there is a blocking identifier. If yes, the data written by the host is blocked. If it does not exist, the data does not operate, that is, the host is allowed to continue to write data to the secondary controller.
例如, 具体可以检查是否存在 I/O下刷标记, 若存在, 则将主机写入的 I/O 数据阻塞在緩存, 不写入磁盘; 若不存在, 则不动作, 即允许主机继续向副控 制器写入 I/O数据, 并将该 I/O数据写入磁盘, 等等。  For example, you can check whether there is an I/O under-brush flag. If it exists, the I/O data written by the host is blocked in the cache and not written to the disk. If it does not exist, it does not work, that is, the host is allowed to continue to the secondary. The controller writes I/O data, writes the I/O data to disk, and so on.
2066、 主控制器向副控制器下发创建保护时间点的命令。  2066. The main controller sends a command to create a protection time point to the secondary controller.
2067、 副控制器根据该创建保护时间点的命令创建保护时间点。  2067. The secondary controller creates a protection time point according to the command for creating a protection time point.
2068、 副控制器删除阻塞标识, 比如, 具体可以取消之前设置的 I/O下刷 标记, 并向主控制器返回表示创建保护时间点的命令完成的响应消息。  2068. The secondary controller deletes the blocking identifier. For example, the previously set I/O lowering brush flag may be canceled, and a response message indicating completion of the command to create the protection time point is returned to the primary controller.
2069、 副控制器将緩存中的 I/O数据写入磁盘, 并向主机返回表示主机写 入成功的响应消息。  2069. The secondary controller writes the I/O data in the cache to the disk, and returns a response message indicating that the host writes successfully to the host.
由上可知, 本实施例通过建立针对应用快照和复制的一致性组,在该一致 性组中添加该应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用 的相关文件的独立文件系统卷,确定一致性组的快照策略, 并根据该快照策略 对块存储设备和网络附加存储设备 (及文件系统)同时进行快照。 由于该方案 建立了一个针对应用快照和复制的一致性组,所以不仅可以利用该一致性组来 实现块存储设备和网络附加存储设备同时进行快照的目的, 而且,还可以对块 存储设备和网络附加存储设备上的数据进行统一管理和数据保护。 实施例三、  As can be seen from the above, the embodiment establishes a consistency group for application snapshot and replication, adds a logical unit number of the block storage device used by the application database in the consistency group, and a separate file for storing related files of the application. The system volume determines the snapshot policy of the consistency group and simultaneously snapshots the block storage device and the network attached storage device (and file system) according to the snapshot policy. Since the scheme establishes a consistency group for application snapshot and replication, the consistency group can be used not only to realize the simultaneous snapshot operation of the block storage device and the network attached storage device, but also to block storage devices and networks. Data on the attached storage device for unified management and data protection. Embodiment 3
与实施例二相同的是, 本发明实施例依然以该存储系统可以包括主机、块 存储设备、 网络附加存储设备和存储管理服务器为例进行说明, 与实施例二不 同的是, 在本实施例中, 将以远程数据复制为例进行说明。  In the embodiment of the present invention, the storage system may include a host, a block storage device, a network attached storage device, and a storage management server as an example. The second embodiment is different from the second embodiment. In the middle, the remote data replication will be taken as an example.
该存储系统的结构与实施例二中的存储系统的结构相同, 在此不再赘述。 其中, 该存储系统中的各个设备可以完成如下功能:  The structure of the storage system is the same as that of the storage system in the second embodiment, and details are not described herein again. Each device in the storage system can perform the following functions:
( 1 )主机;  (1) host;
主要用于将向块存储设备和网络附加存储设备写入或读出数据, 比如,将 应用的数据库存放到块存储设备中,以及将该应用的相关文件存放到网络附加 存储设备, 等等。 Mainly used to write or read data to block storage devices and network attached storage devices, for example, storing the application database in a block storage device, and storing related files of the application to the network attached Storage devices, and more.
( 2 )块存储设备;  (2) block storage device;
用于存储应用的数据库,接收主机写入的数据, 以及将主机需要读出的数 据发送给主机, 等等。 以及在接收到存储管理服务器下发的复制命令时, 根据 复制命令对存储的应用的数据库进行远程数据复制。  A database for storing applications, receiving data written by the host, and transmitting data that the host needs to read to the host, and so on. And when receiving the copy command issued by the storage management server, remote data copying is performed on the stored application database according to the copy command.
( 3 ) 网络附加存储设备;  (3) Network attached storage devices;
用于存储应用的相关文件,接收主机写入的数据, 以及将主机需要读出的 数据发送给主机, 等等。 以及在接收到存储管理服务器下发的复制命令时, 根 ( 4 )存储管理服务器;  Used to store related files of the application, receive data written by the host, and send data that the host needs to read to the host, and so on. And when receiving the copy command issued by the storage management server, the root (4) stores the management server;
该存储管理服务器主要用于建立针对应用快照和复制的一致性组,接收块 存储设备发送的应用的数据库所用的块存储设备的逻辑单元号,以及接收网络 附加存储设备发送的应用的相关文件的独立文件系统卷卷标,在该一致性组中 添加该应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用的相关 文件的独立文件系统卷卷标,确定一致性组的复制策略。 并根据该复制策略对 块存储设备和网络附加存储设备(即文件系统, 如网络共享文件系统)同时进 行远程数据复制, 比如, 可以同时对块存储设备和网络附加存储设备下发复制 命令, 等等。  The storage management server is mainly used to establish a consistency group for application snapshot and replication, receive a logical unit number of a block storage device used by a database of an application sent by the block storage device, and receive related files of an application sent by the network attached storage device. A separate file system volume label, in which the logical unit number of the block storage device used by the application database and the independent file system volume volume label of the relevant file storing the application are added to the consistency group, and the replication policy of the consistency group is determined. . According to the replication policy, the remote storage data is simultaneously performed on the block storage device and the network attached storage device (that is, the file system, such as the network shared file system). For example, the copy command can be issued to the block storage device and the network attached storage device at the same time, etc. Wait.
基于上述存储系统的结构, 以下将对该存储系统的具体执行流程进行说 明。  Based on the structure of the above storage system, the specific execution flow of the storage system will be described below.
如图 3a所示, 一种存储系统中的数据处理方法, 具体流程可以如下: 301、 存储管理服务器建立针对应用快照和复制的一致性组。  As shown in FIG. 3a, a data processing method in a storage system may be as follows: 301. A storage management server establishes a consistency group for application snapshot and replication.
其中, 一致性组指的是一种数据卷的集合, 在该一致性组中, 可以保存多 份数据卷; 由于步骤 301中建立的一致性组是针对应用的快照和复制的, 因此, 该一致性组主要是用来存放与该应用的快照和复制相关的数据和 /或文件。  The consistency group refers to a collection of data volumes in which multiple data volumes can be saved; since the consistency group established in step 301 is for the snapshot and replication of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
302、 块存储设备将应用的数据库所用的块存储设备的逻辑单元号发送给 存储管理服务器, 然后执行步骤 303。  302. The block storage device sends the logical unit number of the block storage device used by the application database to the storage management server, and then performs step 303.
303、 存储管理服务器将接收到的应用的数据库所用的块存储设备的逻辑 单元号添加到一致性组中。 303. The logic of the block storage device used by the storage management server to receive the database of the application The unit number is added to the consistency group.
304、 网络附加存储设备将该应用的相关文件的独立文件系统卷发送给存 储管理服务器, 然后执行步骤 305。  304. The network attached storage device sends a separate file system curl of the related file of the application to the storage management server, and then performs step 305.
305、 存储管理服务器将接收到的应用的相关文件的独立文件系统卷添加 到一致性组中。  305. The storage management server adds the independent file system volume of the related file of the received application to the consistency group.
其中, 步骤 302和 304的执行可以不分先后。  The execution of steps 302 and 304 may be in no particular order.
306、 存储管理服务器确定一致性组的复制策略, 并根据该复制策略对块 存储设备和网络附加存储设备 (即文件系统, 如网络共享文件系统 )进行远程 数据复制, 例如, 具体可参见图 3b, 流程可以如下:  306. The storage management server determines a replication policy of the consistency group, and performs remote data replication on the block storage device and the network attached storage device (that is, a file system, such as a network shared file system) according to the replication policy. For example, refer to FIG. 3b. , the process can be as follows:
3061、存储设备的主控制器根据该复制策略向副控制器发送用于指示阻塞 主机写入数据的阻塞命令、。  3061. The primary controller of the storage device sends a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy.
其中, 复制策略可以根据实际应用的需求进行设置, 在此不再赘述。  The replication policy can be set according to the requirements of the actual application, and is not described here.
3062、 副控制器根据该阻塞命令设置阻塞标识, 比如, 具体可以设置 I/O 下刷标记, 并向主控制器返回表示阻塞命令完成的响应消息。  3062. The secondary controller sets a blocking identifier according to the blocking command. For example, the I/O lowering flag may be set, and a response message indicating completion of the blocking command is returned to the primary controller.
3063、 主机继续向副控制器写入数据, 比如写入 I/O数据。  3063. The host continues to write data to the secondary controller, such as writing I/O data.
3064、副控制器确定是否存在阻塞标识,若存在,则阻塞主机写入的数据, 若不存在, 则不动作, 即允许主机继续向副控制器写入数据。  3064. The secondary controller determines whether there is a blocking identifier. If yes, the data written by the host is blocked. If it does not exist, the data does not operate, that is, the host is allowed to continue to write data to the secondary controller.
例如, 具体可以检查是否存在 I/O下刷标记, 若存在, 则将主机写入的 I/O 数据阻塞在緩存, 不写入磁盘; 若不存在, 则不动作, 即允许主机继续向副控 制器写入 I/O数据, 并将该 I/O数据写入磁盘, 等等。  For example, you can check whether there is an I/O under-brush flag. If it exists, the I/O data written by the host is blocked in the cache and not written to the disk. If it does not exist, it does not work, that is, the host is allowed to continue to the secondary. The controller writes I/O data, writes the I/O data to disk, and so on.
3065、 主控制器向副控制器下发创建保护时间点的命令。  3065. The main controller sends a command to create a protection time point to the secondary controller.
3066、 副控制器根据该创建保护时间点的命令创建保护时间点。  3066. The secondary controller creates a protection time point according to the command for creating a protection time point.
3067、 副控制器删除阻塞标识, 比如, 具体可以取消之前设置的 I/O下刷 标记, 并向主控制器返回表示创建保护时间点的命令完成的响应消息。  3067. The secondary controller deletes the blocking identifier. For example, the previously set I/O downstamp flag may be canceled, and a response message indicating completion of the command to create the protection time point is returned to the primary controller.
3068、 副控制器将緩存中的 I/O数据写入磁盘, 并向主机返回表示主机写 入成功的响应消息。  3068. The secondary controller writes the I/O data in the cache to the disk, and returns a response message indicating that the host writes successfully to the host.
3069、 副控制器根据创建的保护时间点进行远程数据复制。  3069. The secondary controller performs remote data replication according to the created protection time point.
由上可知, 本实施例通过建立针对应用的快照和复制的一致性组,在该一 致性组中添加该应用的数据库所用的块存储设备的逻辑单元号、以及存放该应 用的相关文件的独立文件系统卷,确定一致性组的复制策略, 并根据该复制策 略对块存储设备和网络附加存储设备(即文件系统, 如网络共享文件系统 )进 行远程数据复制。 由于该方案建立了一个针对应用快照和复制的一致性组, 所 以不仅可以利用该一致性组来实现块存储设备和网络附加存储设备同时进行 复制的目的, 而且,还可以对块存储设备和网络附加存储设备上的数据进行统 一管理和数据保护。 实施例四、 As can be seen from the above, this embodiment establishes a consistency group for snapshots and replications of applications, Adding a logical unit number of the block storage device used by the database of the application to the independent file system volume of the relevant file storing the application, determining a replication policy of the consistency group, and according to the replication policy, the block storage device and Network attached storage devices (ie file systems, such as network shared file systems) for remote data replication. Since the scheme establishes a consistency group for application snapshot and replication, the consistency group can be used not only to achieve the purpose of copying the block storage device and the network attached storage device at the same time, but also to block storage devices and networks. Data on the attached storage device for unified management and data protection. Embodiment 4
为了更好地实现以上方法,本发明实施例还提供一种存储系统中的数据处 理装置, 如图 4所示, 该存储系统中的数据处理装置包括建立单元 401、 添加单 元 402、 快照单元 403和复制单元 404;  In order to better implement the above method, the embodiment of the present invention further provides a data processing apparatus in a storage system. As shown in FIG. 4, the data processing apparatus in the storage system includes an establishing unit 401, an adding unit 402, and a snapshot unit 403. And copy unit 404;
建立单元 401 , 用于建立针对应用快照和复制的一致性组;  The establishing unit 401 is configured to establish a consistency group for application snapshot and replication;
其中, 一致性组指的是一种数据卷的集合, 在该一致性组中, 可以保存多 份数据卷; 由于建立单元 401建立的一致性组是针对应用的快照和复制的, 因 此, 该一致性组主要是用来存放与该应用的快照和复制相关的数据和 /或文件。  The consistency group refers to a collection of data volumes in which multiple data volumes can be saved; since the consistency group established by the establishing unit 401 is for the snapshot and replication of the application, therefore, The consistency group is primarily used to store data and/or files related to snapshots and replication of the application.
添加单元 402, 用于在该建立单元 401建立的一致性组中添加该应用的数 据库所用的块存储设备的逻辑单元号、以及存放该应用的相关文件的独立文件 系统卷;  The adding unit 402 is configured to add, in the consistency group established by the establishing unit 401, a logical unit number of the block storage device used by the application database, and a separate file system volume storing related files of the application;
快照单元 403 , 用于确定一致性组的快照策略, 并根据该快照策略对块存 储设备和文件系统同时进行快照; 和 /或;  a snapshot unit 403, configured to determine a snapshot policy of the consistency group, and simultaneously snapshot the block storage device and the file system according to the snapshot policy; and/or;
复制单元 404, 用于确定一致性组的复制策略, 并根据该复制策略对块存 储设备和文件系统进行远程数据复制。  The copy unit 404 is configured to determine a replication policy of the consistency group, and perform remote data replication on the block storage device and the file system according to the replication policy.
其中, 添加单元 402, 具体可以用于从块存储设备中获取该应用的数据库 所用的块存储设备的逻辑单元号,将该逻辑单元号添加到该一致性组中;以及, 从文件系统中获取该应用的相关文件的独立文件系统卷,将该独立文件系统卷 存放在该一致性组中。  The adding unit 402 is specifically configured to obtain a logical unit number of the block storage device used by the database of the application from the block storage device, add the logical unit number to the consistency group, and obtain the file system from the file system. A separate file system volume of the application's associated file, the independent file system volume is placed in the consistency group.
其中, 文件系统具体可以为网络共享文件系统或通用互联网文件系统等, 这些文件系统具体可以集成在网络附加存储设备等设备中, 在此不再赘述。 其中, 快照单元 403可以包括快照子单元、第一阻塞子单元和第一解除子 单元, 具体如下: The file system may be a network shared file system or a universal Internet file system. The file system may be integrated into a device such as a network attached storage device, and details are not described herein. The snapshot unit 403 may include a snapshot subunit, a first blocking subunit, and a first disarming subunit, as follows:
快照子单元,用于根据该快照策略同时向块存储设备和文件系统发送快照 命令;  a snapshot subunit, configured to send a snapshot command to the block storage device and the file system according to the snapshot policy;
例如, 快照子单元, 具体可以用于利用主控制器根据该快照策略同时向块 存储设备和文件系统发送快照命令。  For example, the snapshot subunit may be specifically configured to use the primary controller to simultaneously send a snapshot command to the block storage device and the file system according to the snapshot policy.
这样, 块存储设备和文件系统在接收到该快照命令后, 就可以分别根据该 快照命令对自身保存的数据或文件进行快照, 从而生成快照。 其中, 块存储设 备和文件系统进行快照的算法可以有多种, 比如, 对于块存储设备, 可以采用 COW (即 COFW )或 ROW (即 ROFW )等快照算法, 而对于文件系统, 则 可以采用 Qtree或二叉树等快照算法, 在此不再赘述。  In this way, after receiving the snapshot command, the block storage device and the file system can take snapshots of the data or files saved by themselves according to the snapshot command, thereby generating a snapshot. The algorithm for snapshotting the block storage device and the file system may be various. For example, for the block storage device, a snapshot algorithm such as COW (ie, COFW) or ROW (ie, ROFW) may be used, and for the file system, Qtree may be adopted. Snapshot algorithms such as binary trees are not described here.
第一阻塞子单元, 用于阻塞主机将数据写入磁盘, 并创建保护时间点; 例如, 第一阻塞子单元, 具体可以用于利用主控制器向副控制器发送用于 指示阻塞主机写入数据的阻塞命令,使得副控制器根据该阻塞命令将主机发送 的数据阻塞在緩存, 由主控制器下发创建保护时间点的命令给副控制器,使得 副控制器根据该创建保护时间点的命令创建保护时间点。  a first blocking sub-unit, configured to block the host to write data to the disk, and create a protection time point; for example, the first blocking sub-unit may be specifically configured to send, by the primary controller, the secondary controller to indicate that the blocking host writes The data blocking command causes the secondary controller to block the data sent by the host in the cache according to the blocking command, and the primary controller sends a command to create a protection time point to the secondary controller, so that the secondary controller creates the protection time point according to the The command creates a protection time point.
其中, 副控制器可以采用多种方式阻止主机写入数据, 例如, 可以通过设 置阻塞标识来指示是否阻止主机写入数据, 比如, 如果存在该阻塞标识, 就表 明需要阻止主机写入数据到磁盘, 反之, 如果不存在该阻塞标识, 就表明不需 要阻止主机写入数据到磁盘,此时主机可以直接写入数据到磁盘,等等,其中, 当需要阻止主机写入数据到磁盘时, 可以将从接收到的数据先存放在緩存中, 具体可参见前面实施例, 在此不再赘述。  The secondary controller can prevent the host from writing data in multiple ways. For example, the blocking identifier can be set to indicate whether to prevent the host from writing data. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk. On the contrary, if the blocking identifier does not exist, it means that the host does not need to prevent the host from writing data to the disk. At this time, the host can directly write data to the disk, and the like, wherein when the host needs to prevent the host from writing data to the disk, The data received from the received data is stored in the cache. For details, refer to the previous embodiment, and details are not described herein.
其中, 快照策略可以根据实际应用的需求进行设置, 在此不再赘述。  The snapshot policy can be set according to the requirements of the actual application, and is not described here.
第一解除子单元,用于在该保护时间点之后,解除对主机写入数据的阻塞。 例如,如果之前主要是通过设置阻塞标识来指示需要阻止主机写入数据的 话, 则此时, 可以由第一解除子单元删除该阻塞标识, 这样, 后续就可以将该 数据写入到磁盘, 比如, 可以将原先暂存在緩存的数据写入到磁盘中, 等等。  The first release subunit is configured to release the blocking of the data written to the host after the protection time point. For example, if the blocking identifier is used to indicate that the host needs to be prevented from writing data, then the blocking identifier can be deleted by the first releasing subunit, so that the data can be subsequently written to the disk, for example. , you can write data that was previously cached to disk, and so on.
其中, 复制单元 404可以包括复制子单元、第二阻塞子单元和第二解除子 单元; 第二阻塞子单元, 用于根据该复制策略阻止主机将数据写入磁盘, 并创建 保护时间点; The copy unit 404 may include a copy subunit, a second blocker unit, and a second release unit; a second blocking subunit, configured to prevent the host from writing data to the disk according to the replication policy, and creating a protection time point;
例如, 第二阻塞子单元, 具体可以用于利用主控制器根据所述复制策略向 副控制器发送用于指示阻塞主机写入数据的阻塞命令,使得副控制器根据该阻 塞命令将主机发送的数据阻塞在緩存;由主控制器下发创建保护时间点的命令 给副控制器, 使得副控制器根据该创建保护时间点的命令创建保护时间点。  For example, the second blocking sub-unit may be configured to send, by using the primary controller, a blocking command for instructing the blocking host to write data to the secondary controller according to the replication policy, so that the secondary controller sends the host according to the blocking command. The data is blocked in the cache; the primary controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
其中, 副控制器可以采用多种方式阻止主机写入数据, 例如, 可以通过设 置阻塞标识来指示是否阻止主机写入数据, 比如, 如果存在该阻塞标识, 就表 明需要阻止主机写入数据到磁盘, 反之, 如果不存在该阻塞标识, 就表明不需 要阻止主机写入数据到磁盘,此时主机可以直接写入数据到磁盘,等等,其中, 当需要阻止主机写入数据到磁盘时, 可以将从接收到的数据先存放在緩存中, 具体可参见前面实施例, 在此不再赘述。  The secondary controller can prevent the host from writing data in multiple ways. For example, the blocking identifier can be set to indicate whether to prevent the host from writing data. For example, if the blocking identifier exists, it indicates that the host needs to prevent the host from writing data to the disk. On the contrary, if the blocking identifier does not exist, it means that the host does not need to prevent the host from writing data to the disk. At this time, the host can directly write data to the disk, and the like, wherein when the host needs to prevent the host from writing data to the disk, The data received from the received data is stored in the cache. For details, refer to the previous embodiment, and details are not described herein.
第二解除子单元, 用于在所述保护时间点之后,解除对主机写入数据的阻 塞。  The second release subunit is configured to release the blocking of the data written to the host after the protection time point.
例如,如果之前主要是通过设置阻塞标识来指示需要阻止主机写入数据的 话, 则此时, 第二解除子单元可以删除该阻塞标识, 这样, 后续就可以将该数 据写入到磁盘, 比如, 可以将原先暂存在緩存的数据写入到磁盘中, 等等。  For example, if the blocking identifier is used to indicate that the host needs to be prevented from writing data, then the second disarming unit can delete the blocking identifier, so that the data can be subsequently written to the disk, for example, You can write data that was previously cached to disk, and so on.
复制子单元, 用于根据该保护时间点进行远程数据复制。  A replication subunit for remote data replication based on the protection time point.
该存储系统中的数据处理装置具体可以集成在存储管理服务器等设备中。 具体实现时, 以上各个单元可以作为独立的实体来实现,也可以进行任意 组合,作为同一或若干个实体来实现, 以上各个单元的具体实施可参见前面的 实施例, 在此不再赘述。  The data processing device in the storage system may be specifically integrated in a device such as a storage management server. For the specific implementation, the foregoing units may be implemented as an independent entity, or may be implemented in any combination, and may be implemented as the same entity or a plurality of entities. For the specific implementation of the foregoing, refer to the foregoing embodiments, and details are not described herein.
由上可知,本实施例的存储系统中的数据处理装置中的建立单元 401可以 建立针对应用快照和复制的一致性组,由添加单元 402在该一致性组中添加该 应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用的相关文件的 独立文件系统卷, 然后由快照单元 403确定一致性组的快照策略, 并根据该快 照策略对块存储设备和文件系统同时进行快照, 和 /或, 由复制单元 404确定 一致性组的复制策略,并根据该复制策略对块存储设备和文件系统进行远程数 据复制; 由于该方案建立了一个针对应用快照和复制的一致性组, 所以不仅可 以利用该一致性组来实现块存储设备和文件系统同时进行快照和复制的目的, 而且, 还可以对块存储设备和文件系统上的数据进行统一管理和数据保护。 实施例五、 It can be seen that the establishing unit 401 in the data processing apparatus in the storage system of the present embodiment can establish a consistency group for application snapshot and copy, and the adding unit 402 adds the block used by the application database in the consistency group. a logical unit number of the storage device, and a separate file system volume storing related files of the application, and then the snapshot unit 403 determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system according to the snapshot policy, and / or, the replication unit 404 determines the replication policy of the consistency group, and performs remote data replication on the block storage device and the file system according to the replication policy; since the scheme establishes a consistency group for application snapshot and replication, Can The consistency group is used to realize the simultaneous snapshot and copy of the block storage device and the file system, and the data on the block storage device and the file system can be uniformly managed and protected. Embodiment 5
相应的, 本发明实施例还提供一种通信系统, 包括本发明实施例提供的任 一种存储系统中的数据处理装置, 其中, 该存储系统中的数据处理装置具体可 参见实施例四, 例如, 以该存储系统中的数据处理装置具体集成在存储管理服 务器中为例, 则具体可以如下:  Correspondingly, the embodiment of the present invention further provides a communication system, including the data processing device in any one of the storage systems provided by the embodiment of the present invention, where the data processing device in the storage system is specifically referred to the fourth embodiment, for example. For example, the data processing device in the storage system is specifically integrated in the storage management server, and the specifics may be as follows:
存储管理服务器, 用于建立针对应用快照和复制的一致性组; 在该一致性 组中添加该应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用的 相关文件的独立文件系统卷; 确定一致性组的快照策略, 并根据该快照策略对 块存储设备和文件系统同时进行快照; 和 /或, 确定一致性组的复制策略, 并 根据该复制策略对块存储设备和文件系统进行远程数据复制,具体可参见前面 的实施例, 在此不再赘述。  a storage management server for establishing a consistency group for application snapshots and replications; adding a logical unit number of the block storage device used by the application's database to the consistency group, and a separate file system volume storing related files of the application Determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and performing block storage devices and file systems according to the replication policy For the remote data replication, refer to the previous embodiment, and details are not described herein.
此外, 该通信系统还可以包括其他设备, 比如主机、 块存储设备(如块存 储设备等)和文件系统(具体可集成在网络附加存储设备中 )等, 如下: 主机, 主要用于将向块存储设备和文件系统写入或读出数据, 比如, 将应 用的数据库存放到块存储设备中, 以及将该应用的相关文件存放到文件系统, 等等。  In addition, the communication system may also include other devices, such as a host, a block storage device (such as a block storage device, etc.), and a file system (which may be integrated in a network attached storage device), etc., as follows: The host is mainly used for the forward block. The storage device and the file system write or read data, for example, store the application database in a block storage device, and store related files of the application to the file system, and the like.
块存储设备, 主要用于存储应用的数据库, 接收主机写入的数据, 以及将 主机需要读出的数据发送给主机, 等等。 此外, 以及在接收到存储管理服务器 下发的快照命令时, 根据快照命令对存储的应用的数据库进行快照; 和 /或在 接收到存储管理服务器下发的复制命令时,根据复制命令对存储的应用的数据 库进行远程数据复制。  A block storage device is mainly used to store an application database, receive data written by the host, and send data that the host needs to read to the host, and the like. In addition, when the snapshot command issued by the storage management server is received, the database of the stored application is snapshot according to the snapshot command; and/or when the copy command issued by the storage management server is received, the storage is performed according to the copy command. The applied database is used for remote data replication.
文件系统, 主要用于存储应用的相关文件, 接收主机写入的数据, 以及将 主机需要读出的数据发送给主机, 等等。 以及在接收到存储管理服务器下发的 快照命令时,根据快照命令对存储的应用的相关文件进行快照,从而生成所需 的数据的快照; 和 /或在接收到存储管理服务器下发的复制命令时, 根据复制 命令对存储的应用的数据库进行远程数据复制。  The file system is mainly used to store related files of the application, receive data written by the host, and send data that the host needs to read to the host, and the like. And receiving a snapshot command sent by the storage management server, taking a snapshot of the related file of the stored application according to the snapshot command, thereby generating a snapshot of the required data; and/or receiving the copy command issued by the storage management server Remote data replication of the stored application's database based on the copy command.
以上各个设备的具体实施可参见前面的实施例, 在此不再赘述。 由于该通信系统包括本发明实施例提供的任一种存储系统中的数据处理 装置, 因此, 可以实现与本发明实施例提供的任一种存储系统中的数据处理装 置所实现的有益效果, 在此不再赘述。 实施例六、 For the specific implementation of the foregoing various devices, refer to the foregoing embodiments, and details are not described herein again. Since the communication system includes the data processing device in any one of the storage systems provided by the embodiments of the present invention, the beneficial effects achieved by the data processing device in any of the storage systems provided by the embodiments of the present invention can be achieved. This will not be repeated here. Embodiment 6
相应的, 本发明实施例还提供一种存储管理服务器, 包括处理器 501、 用 于收发数据的收发设备 502和用于存储数据的存储器 503;  Correspondingly, the embodiment of the present invention further provides a storage management server, including a processor 501, a transceiver device 502 for transmitting and receiving data, and a memory 503 for storing data;
处理器 501 , 用于建立针对应用快照和复制的一致性组, 在该一致性组中 添加应用的数据库所用的块存储设备的逻辑单元号、以及存放该应用的相关文 件的独立文件系统卷; 确定一致性组的快照策略, 并根据该快照策略对块存储 设备和文件系统同时进行快照; 和 /或, 确定一致性组的复制策略, 并根据该 复制策略对块存储设备和文件系统进行远程数据复制。  a processor 501, configured to establish a consistency group for application snapshot and replication, add a logical unit number of the block storage device used by the application database in the consistency group, and a separate file system volume that stores related files of the application; Determining a snapshot policy of the consistency group, and simultaneously taking snapshots of the block storage device and the file system according to the snapshot policy; and/or determining a replication policy of the consistency group, and remotely controlling the block storage device and the file system according to the replication policy Data replication.
其中, 文件系统具体可以为网络共享文件系统或 CIFS等, 这些文件系统 具体可以集成在网络附加存储设备等设备中, 在此不再赘述。  The file system may be a network shared file system or a CIFS. The file system may be integrated into a device such as a network attached storage device, and details are not described herein.
其中, 处理器 501 , 具体可以用于从块存储设备中获取该应用的数据库所 用的块存储设备的逻辑单元号,将该逻辑单元号添加到所述一致性组中;以及, 从文件系统中获取该应用的相关文件的独立文件系统卷,将该独立文件系统卷 存放在所述一致性组中。  The processor 501 is specifically configured to obtain, from the block storage device, a logical unit number of the block storage device used by the database of the application, add the logical unit number to the consistency group, and, from the file system Obtain a separate file system volume of the relevant file of the application, and store the independent file system volume in the consistency group.
处理器 501 , 具体可以用于根据所述快照策略同时向所述块存储设备和文 件系统发送快照命令; 阻塞主机将数据写入磁盘, 并创建保护时间点; 在所述 保护时间点之后, 解除对主机写入数据的阻塞。  The processor 501 is specifically configured to send a snapshot command to the block storage device and the file system according to the snapshot policy; block the host to write data to the disk, and create a protection time point; after the protection time point, release Blocking of data written to the host.
处理器 501 , 具体可以用于根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点; 在所述保护时间点之后, 解除对主机写入数据的阻塞; 根 据所述保护时间点进行远程数据复制。  The processor 501 is specifically configured to: prevent the host from writing data to the disk according to the replication policy, and create a protection time point; after the protection time point, unblock the data written to the host; according to the protection time point Perform remote data replication.
其中, 可以通过设置阻塞标识来指示是否阻止主机写入数据, 比如, 如果 存在该阻塞标识, 就表明需要阻止主机写入数据到磁盘, 反之, 如果不存在该 阻塞标识, 就表明不需要阻止主机写入数据到磁盘, 此时主机可以直接写入数 据到磁盘, 等等, 其中, 当需要阻止主机写入数据到磁盘时, 可以将从接收到 的数据先存放在緩存中, 具体可参见前面实施例中的描述, 在此不再赘述。 以上各个设备的具体实施可参见前面的实施例, 在此不再赘述。 由上可知,本实施例的存储管理服务器可以通过建立针对应用快照和复制 的一致性组,在该一致性组中添加该应用的数据库所用的块存储设备的逻辑单 元号、 以及存放该应用的相关文件的独立文件系统卷,确定一致性组的快照策 略, 并根据该快照策略对块存储设备和文件系统同时进行快照, 和 /或, 确定 一致性组的复制策略,并根据该复制策略对块存储设备和文件系统进行远程数 据复制; 由于该方案建立了一个针对应用快照和复制的一致性组, 所以不仅可 以利用该一致性组来实现块存储设备和文件系统同时进行快照和复制的目的, 而且, 还可以对块存储设备和文件系统上的数据进行统一管理和数据保护。 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: 只读存储器(ROM, Read Only Memory ), 随机存取记忆体(RAM, Random Access Memory ) , 磁盘或光盘等。 The blocking identifier can be used to indicate whether to prevent the host from writing data. For example, if the blocking identifier is present, it indicates that the host needs to prevent the host from writing data to the disk. Otherwise, if the blocking identifier does not exist, it indicates that the host does not need to be blocked. Write data to disk. At this time, the host can directly write data to the disk, and so on. When the host needs to prevent the host from writing data to the disk, the received data can be stored in the cache first. For details, see the front. The description in the embodiments is not described herein again. For the specific implementation of the foregoing various devices, refer to the foregoing embodiments, and details are not described herein again. As can be seen from the above, the storage management server of this embodiment can establish a logical unit number of the block storage device used by the database of the application, and a storage unit for storing the application by establishing a consistency group for application snapshot and replication. A separate file system volume of the related file, determines a snapshot policy of the consistency group, and simultaneously snapshots the block storage device and the file system according to the snapshot policy, and/or determines a replication policy of the consistency group, and according to the replication policy Block storage device and file system for remote data replication; because the scheme establishes a consistency group for application snapshot and replication, not only can the consistency group be used to achieve simultaneous snapshot and replication of block storage devices and file systems. Moreover, unified management and data protection can be performed on the data on the block storage device and the file system. A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), random access memory (RAM), disk or optical disk.
以上对本发明实施例所提供的一种存储系统中的数据处理方法、装置和系 阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时, 对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均 会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The foregoing description of the data processing method, apparatus, and system in a storage system provided by the embodiments of the present invention is merely for facilitating understanding of the method and core idea of the present invention. Meanwhile, those skilled in the art The present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种存储系统中的数据处理方法, 其特征在于, 包括: 1. A data processing method in a storage system, characterized by including:
建立针对应用快照和复制的一致性组; Establish consistency groups for application snapshots and replication;
在所述一致性组中添加所述应用的数据库所用的块存储设备的逻辑单元 号、 以及存放所述应用的相关文件的独立文件系统卷; Add to the consistency group the logical unit number of the block storage device used by the database of the application and the independent file system volume that stores the relevant files of the application;
确定一致性组的快照策略,并根据所述快照策略对块存储设备和文件系统 同时进行快照; 和 /或, Determine the snapshot policy of the consistency group, and snapshot the block storage device and file system simultaneously according to the snapshot policy; and/or,
确定一致性组的复制策略,并根据所述复制策略对块存储设备和文件系统 进行远程数据复制。 Determine the replication policy for the consistency group and perform remote data replication on the block storage device and file system according to the replication policy.
2、 根据权利要求 1所述的方法, 其特征在于, 所述在所述一致性组中添 加所述应用的数据库所用的块存储设备逻辑单元号、以及存放所述应用的相关 文件的独立文件系统卷, 包括: 2. The method according to claim 1, characterized in that, adding in the consistency group the logical unit number of the block storage device used by the database of the application and the independent file storing the related files of the application System volumes, including:
从块存储设备中获取所述应用的数据库所用的块存储设备的逻辑单元号, 将所述逻辑单元号添加到所述一致性组中; 以及, Obtain the logical unit number of the block storage device used by the database of the application from the block storage device, and add the logical unit number to the consistency group; and,
从文件系统中获取所述应用的相关文件的独立文件系统卷,将所述独立文 件系统卷存放在所述一致性组中。 Obtain the independent file system volume of the application-related files from the file system, and store the independent file system volume in the consistency group.
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述快照策略对 块存储设备和文件系统同时进行快照, 包括: 3. The method according to claim 2, characterized in that: snapshotting the block storage device and the file system simultaneously according to the snapshot policy includes:
根据所述快照策略同时向所述块存储设备和文件系统发送快照命令; 阻塞主机将数据写入磁盘, 并创建保护时间点; Send snapshot commands to the block storage device and file system simultaneously according to the snapshot policy; Block the host from writing data to the disk and create a protection time point;
在所述保护时间点之后, 解除对主机写入数据的阻塞。 After the protection time point, the blocking of writing data by the host is released.
4、 根据权利要求 3所述的方法, 其特征在于, 所述根据所述快照策略同 时向所述块存储设备和文件系统发送快照命令, 包括: 4. The method according to claim 3, characterized in that, sending a snapshot command to the block storage device and the file system simultaneously according to the snapshot policy includes:
由主控制器根据所述快照策略同时向所述块存储设备和文件系统发送快 照命令; The main controller simultaneously sends a snapshot command to the block storage device and the file system according to the snapshot policy;
所述阻塞主机将数据写入磁盘, 并创建保护时间点, 包括: 由主控制器向 副控制器发送用于指示阻塞主机写入数据的阻塞命令,使得副控制器根据所述 阻塞命令将主机发送的数据阻塞在緩存,由主控制器下发创建保护时间点的命 令给副控制器, 使得副控制器根据所述创建保护时间点的命令创建保护时间 点。 The blocking host writes data to the disk and creates a protection time point, including: sending a blocking command from the main controller to the secondary controller to instruct the blocking host to write data, so that the secondary controller switches the host to the disk according to the blocking command. The sent data is blocked in the cache, and the main controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time according to the command to create a protection time point. point.
5、 根据权利要求 2所述的方法, 其特征在于, 所述确定一致性组的复制 策略,并根据所述复制策略对块存储设备和文件系统进行远程数据复制,包括: 根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点; 在所述保护时间点之后, 解除对主机写入数据的阻塞; 5. The method according to claim 2, characterized in that: determining the replication strategy of the consistency group and performing remote data replication on the block storage device and the file system according to the replication strategy includes: according to the replication strategy Prevent the host from writing data to the disk and create a protection time point; after the protection time point, unblock the host from writing data;
根据所述保护时间点进行远程数据复制。 Remote data replication is performed based on the protection time point.
6、 根据权利要求 5所述的方法, 其特征在于, 所述根据所述复制策略阻 止主机将数据写入磁盘, 并创建保护时间点, 包括: 6. The method of claim 5, wherein preventing the host from writing data to disk according to the replication policy and creating a protection time point includes:
由主控制器根据所述复制策略向副控制器发送用于指示阻塞主机写入数 据的阻塞命令, 使得副控制器根据所述阻塞命令将主机发送的数据阻塞在緩 存; The primary controller sends a blocking command to the secondary controller according to the replication policy to instruct the blocking host to write data, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command;
由主控制器下发创建保护时间点的命令给副控制器,使得副控制器根据所 述创建保护时间点的命令创建保护时间点。 The main controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
7、 根据权利要求 4或 6所述的方法, 其特征在于, 所述副控制器根据所 述阻塞命令将主机发送的数据阻塞在緩存, 包括: 7. The method according to claim 4 or 6, characterized in that the secondary controller blocks the data sent by the host in the cache according to the blocking command, including:
副控制器根据所述阻塞命令设置阻塞标识; The secondary controller sets the blocking flag according to the blocking command;
当副控制器接收到主机发送的数据时, 若确定存在所述阻塞标识, 则将所 述数据阻塞在緩存; When the secondary controller receives the data sent by the host, if it is determined that the blocking identifier exists, the data will be blocked in the cache;
所述在所述保护时间点之后,解除对主机写入数据的阻塞包括: 由副控制 器删除所述阻塞标识。 After the protection time point, unblocking the host from writing data includes: deleting the blocking identifier by the secondary controller.
8、 一种存储系统中的数据处理装置, 其特征在于, 包括: 8. A data processing device in a storage system, characterized by including:
建立单元, 用于建立针对应用快照和复制的一致性组; Creation unit, used to establish consistency groups for application snapshots and replication;
添加单元,用于在所述一致性组中添加所述应用的数据库所用的块存储设 备的逻辑单元号、 以及存放所述应用的相关文件的独立文件系统卷; Adding a unit for adding the logical unit number of the block storage device used by the database of the application and the independent file system volume storing the relevant files of the application in the consistency group;
快照单元, 用于确定一致性组的快照策略, 并根据所述快照策略对块存储 设备和文件系统同时进行快照; 和 /或; Snapshot unit, used to determine the snapshot policy of the consistency group, and take snapshots of the block storage device and the file system simultaneously according to the snapshot policy; and/or;
复制单元, 用于确定一致性组的复制策略, 并根据所述复制策略对块存储 设备和文件系统进行远程数据复制。 The replication unit is used to determine the replication strategy of the consistency group, and perform remote data replication on the block storage device and file system according to the replication strategy.
9、 根据权利要求 8所述的存储系统中的数据处理装置, 其特征在于, 所述添加单元,具体用于从块存储设备中获取所述应用的数据库所用的块 存储设备的逻辑单元号, 将所述逻辑单元号添加到所述一致性组中; 以及, 从 文件系统中获取所述应用的相关文件的独立文件系统卷,将所述独立文件系统 卷存放在所述一致性组中。 9. The data processing device in the storage system according to claim 8, characterized in that, The adding unit is specifically configured to obtain the logical unit number of the block storage device used by the database of the application from the block storage device, and add the logical unit number to the consistency group; and, from the file system Obtain the independent file system volume of the relevant files of the application, and store the independent file system volume in the consistency group.
10、 根据权利要求 9所述的存储系统中的数据处理装置, 其特征在于, 所 述快照单元包括快照子单元、 第一阻塞子单元和第一解除子单元; 10. The data processing device in the storage system according to claim 9, wherein the snapshot unit includes a snapshot subunit, a first blocking subunit and a first releasing subunit;
所述快照子单元,用于根据所述快照策略同时向所述块存储设备和文件系 统发送快照命令; The snapshot subunit is configured to simultaneously send snapshot commands to the block storage device and the file system according to the snapshot policy;
所述第一阻塞子单元,用于阻塞主机将数据写入磁盘,并创建保护时间点; 所述第一解除子单元, 用于在所述保护时间点之后,解除对主机写入数据 的阻塞。 The first blocking subunit is used to block the host from writing data to the disk and create a protection time point; the first unblocking subunit is used to unblock the host from writing data after the protection time point. .
11、 根据权利要求 10所述的存储系统中的数据处理装置, 其特征在于, 所述快照子单元,具体用于利用主控制器根据所述快照策略同时向所述块 存储设备和文件系统发送快照命令; 11. The data processing device in the storage system according to claim 10, characterized in that the snapshot subunit is specifically configured to use the main controller to simultaneously send data to the block storage device and the file system according to the snapshot policy. snapshot command;
所述第一阻塞子单元,具体用于利用主控制器向副控制器发送用于指示阻 塞主机写入数据的阻塞命令,使得副控制器根据所述阻塞命令将主机发送的数 据阻塞在緩存, 由主控制器下发创建保护时间点的命令给副控制器,使得副控 制器根据所述创建保护时间点的命令创建保护时间点。 The first blocking subunit is specifically configured to use the main controller to send a blocking command to the secondary controller to instruct the blocking host to write data, so that the secondary controller blocks the data sent by the host in the cache according to the blocking command, The main controller issues a command to create a protection time point to the secondary controller, so that the secondary controller creates a protection time point according to the command to create a protection time point.
12、 根据权利要求 9所述的存储系统中的数据处理装置, 其特征在于, 所 述复制单元包括复制子单元、 第二阻塞子单元和第二解除子单元; 12. The data processing device in the storage system according to claim 9, wherein the copy unit includes a copy sub-unit, a second blocking sub-unit and a second releasing sub-unit;
所述第二阻塞子单元, 用于根据所述复制策略阻止主机将数据写入磁盘, 并创建保护时间点; The second blocking subunit is used to prevent the host from writing data to the disk according to the replication policy and create a protection time point;
所述第二解除子单元, 用于在所述保护时间点之后,解除对主机写入数据 的阻塞; The second release subunit is used to release the blocking of the host writing data after the protection time point;
所述复制子单元, 用于根据所述保护时间点进行远程数据复制。 The replication subunit is used to perform remote data replication according to the protection time point.
13、 根据权利要求 12所述的存储系统中的数据处理装置, 其特征在于, 所述第二阻塞子单元,具体用于利用主控制器根据所述复制策略向副控制 器发送用于指示阻塞主机写入数据的阻塞命令,使得副控制器根据所述阻塞命 令将主机发送的数据阻塞在緩存;由主控制器下发创建保护时间点的命令给副 控制器, 使得副控制器根据所述创建保护时间点的命令创建保护时间点。 13. The data processing device in the storage system according to claim 12, wherein the second blocking subunit is specifically configured to use the main controller to send a blocking instruction to the secondary controller according to the replication strategy. The blocking command for the host to write data causes the secondary controller to block the data sent by the host in the cache according to the blocking command; the primary controller issues a command to create a protection time point to the secondary controller. The controller causes the secondary controller to create a protection time point according to the command for creating a protection time point.
14、 一种通信系统, 其特征在于, 包括权利要求 8至 13任一项所述的存 储系统中的数据处理装置。 14. A communication system, characterized by comprising the data processing device in the storage system according to any one of claims 8 to 13.
15、 一种存储管理服务器, 其特征在于, 包括处理器、 用于收发数据的收 发设备和用于存储数据的存储器; 15. A storage management server, characterized in that it includes a processor, a transceiver device for sending and receiving data, and a memory for storing data;
所述处理器, 用于建立针对应用快照和复制的一致性组; 在所述一致性组 中添加所述应用的数据库所用的块存储设备的逻辑单元号、以及存放所述应用 的相关文件的独立文件系统卷; 确定一致性组的快照策略, 并根据所述快照策 略对块存储设备和文件系统同时进行快照; 和 /或, 确定一致性组的复制策略, 并根据所述复制策略对块存储设备和文件系统进行远程数据复制。 The processor is configured to establish a consistency group for application snapshots and replication; add to the consistency group the logical unit number of the block storage device used by the database of the application and the location of the relevant files that store the application. Independent file system volume; determine the snapshot policy of the consistency group, and snapshot the block storage device and the file system simultaneously according to the snapshot policy; and/or, determine the replication policy of the consistency group, and snapshot the block storage device according to the replication policy Storage devices and file systems perform remote data replication.
16、 根据权利要求 15所述的存储管理服务器, 其特征在于, 16. The storage management server according to claim 15, characterized in that,
所述处理器,具体用于从块存储设备中获取所述应用的数据库所用的块存 储设备的逻辑单元号, 将所述逻辑单元号添加到所述一致性组中; 以及, 从文 件系统中获取所述应用的相关文件的独立文件系统卷,将所述独立文件系统卷 存放在所述一致性组中。 The processor is specifically configured to obtain the logical unit number of the block storage device used by the database of the application from the block storage device, and add the logical unit number to the consistency group; and, from the file system Obtain the independent file system volume of the relevant files of the application, and store the independent file system volume in the consistency group.
17、 根据权利要求 16所述的存储管理服务器, 其特征在于, 17. The storage management server according to claim 16, characterized in that,
所述处理器,具体用于根据所述快照策略同时向所述块存储设备和文件系 统发送快照命令; 阻塞主机将数据写入磁盘, 并创建保护时间点; 在所述保护 时间点之后, 解除对主机写入数据的阻塞。 The processor is specifically configured to send snapshot commands to the block storage device and the file system simultaneously according to the snapshot policy; block the host from writing data to the disk, and create a protection time point; after the protection time point, release Blocking the host from writing data.
18、 根据权利要求 16所述的存储管理服务器, 其特征在于, 18. The storage management server according to claim 16, characterized in that,
所述处理器, 具体用于根据所述复制策略阻止主机将数据写入磁盘, 并创 建保护时间点; 在所述保护时间点之后, 解除对主机写入数据的阻塞; 根据所 述保护时间点进行远程数据复制。 The processor is specifically configured to prevent the host from writing data to the disk according to the replication policy, and create a protection time point; after the protection time point, unblock the host from writing data; according to the protection time point Perform remote data replication.
PCT/CN2013/088577 2013-12-05 2013-12-05 Data processing method, apparatus and system in storage system WO2015081521A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/088577 WO2015081521A1 (en) 2013-12-05 2013-12-05 Data processing method, apparatus and system in storage system
CN201380002234.3A CN103842954B (en) 2013-12-05 2013-12-05 Data processing method, device, system and server in storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088577 WO2015081521A1 (en) 2013-12-05 2013-12-05 Data processing method, apparatus and system in storage system

Publications (1)

Publication Number Publication Date
WO2015081521A1 true WO2015081521A1 (en) 2015-06-11

Family

ID=50804805

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088577 WO2015081521A1 (en) 2013-12-05 2013-12-05 Data processing method, apparatus and system in storage system

Country Status (2)

Country Link
CN (1) CN103842954B (en)
WO (1) WO2015081521A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10241869B2 (en) 2017-03-08 2019-03-26 International Business Machines Corporation Managing a deletion of a volume referenced by a snapshot of a consistency group
EP3796173A4 (en) * 2018-07-05 2021-08-04 Huawei Technologies Co., Ltd. Data writing method and storage system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203327B (en) * 2016-03-16 2020-02-28 伊姆西Ip控股有限责任公司 Method and device for storage system
CN106371767B (en) * 2016-08-31 2019-08-20 华为技术有限公司 A kind of methods, devices and systems handling consistency business
CN111177260A (en) * 2019-12-19 2020-05-19 上海上讯信息技术股份有限公司 Database remote copying method and device and electronic equipment
US20230418961A1 (en) * 2022-06-28 2023-12-28 International Business Machines Corporation Fine granularity read access to generational safeguarded copy data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058662B2 (en) * 2000-11-30 2006-06-06 Xythos Software, Inc. Maintenance of data integrity during transfer among computer networks
CN102103530A (en) * 2009-12-16 2011-06-22 成都市华为赛门铁克科技有限公司 Snapshot methods, snapshot device and snapshot system
CN102722536A (en) * 2012-05-22 2012-10-10 中兴通讯股份有限公司 Method and device for realizing snapshot based on distributed file system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139887B2 (en) * 2003-12-31 2006-11-21 Veritas Operating Corporation Coordinated storage management operations in replication environment
GB0616257D0 (en) * 2006-08-16 2006-09-27 Ibm Storage management system for preserving consistency of remote copy data
CN101241456B (en) * 2008-02-28 2011-07-06 成都市华为赛门铁克科技有限公司 Data protection method and device
CN102289510B (en) * 2011-08-31 2013-10-09 华为数字技术(成都)有限公司 Method and device for writing data to production volume
CN102819615A (en) * 2012-08-30 2012-12-12 天津火星科技有限公司 Database continuous data protection method based on application snapshot

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058662B2 (en) * 2000-11-30 2006-06-06 Xythos Software, Inc. Maintenance of data integrity during transfer among computer networks
CN102103530A (en) * 2009-12-16 2011-06-22 成都市华为赛门铁克科技有限公司 Snapshot methods, snapshot device and snapshot system
CN102722536A (en) * 2012-05-22 2012-10-10 中兴通讯股份有限公司 Method and device for realizing snapshot based on distributed file system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10241869B2 (en) 2017-03-08 2019-03-26 International Business Machines Corporation Managing a deletion of a volume referenced by a snapshot of a consistency group
EP3796173A4 (en) * 2018-07-05 2021-08-04 Huawei Technologies Co., Ltd. Data writing method and storage system
US11500741B2 (en) 2018-07-05 2022-11-15 Huawei Technologies Co., Ltd. Data write method and storage system

Also Published As

Publication number Publication date
CN103842954B (en) 2017-02-15
CN103842954A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
WO2015081521A1 (en) Data processing method, apparatus and system in storage system
US8170990B2 (en) Integrated remote replication in hierarchical storage systems
US9558205B2 (en) Method for creating clone file, and file system adopting the same
US20110055471A1 (en) Apparatus, system, and method for improved data deduplication
JP2020528618A (en) Asynchronous local and remote generation of consistent point-in-time snapshots in a consistency group
WO2017215432A1 (en) Data retracement method, device and system
WO2015085530A1 (en) Data replication method and storage system
US11836115B2 (en) Gransets for managing consistency groups of dispersed storage items
US11797491B2 (en) Inofile management and access control list file handle parity
US11816348B2 (en) Persistent hole reservation
US11797213B2 (en) Freeing and utilizing unused inodes
KR20140106588A (en) Application consistent snapshots of a shared volume
JP2008077288A (en) Data backup method and computer system
US10416921B2 (en) Point-in-time snap copy on asynchronous consistency group management
JP2020502635A (en) Computer program, system, and method for asynchronous local and remote generation of consistent point-in-time snap copies
US9760457B2 (en) System, method and computer program product for recovering stub files
US20140250075A1 (en) Using a file system interface to access a remote storage system
US11768624B2 (en) Resilient implementation of client file operations and replication
US20170318093A1 (en) Method and System for Focused Storage Access Notifications from a Network Storage System
US9111598B2 (en) Increased I/O rate for solid state storage
EP2372552B1 (en) Automated relocation of in-use multi-site protected data storage
US20230259529A1 (en) Timestamp consistency for synchronous replication
CN111142789A (en) Method, device, equipment and storage medium for synchronizing configuration information between nodes
JP2013120463A (en) Information processing method, information processing system, information processing apparatus, and program

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: 13898684

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: 13898684

Country of ref document: EP

Kind code of ref document: A1