CN110032474A - A kind of snapshot, which occupies, holds method for determination of amount, system and associated component - Google Patents
A kind of snapshot, which occupies, holds method for determination of amount, system and associated component Download PDFInfo
- Publication number
- CN110032474A CN110032474A CN201910294489.0A CN201910294489A CN110032474A CN 110032474 A CN110032474 A CN 110032474A CN 201910294489 A CN201910294489 A CN 201910294489A CN 110032474 A CN110032474 A CN 110032474A
- Authority
- CN
- China
- Prior art keywords
- snapshot
- volume
- read
- capacity
- objects
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operations
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请公开了一种快照占用容量的确定方法,所述确定方法包括当接收到覆盖写指令时,确定原逻辑卷中与覆盖写指令对应的目标数据对象,并在只读快照卷中创建与目标数据对象内容一致的克隆对象;根据覆盖写指令对目标数据对象执行写操作得到新逻辑卷;在显式只读快照卷中写入新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;根据只读快照卷、显式只读快照卷和隐藏克隆快照卷中的对象数确定快照占用容量。本申请能够可以实现准确描述快照数据的占用容量,提高分布式块存储业务的存储性能。本申请还公开了一种快照占用容量的确定系统、一种计算机可读存储介质及一种电子设备,具有以上有益效果。
The present application discloses a method for determining the occupied capacity of a snapshot. The determining method includes, when an overwrite instruction is received, determining a target data object corresponding to the overwrite instruction in the original logical volume, and creating a read-only snapshot volume with a target data object corresponding to the overwrite instruction. A clone object with the same content of the target data object; perform a write operation on the target data object according to the overwrite instruction to obtain a new logical volume; write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume, and execute the write operation according to the The content in the target data object after that updates the hidden clone snapshot volume; the snapshot occupied capacity is determined according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume, and the hidden clone snapshot volume. The present application can accurately describe the occupied capacity of snapshot data and improve the storage performance of distributed block storage services. The present application also discloses a system for determining the occupied capacity of a snapshot, a computer-readable storage medium, and an electronic device, which have the above beneficial effects.
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种快照占用容量的确定方法、系统、一种计算机可读存储介质及一种电子设备。The present application relates to the field of computer technologies, and in particular, to a method, a system, a computer-readable storage medium, and an electronic device for determining the occupied capacity of a snapshot.
背景技术Background technique
在当前分布式块存储中,数据以KV对的形式存储在数据对象中。为逻辑卷创建快照后,对原逻辑卷进行覆盖写会触发写时复制,即将原卷待写入对象复制一份“快照对象”,然后对原卷对象进行数据写入,此过程即COW。在执行快照回滚时,将快照对应的快照对象覆盖原对象即可。In current distributed block storage, data is stored in data objects in the form of KV pairs. After creating a snapshot for a logical volume, overwriting the original logical volume will trigger copy-on-write, that is, copy a "snapshot object" of the object to be written to the original volume, and then write data to the original volume object. This process is COW. When performing a snapshot rollback, just overwrite the original object with the snapshot object corresponding to the snapshot.
当前分布式块存储中,快照属性包含原逻辑卷大小和快照已用容量。其中快照已用容量计算的创建快照时刻原卷的已用容量,快照创建后不随着原卷的读写发生变化,这不符合快照的COW原则。此外,可写快照的数据包含快照COW产生的原卷镜像数据和用户新写入的业务数据,快照已用容量无法准确描述上述两种数据的总占用大小。In current distributed block storage, snapshot attributes include the size of the original logical volume and the used capacity of the snapshot. The used capacity of the original volume at the time of creating the snapshot is calculated from the used capacity of the snapshot. After the snapshot is created, it does not change with the reading and writing of the original volume, which does not conform to the COW principle of snapshots. In addition, the data of the writable snapshot includes the original volume image data generated by the snapshot COW and the business data newly written by the user. The used capacity of the snapshot cannot accurately describe the total occupied size of the above two kinds of data.
因此,如何准确描述快照数据的占用容量,提高分布式块存储业务的存储性能是本领域技术人员目前需要解决的技术问题。Therefore, how to accurately describe the occupied capacity of snapshot data and improve the storage performance of the distributed block storage service is a technical problem that needs to be solved by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
本申请的目的是提供一种快照占用容量的确定方法、系统、一种计算机可读存储介质及一种电子设备,能够准确描述快照数据的占用容量,提高分布式块存储业务的存储性能。The purpose of this application is to provide a method and system for determining the occupied capacity of snapshots, a computer-readable storage medium and an electronic device, which can accurately describe the occupied capacity of snapshot data and improve the storage performance of distributed block storage services.
为解决上述技术问题,本申请提供一种快照占用容量的确定方法,该确定方法包括:In order to solve the above-mentioned technical problems, the present application provides a method for determining the occupied capacity of a snapshot, and the determination method includes:
当接收到覆盖写指令时,确定原逻辑卷中与所述覆盖写指令对应的目标数据对象,并在只读快照卷中创建与所述目标数据对象内容一致的克隆对象;When an overwrite instruction is received, determine the target data object corresponding to the overwrite instruction in the original logical volume, and create a clone object in the read-only snapshot volume that is consistent with the content of the target data object;
根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷;Perform a write operation on the target data object according to the overwrite instruction to obtain a new logical volume;
在显式只读快照卷中写入所述新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;Write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume, and update the hidden clone snapshot volume according to the content in the target data object after performing the write operation;
根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。The snapshot occupied capacity is determined according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume, and the hidden clone snapshot volume.
可选的,当所述快照占用容量包括只读快照占用容量和可写快照占用容量时,根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量包括:Optionally, when the snapshot occupied capacity includes the read-only snapshot occupied capacity and the writable snapshot occupied capacity, according to the objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume. The number of snapshots used to determine the occupied capacity includes:
根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;Calculate the occupied capacity of the read-only snapshot according to the number of objects and the object size of the read-only snapshot volume;
根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。The occupied capacity of the writable snapshot is calculated according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume.
可选的,在接收所述覆盖写指令之前,还包括:Optionally, before receiving the overwriting instruction, the method further includes:
当检测到所述逻辑卷内创建新数据对象时,将对象状态表中与所述新数据对象对应的状态设置为第一状态。When it is detected that a new data object is created in the logical volume, the state corresponding to the new data object in the object state table is set to the first state.
可选的,在对所述逻辑卷的目标数据对象执行覆盖写操作之后,还包括:Optionally, after the overwrite operation is performed on the target data object of the logical volume, the method further includes:
将所述对象状态表中与所述目标数据对象对应的状态设置为第二状态。A state in the object state table corresponding to the target data object is set as a second state.
当所述快照占用容量包括只读快照占用容量和可写快照占用容量时,根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量包括:When the snapshot occupied capacity includes the read-only snapshot occupied capacity and the writable snapshot occupied capacity, the snapshot occupied capacity is determined according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume Capacity includes:
确定所述对象状态表中状态为所述第二状态的数据对象的数量,根据所述状态为所述第二状态的数据对象的数量确定所述只读快照卷的对象数,根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;Determine the number of data objects in the second state in the object state table, determine the number of objects in the read-only snapshot volume according to the number of data objects in the second state, and determine the number of objects in the read-only snapshot volume according to the number of data objects in the second state. Calculate the occupied capacity of the read-only snapshot by the number of objects and object size of the read snapshot volume;
分别确定所述对象状态表中状态为所述第一状态和所述第二状态的数据对象的数量,根据所述第一状态的数量和第二状态的数量确定所述显式只读快照卷和所述隐藏克隆快照卷中的对象数,根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。respectively determining the number of data objects in the first state and the second state in the object state table, and determining the explicit read-only snapshot volume according to the number of the first state and the number of the second state and the number of objects in the hidden clone snapshot volume, and the capacity occupied by the writable snapshot is calculated according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume.
可选的,在根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷之后,还包括:Optionally, after performing a write operation on the target data object according to the overwrite instruction to obtain a new logical volume, the method further includes:
当接收到快照回滚指令时,根据所述只读快照卷中的目标数据对象对所述新逻辑卷执行快照回滚操作。When a snapshot rollback instruction is received, a snapshot rollback operation is performed on the new logical volume according to the target data object in the read-only snapshot volume.
本申请还提供了一种快照占用容量的确定系统,该确定系统包括:The present application also provides a system for determining the occupied capacity of a snapshot, and the system for determining includes:
克隆模块,用于当接收到覆盖写指令时,确定原逻辑卷中与所述覆盖写指令对应的目标数据对象,并在只读快照卷中创建与所述目标数据对象内容一致的克隆对象;a clone module, configured to determine a target data object corresponding to the overwrite instruction in the original logical volume when an overwrite instruction is received, and create a clone object in the read-only snapshot volume that is consistent with the content of the target data object;
覆盖写模块,用于根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷;an overwrite module, configured to perform a write operation on the target data object according to the overwrite instruction to obtain a new logical volume;
可读数据写入模块,用于在显式只读快照卷中写入所述新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;A readable data writing module, configured to write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume, and update the hidden clone snapshot volume according to the content in the target data object after the write operation;
容量计算模块,用于根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。A capacity calculation module, configured to determine the snapshot occupied capacity according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume.
可选的,当所述快照占用容量包括只读快照占用容量和可写快照占用容量时,所述容量计算模块包括:Optionally, when the snapshot occupied capacity includes the read-only snapshot occupied capacity and the writable snapshot occupied capacity, the capacity calculation module includes:
只读容量计算单元,用于根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;a read-only capacity calculation unit, configured to calculate the read-only snapshot occupied capacity according to the number of objects and the object size of the read-only snapshot volume;
可写容量计算单元,用于根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。A writable capacity calculation unit, configured to calculate the occupied capacity of the writable snapshot according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume.
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序执行时实现上述快照占用容量的确定方法执行的步骤。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps performed by the above-mentioned method for determining the occupied capacity of a snapshot are implemented.
本申请还提供了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器调用所述存储器中的计算机程序时实现上述快照占用容量的确定方法执行的步骤。The present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and when the processor invokes the computer program in the memory, the above-mentioned method for determining the occupied capacity of a snapshot executes the steps.
本申请提供了一种快照占用容量的确定方法,包括当接收到覆盖写指令时,确定原逻辑卷中与所述覆盖写指令对应的目标数据对象,并在只读快照卷中创建与所述目标数据对象内容一致的克隆对象;根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷;在显式只读快照卷中写入所述新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。The present application provides a method for determining the occupied capacity of a snapshot, which includes, when an overwrite instruction is received, determining a target data object corresponding to the overwrite instruction in the original logical volume, and creating a read-only snapshot volume with the target data object corresponding to the overwrite instruction. A clone object with the same content of the target data object; perform a write operation on the target data object according to the overwrite instruction to obtain a new logical volume; write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume , and update the hidden clone snapshot volume according to the content in the target data object after the write operation; determine the snapshot occupation according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume capacity.
本申请在原逻辑卷执行覆盖写操作之前先创建待写入内容对应的克隆对象,在覆盖写操作之后不但生成新逻辑卷对应的逻辑卷镜像数据,还根据之前待写入内容更新隐藏克隆快照卷用于记录新增的业务数据。相对于现有技术中快照创建后不随原逻辑卷的读写而改变,因此仅依靠原逻辑卷创建时刻得到的快照来计算占用容量并不准确。本申请根据执行覆盖写操作后的只读快照卷、显式只读快照卷和隐藏克隆快照卷中的对象数量来计算快照占用容量,可以实现准确描述快照数据的占用容量,提高分布式块存储业务的存储性能。本申请同时还提供了一种快照占用容量的确定系统、一种计算机可读存储介质和一种电子设备,具有上述有益效果,在此不再赘述。In the present application, a clone object corresponding to the content to be written is created before the overwrite operation of the original logical volume is performed. After the overwrite operation, not only the mirror data of the logical volume corresponding to the new logical volume is generated, but also the hidden clone snapshot volume is updated according to the content to be written before. Used to record new business data. Compared with the prior art, the snapshot does not change with the reading and writing of the original logical volume after it is created. Therefore, it is not accurate to calculate the occupied capacity only by relying on the snapshot obtained at the time of creation of the original logical volume. This application calculates the snapshot occupied capacity according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume after the overwrite operation is performed, which can accurately describe the occupied capacity of snapshot data and improve distributed block storage. Business storage performance. The present application also provides a system for determining the occupied capacity of a snapshot, a computer-readable storage medium, and an electronic device, which have the above beneficial effects, and are not repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to describe the embodiments of the present application more clearly, the following will briefly introduce the drawings that are used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, which are not relevant to ordinary skills in the art. As far as personnel are concerned, other drawings can also be obtained from these drawings on the premise of no creative work.
图1为本申请实施例所提供的一种快照占用容量的确定方法的流程图;1 is a flowchart of a method for determining a snapshot occupied capacity provided by an embodiment of the present application;
图2为本申请实施例所提供的另一种快照占用容量的确定方法的流程图;2 is a flowchart of another method for determining the occupied capacity of a snapshot provided by an embodiment of the present application;
图3为本申请实施例所提供的一种快照占用容量的确定系统的结构示意图。FIG. 3 is a schematic structural diagram of a system for determining a snapshot occupied capacity according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
下面请参见图1,图1为本申请实施例所提供的一种快照占用容量的确定方法的流程图。Please refer to FIG. 1 below. FIG. 1 is a flowchart of a method for determining a snapshot occupied capacity provided by an embodiment of the present application.
具体步骤可以包括:Specific steps can include:
S101:当接收到覆盖写指令时,确定原逻辑卷中与所述覆盖写指令对应的目标数据对象,并在只读快照卷中创建与所述目标数据对象内容一致的克隆对象;S101: when an overwrite instruction is received, determine a target data object corresponding to the overwrite instruction in the original logical volume, and create a clone object consistent with the content of the target data object in the read-only snapshot volume;
其中,在本步骤之前可以存在接收覆盖写指令的操作,当原逻辑卷中需要执行COW(copy on write写时复制)时会自动生成覆盖写指令,需要将新的业务数据覆盖至目标数据对象中。在创建该原逻辑卷时存储系统并未创建卷对象,当向该原逻辑卷写入数据时触发卷对象创建操作并完成数据写入,因此原逻辑卷中可以存在多个数据对象。也就是说,在本步骤中根据覆盖写指令确定到目标数据对象,即能够说明目标数据对象中已经写入数据。Among them, there may be an operation of receiving an overwrite instruction before this step. When COW (copy on write) needs to be performed in the original logical volume, an overwrite instruction will be automatically generated, and the new business data needs to be overwritten to the target data object. middle. When the original logical volume is created, the storage system does not create a volume object. When data is written to the original logical volume, a volume object creation operation is triggered and data writing is completed. Therefore, multiple data objects can exist in the original logical volume. That is to say, in this step, the target data object is determined according to the overwriting instruction, that is, it can be indicated that data has been written in the target data object.
在将新业务数据覆盖至目标数据对象之前,本步骤将原逻辑卷的目标数据对象进行复制操作得到与目标数据对象数据内容完全一致的克隆对象,以便在执行快照回滚时,将克隆对象对应的快照数据覆盖回目标数据对象即可。Before overwriting the new business data to the target data object, in this step, the target data object of the original logical volume is copied to obtain a clone object that is completely consistent with the data content of the target data object, so that when the snapshot rollback is performed, the cloned object corresponds to the target data object. The snapshot data can be overwritten back to the target data object.
需要说明的是,本实施例中的与逻辑卷对应的快照卷有三层,分别为:只读快照卷、显式只读快照卷和隐藏克隆快照卷,通过复制得到的克隆对象为只读快照卷中的对象。It should be noted that the snapshot volume corresponding to the logical volume in this embodiment has three layers, namely: a read-only snapshot volume, an explicit read-only snapshot volume, and a hidden clone snapshot volume. The clone object obtained by copying is a read-only snapshot. objects in the volume.
S102:根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷;S102: Perform a write operation on the target data object according to the overwrite instruction to obtain a new logical volume;
其中,在已经对目标数据对象进行复制得到克隆对象的前提下,本步骤根据S101中接收的覆盖写指令对目标数据对象执行写操作,具体的本步骤中的写操作是对目标数据对象覆盖写新业务数据的操作,在写操作执行完毕之后可以得到新逻辑卷,即:相对于原逻辑卷目标数据对象发生变化的新逻辑卷。Wherein, on the premise that the target data object has been copied to obtain the cloned object, this step performs a write operation on the target data object according to the overwrite instruction received in S101, and the specific write operation in this step is to overwrite the target data object. For the operation of new business data, after the writing operation is completed, a new logical volume can be obtained, that is, a new logical volume whose target data object has changed relative to the original logical volume.
举例说明本实施例的操作过程,例如:原逻辑卷包括数据对象object1和object2,在接收到覆盖写指令后确定原逻辑卷中与所述覆盖写指令对应的目标数据对象为object1。在只读快照卷中为object1创建克隆对象object1-snap1,克隆对象object1-snap1与数据对象object1具有相同的数据。创建克隆对象object1-snap1之后,对原逻辑卷的object1进行覆盖写操作,object1中的数据发生变化,将object1标记为object1’。To illustrate the operation process of this embodiment, for example, the original logical volume includes data objects object1 and object2, and after receiving the overwrite instruction, it is determined that the target data object corresponding to the overwrite instruction in the original logical volume is object1. Create a clone object object1-snap1 for object1 in the read-only snapshot volume. The clone object object1-snap1 has the same data as the data object object1. After the clone object object1-snap1 is created, the overwrite operation is performed on the object1 of the original logical volume, the data in the object1 changes, and the object1 is marked as object1'.
S103:在显式只读快照卷中写入所述新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;S103: Write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume, and update the hidden clone snapshot volume according to the content in the target data object after performing the write operation;
其中,在对原逻辑卷执行覆盖写操作之后,本步骤生成新逻辑卷的逻辑卷镜像数据并将逻辑卷镜像数据写入显式只读快照卷。本步骤还将执行写操作之后的目标数据对象中的内容更新至隐藏克隆快照卷,也就是说将S102写入的新的业务数据写入隐藏克隆快照卷。Wherein, after the overwrite operation is performed on the original logical volume, this step generates the logical volume mirror data of the new logical volume and writes the logical volume mirror data to the explicit read-only snapshot volume. In this step, the content in the target data object after the write operation is also updated to the hidden clone snapshot volume, that is, the new business data written in S102 is written into the hidden clone snapshot volume.
S104:根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。S104: Determine the snapshot occupied capacity according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume, and the hidden clone snapshot volume.
其中,现有技术中一旦原逻辑卷的快照创建之后,快照便不随原逻辑卷的读写操作发生变化,因此现有技术中若原逻辑卷存在写时复制的操作时,仍然将之前的快照已用容量作为当前的逻辑卷的已用容量,故存在描述错误的问题。本实施例在对原逻辑卷执行写时复制操作后,更新逻辑卷的三层快照,能够根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。快照卷中每一对象所占用的空间的是固定的,故可以根据只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。需要说明的是,本步骤中确定快照占用容量就可以得知新的逻辑卷的容量占用情况。Wherein, once the snapshot of the original logical volume is created in the prior art, the snapshot does not change with the read and write operations of the original logical volume. Therefore, in the prior art, if the copy-on-write operation of the original logical volume is performed, the previous snapshot is still stored. The capacity is used as the current used capacity of the logical volume, so there is a problem that the description is wrong. In this embodiment, after the copy-on-write operation is performed on the original logical volume, the three-tier snapshot of the logical volume is updated, and the objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume can be updated according to the The number determines the capacity occupied by the snapshot. The space occupied by each object in the snapshot volume is fixed, so the snapshot occupied capacity can be determined according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume. It should be noted that, by determining the occupied capacity of the snapshot in this step, the capacity occupancy status of the new logical volume can be known.
作为一种优选的实施方式,在S104之后还可以存在以下操作:As a preferred implementation manner, the following operations may also exist after S104:
当接收到快照回滚指令时,根据所述只读快照卷中的目标数据对象对所述新逻辑卷执行快照回滚操作。When a snapshot rollback instruction is received, a snapshot rollback operation is performed on the new logical volume according to the target data object in the read-only snapshot volume.
本实施例在原逻辑卷执行覆盖写操作之前先创建待写入内容对应的克隆对象,在覆盖写操作之后不但生成新逻辑卷对应的逻辑卷镜像数据,还根据之前待写入内容更新隐藏克隆快照卷用于记录新增的业务数据。相对于现有技术中快照创建后不随原逻辑卷的读写而改变,因此仅依靠原逻辑卷创建时刻得到的快照来计算占用容量并不准确。本实施例根据执行覆盖写操作后的只读快照卷、显式只读快照卷和隐藏克隆快照卷中的对象数量来计算快照占用容量,可以实现准确描述快照数据的占用容量,提高分布式块存储业务的存储性能。In this embodiment, a clone object corresponding to the content to be written is created before the overwrite operation of the original logical volume is performed. After the overwrite operation, not only the mirror data of the logical volume corresponding to the new logical volume is generated, but also the hidden clone snapshot is updated according to the content to be written before. Volumes are used to record new business data. Compared with the prior art, the snapshot does not change with the reading and writing of the original logical volume after it is created. Therefore, it is not accurate to calculate the occupied capacity only by relying on the snapshot obtained at the time of creation of the original logical volume. This embodiment calculates the snapshot occupied capacity according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume, and the hidden clone snapshot volume after the overwrite operation is performed, which can accurately describe the occupied capacity of the snapshot data and improve the distributed block size. Storage performance of storage services.
进一步的,图1对应的实施例中描述的快照占用容量可以包括只读快照占用容量和可写快照占用容量;Further, the snapshot occupied capacity described in the embodiment corresponding to FIG. 1 may include the read-only snapshot occupied capacity and the writable snapshot occupied capacity;
只读快照占用容量为只读快照卷中数据占用的容量,只读快照卷中的只读快照数据为COW产生的原卷镜像数据(即克隆对象中的数据)。可写快照占用容量为显式只读快照卷和隐藏克隆快照卷中数据占用的容量,可写快照数据可以包括新逻辑卷的镜像数据和新写入的业务数据。The capacity occupied by the read-only snapshot is the capacity occupied by the data in the read-only snapshot volume, and the read-only snapshot data in the read-only snapshot volume is the mirror data of the original volume (that is, the data in the clone object) generated by COW. The capacity occupied by the writable snapshot is the capacity occupied by the data in the explicit read-only snapshot volume and the hidden clone snapshot volume. The writable snapshot data can include the mirror data of the new logical volume and the newly written business data.
只读快照数据和可写快照数据均保存在对象中,对象的大小是固定的,一般为4M。因此两种快照的数据均会占用存储空间,故本实施例为快照数据的容量提出了占用容量的概念:快照真实占用分布式存储系统存储空间的大小。只读快照数据的占用容量最小为0(快照刚创建时),最大为原逻辑卷大小(对原卷完全覆盖写);可写快照数据的占用容量最小为0,最大为原逻辑卷大小的2倍(对原卷完全覆盖写,同时对可写快照全写)。Both read-only snapshot data and writable snapshot data are stored in the object, and the size of the object is fixed, generally 4M. Therefore, the data of the two snapshots will occupy storage space, so this embodiment proposes the concept of occupied capacity for the capacity of the snapshot data: the size of the storage space that the snapshot actually occupies in the distributed storage system. The minimum occupied capacity of read-only snapshot data is 0 (when the snapshot is just created), and the maximum is the size of the original logical volume (completely overwrites the original volume); the minimum occupied capacity of writable snapshot data is 0, and the maximum is the size of the original logical volume. 2x (completely overwrites the original volume and writes to the writable snapshot at the same time).
相应的,图1对应的实施例中S104提到的根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量可以包括以下步骤:Correspondingly, in the embodiment corresponding to FIG. 1, determining the snapshot occupied capacity according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume mentioned in S104 may include the following steps:
步骤1:根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;Step 1: Calculate the occupied capacity of the read-only snapshot according to the number of objects and the object size of the read-only snapshot volume;
步骤2:根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。Step 2: Calculate the occupied capacity of the writable snapshot according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume.
下面请参见图2,图2为本申请实施例所提供的另一种快照占用容量的确定方法的流程图,具体步骤可以包括:Please refer to FIG. 2 below. FIG. 2 is a flowchart of another method for determining the occupied capacity of a snapshot provided by an embodiment of the present application. The specific steps may include:
S201:当检测到所述逻辑卷内创建新数据对象时,将对象状态表中与所述新数据对象对应的状态设置为第一状态。S201: When it is detected that a new data object is created in the logical volume, set a state corresponding to the new data object in the object state table to a first state.
S202:当接收到覆盖写指令时,确定原逻辑卷中与所述覆盖写指令对应的目标数据对象,并在只读快照卷中创建与所述目标数据对象内容一致的克隆对象;S202: when an overwrite instruction is received, determine a target data object corresponding to the overwrite instruction in the original logical volume, and create a clone object in the read-only snapshot volume that is consistent with the content of the target data object;
S203:根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷,并将所述对象状态表中与所述目标数据对象对应的状态设置为第二状态。S203: Perform a write operation on the target data object according to the overwrite write instruction to obtain a new logical volume, and set the state corresponding to the target data object in the object state table as a second state.
S204:在显式只读快照卷中写入所述新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;S204: Write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume, and update the hidden clone snapshot volume according to the content in the target data object after the write operation;
S205:确定所述对象状态表中状态为所述第二状态的数据对象的数量,根据所述状态为所述第二状态的数据对象的数量确定所述只读快照卷的对象数,根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;S205: Determine the number of data objects whose state is the second state in the object state table, determine the number of objects of the read-only snapshot volume according to the number of data objects whose state is the second state, and determine the number of objects of the read-only snapshot volume according to the number of data objects whose state is the second state. Calculate the occupied capacity of the read-only snapshot by calculating the number of objects and the object size of the read-only snapshot volume;
S206:分别确定所述对象状态表中状态为所述第一状态和所述第二状态的数据对象的数量,根据所述第一状态的数量和第二状态的数量确定所述显式只读快照卷和所述隐藏克隆快照卷中的对象数,根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。S206: Determine the number of data objects whose states are the first state and the second state in the object state table respectively, and determine the explicit read-only according to the number of the first state and the number of the second state The number of objects in the snapshot volume and the hidden clone snapshot volume, and the occupied capacity of the writable snapshot is calculated according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume.
需要说明的是,本实施例默认在S201创建目标数据对象之前,对象状态表中目标数据对象对应的状态可以为第三状态。每一快照卷都可以存在一个对应的对象状态子表,本实施例将所有对象状态子表的集合称之为对象状态表。对象状态表中可以包括只读快照卷、所述显式只读快照卷和隐藏克隆快照卷中所有对象的状态。上述第一状态可以为“不存在”,第二状态可以为:“存在”。It should be noted that, in this embodiment, before the target data object is created in S201 by default, the state corresponding to the target data object in the object state table may be the third state. Each snapshot volume may have a corresponding object state sub-table, and in this embodiment, the set of all object state sub-tables is called an object state table. The object status table may include the status of all objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume. The above-mentioned first state may be "absence", and the second state may be: "existence".
举例说明上述流程,对象状态表在创建时将所有对象状态置为“不存在”,在COW过程中修改相应的快照对象的状态为“存在”。快照占用容量计算分只读快照和可写快照两种情况:只读快照容量计算统计对象状态表中状态为“存在”的对象数,将对象数乘以对象大小作为快照占用容量;可写快照包含显式只读快照和隐藏克隆卷两部分,其中显式只读快照包含新逻辑卷镜像数据,隐藏克隆卷保存新增业务数据,故可写快照占用容量需分别统计显示只读快照和隐藏克隆卷状态为“存在”的对象。For example, to illustrate the above process, when the object state table is created, the state of all objects is set to "absent", and the state of the corresponding snapshot object is modified to "exist" in the COW process. The capacity occupied by snapshots is calculated in two cases: read-only snapshots and writable snapshots: the capacity calculation of read-only snapshots counts the number of objects whose status is "existing" in the object status table, and multiplies the number of objects by the size of the objects to obtain the occupied capacity of snapshots; writable snapshots It consists of two parts: explicit read-only snapshots and hidden clone volumes. The explicit read-only snapshots contain the mirror data of new logical volumes, and the hidden clone volumes store new business data. Therefore, the capacity occupied by writable snapshots needs to be counted separately to display read-only snapshots and hidden clone volumes. Objects whose volume status is "exist".
下面通过在实际应用中的实施例说明上述实施例描述的流程。The processes described in the above embodiments are described below through embodiments in practical applications.
步骤1、在为逻辑卷创建快照时,对只读快照创建和卷objectmap大小相同的快照objectmap,其对象的状态均初始为“不存在”,对可写快照除参加objectmap外使用现有流程参加隐藏克隆卷的objectmap。Step 1. When creating a snapshot for a logical volume, create a snapshot objectmap with the same size as the volume objectmap for the read-only snapshot, and the state of the objects is initially "absent". For the writable snapshot, use the existing process to participate in addition to the objectmap. Hide the objectmap of the cloned volume.
步骤2、在对原卷覆盖写时,查找该卷创建时间最靠后的快照,即最新的快照。Step 2. When overwriting the original volume, find the snapshot with the latest creation time of the volume, that is, the latest snapshot.
步骤3、对原卷对象覆盖写时,检查该对象在最新快照中对应的快照对象是否为“存在”状态。Step 3. When overwriting the original volume object, check whether the snapshot object corresponding to the object in the latest snapshot is in the "existing" state.
步骤4、若步骤3中状态为“存在”,则直接对原卷对象覆盖写。若步骤3中状态为“不存在”,则先将该快照对象状态设置为“存在”,再对原对象覆盖写。Step 4. If the status in Step 3 is "Exist", directly overwrite the original volume object. If the status in step 3 is "absent", first set the status of the snapshot object to "exist", and then overwrite the original object.
步骤5、当对可写快照写数据时,其隐藏克隆卷objectmap更新规则和现分布式块存储逻辑保持一致。Step 5. When writing data to the writable snapshot, the objectmap update rule of the hidden clone volume is consistent with the current distributed block storage logic.
步骤6、对只读快照,统计快照objectmap中状态为“存在”的对象数,将其乘以对象大小即得快照占用容量。Step 6. For the read-only snapshot, count the number of objects in the snapshot objectmap whose status is "existing", and multiply it by the object size to obtain the snapshot occupied capacity.
步骤7、对可写快照,分别统计快照objectmap和隐藏克隆卷objectmap中状态为“存在”的对象数,将其乘以对象大小即为可写快照实际占用容量。Step 7. For writable snapshots, count the number of objects in the "existing" status in the snapshot objectmap and the hidden clone volume objectmap respectively, and multiply the number by the object size to obtain the actual occupied capacity of the writable snapshot.
本实施例为当前分布式块存储重新定义了快照占用容量的概念,提升了相关分布式块业务的用户体验;基于objectmap计算快照占用容量缩短了计算耗时,提高了分布式块业务的存储性能。This embodiment redefines the concept of snapshot occupied capacity for the current distributed block storage, and improves the user experience of related distributed block services; computing snapshot occupied capacity based on objectmap shortens the computing time and improves the storage performance of distributed block services .
请参见图3,图3为本申请实施例所提供的一种快照占用容量的确定系统的结构示意图;Please refer to FIG. 3, which is a schematic structural diagram of a system for determining the occupied capacity of a snapshot according to an embodiment of the present application;
该系统可以包括:The system can include:
克隆模块100,用于当接收到覆盖写指令时,确定原逻辑卷中与所述覆盖写指令对应的目标数据对象,并在只读快照卷中创建与所述目标数据对象内容一致的克隆对象;The cloning module 100 is configured to, when an overwrite instruction is received, determine a target data object corresponding to the overwrite instruction in the original logical volume, and create a clone object in the read-only snapshot volume that is consistent with the content of the target data object ;
覆盖写模块200,用于根据所述覆盖写指令对所述目标数据对象执行写操作得到新逻辑卷;an overwriting module 200, configured to perform a write operation on the target data object according to the overwriting instruction to obtain a new logical volume;
可读数据写入模块300,用于在显式只读快照卷中写入所述新逻辑卷对应的逻辑卷镜像数据,并根据执行写操作之后的目标数据对象中的内容更新隐藏克隆快照卷;The readable data writing module 300 is configured to write the logical volume mirror data corresponding to the new logical volume in the explicit read-only snapshot volume, and update the hidden clone snapshot volume according to the content in the target data object after the write operation is performed ;
容量计算模块400,用于根据所述只读快照卷、所述显式只读快照卷和所述隐藏克隆快照卷中的对象数确定快照占用容量。The capacity calculation module 400 is configured to determine the occupied capacity of a snapshot according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume and the hidden clone snapshot volume.
本实施例在原逻辑卷执行覆盖写操作之前先创建待写入内容对应的克隆对象,在覆盖写操作之后不但生成新逻辑卷对应的逻辑卷镜像数据,还根据之前待写入内容更新隐藏克隆快照卷用于记录新增的业务数据。相对于现有技术中快照创建后不随原逻辑卷的读写而改变,因此仅依靠原逻辑卷创建时刻得到的快照来计算占用容量并不准确。本实施例根据执行覆盖写操作后的只读快照卷、显式只读快照卷和隐藏克隆快照卷中的对象数量来计算快照占用容量,可以实现准确描述快照数据的占用容量,提高分布式块存储业务的存储性能。In this embodiment, a clone object corresponding to the content to be written is created before the overwrite operation of the original logical volume is performed. After the overwrite operation, not only the mirror data of the logical volume corresponding to the new logical volume is generated, but also the hidden clone snapshot is updated according to the content to be written before. Volumes are used to record new business data. Compared with the prior art, the snapshot does not change with the reading and writing of the original logical volume after it is created. Therefore, it is not accurate to calculate the occupied capacity only by relying on the snapshot obtained at the time of creation of the original logical volume. This embodiment calculates the snapshot occupied capacity according to the number of objects in the read-only snapshot volume, the explicit read-only snapshot volume, and the hidden clone snapshot volume after the overwrite operation is performed, which can accurately describe the occupied capacity of the snapshot data and improve the distributed block size. Storage performance of storage services.
进一步的,当所述快照占用容量包括只读快照占用容量和可写快照占用容量时,所述容量计算模块400包括:Further, when the snapshot occupied capacity includes the read-only snapshot occupied capacity and the writable snapshot occupied capacity, the capacity calculation module 400 includes:
只读容量计算单元,用于根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;a read-only capacity calculation unit, configured to calculate the read-only snapshot occupied capacity according to the number of objects and the object size of the read-only snapshot volume;
可写容量计算单元,用于根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。A writable capacity calculation unit, configured to calculate the occupied capacity of the writable snapshot according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume.
进一步的,该系统还包括:Further, the system also includes:
第一状态设置模块,用于当检测到所述逻辑卷内创建新数据对象时,将对象状态表中与所述新数据对象对应的状态设置为第一状态。The first state setting module is configured to set the state corresponding to the new data object in the object state table to the first state when it is detected that a new data object is created in the logical volume.
进一步的,该系统还包括:Further, the system also includes:
第二状态设置模块,用于将所述对象状态表中与所述目标数据对象对应的状态设置为第二状态。The second state setting module is configured to set the state corresponding to the target data object in the object state table as the second state.
进一步的,当所述快照占用容量包括只读快照占用容量和可写快照占用容量时,所述容量计算模块400包括:Further, when the snapshot occupied capacity includes the read-only snapshot occupied capacity and the writable snapshot occupied capacity, the capacity calculation module 400 includes:
第一计算单元,用于确定所述对象状态表中状态为所述第二状态的数据对象的数量,根据所述状态为所述第二状态的数据对象的数量确定所述只读快照卷的对象数,根据所述只读快照卷的对象数和对象大小计算所述只读快照占用容量;A first computing unit, configured to determine the number of data objects whose state is the second state in the object state table, and determine the read-only snapshot volume according to the number of data objects whose state is the second state; The number of objects, the capacity occupied by the read-only snapshot is calculated according to the number of objects and the object size of the read-only snapshot volume;
第二计算单元,用于分别确定所述对象状态表中状态为所述第一状态和所述第二状态的数据对象的数量,根据所述第一状态的数量和第二状态的数量确定所述显式只读快照卷和所述隐藏克隆快照卷中的对象数,根据所述显式只读快照卷和所述隐藏克隆快照卷中的对象数和对象大小计算所述可写快照占用容量。The second calculation unit is configured to respectively determine the number of data objects whose states are the first state and the second state in the object state table, and determine the number of data objects according to the number of the first state and the number of the second state. The number of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume, and the capacity occupied by the writable snapshot is calculated according to the number and size of objects in the explicit read-only snapshot volume and the hidden clone snapshot volume .
进一步的,该系统还包括:Further, the system also includes:
回滚模块,用于当接收到快照回滚指令时,根据所述只读快照卷中的目标数据对象对所述新逻辑卷执行快照回滚操作。A rollback module, configured to perform a snapshot rollback operation on the new logical volume according to the target data object in the read-only snapshot volume when a snapshot rollback instruction is received.
由于系统部分的实施例与方法部分的实施例相互对应,因此系统部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the system part correspond to the embodiments of the method part, for the embodiments of the system part, please refer to the description of the embodiments of the method part, which will not be repeated here.
本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现上述实施例所提供的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided by the above embodiments can be implemented. The storage medium may include: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
本申请还提供了一种电子设备,可以包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时,可以实现上述实施例所提供的步骤。当然所述电子设备还可以包括各种网络接口,电源等组件。The present application also provides an electronic device, which may include a memory and a processor, where a computer program is stored in the memory, and when the processor invokes the computer program in the memory, the steps provided in the above embodiments can be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and modifications can also be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article, or device that includes the element.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910294489.0A CN110032474B (en) | 2019-04-12 | 2019-04-12 | Method, system and related components for determining snapshot occupied capacity |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910294489.0A CN110032474B (en) | 2019-04-12 | 2019-04-12 | Method, system and related components for determining snapshot occupied capacity |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110032474A true CN110032474A (en) | 2019-07-19 |
| CN110032474B CN110032474B (en) | 2020-03-06 |
Family
ID=67238358
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910294489.0A Active CN110032474B (en) | 2019-04-12 | 2019-04-12 | Method, system and related components for determining snapshot occupied capacity |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110032474B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111552437A (en) * | 2020-04-22 | 2020-08-18 | 上海天玑科技股份有限公司 | Snapshot method and snapshot device applied to distributed storage system |
| CN113157199A (en) * | 2020-01-22 | 2021-07-23 | 阿里巴巴集团控股有限公司 | Snapshot occupation space calculation method and device, electronic equipment and storage medium |
| CN113377706A (en) * | 2020-02-25 | 2021-09-10 | 阿里巴巴集团控股有限公司 | Data processing method, device and system |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6584551B1 (en) * | 2000-11-27 | 2003-06-24 | Lsi Logic Corporation | System and method for automatic dynamic expansion of a snapshot repository |
| CN1991778A (en) * | 2005-12-29 | 2007-07-04 | 英业达股份有限公司 | Snapshot expansion system and method |
| CN104486392A (en) * | 2014-12-05 | 2015-04-01 | 国云科技股份有限公司 | A virtual machine image packaging method with low storage space |
| CN104714755A (en) * | 2013-12-13 | 2015-06-17 | 华为技术有限公司 | Snapshoot management method and device |
| CN109254874A (en) * | 2018-08-29 | 2019-01-22 | 郑州云海信息技术有限公司 | Method for transformation, device and the equipment of a kind of piece of storing data snapshot type |
-
2019
- 2019-04-12 CN CN201910294489.0A patent/CN110032474B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6584551B1 (en) * | 2000-11-27 | 2003-06-24 | Lsi Logic Corporation | System and method for automatic dynamic expansion of a snapshot repository |
| CN1991778A (en) * | 2005-12-29 | 2007-07-04 | 英业达股份有限公司 | Snapshot expansion system and method |
| CN104714755A (en) * | 2013-12-13 | 2015-06-17 | 华为技术有限公司 | Snapshoot management method and device |
| CN104486392A (en) * | 2014-12-05 | 2015-04-01 | 国云科技股份有限公司 | A virtual machine image packaging method with low storage space |
| CN109254874A (en) * | 2018-08-29 | 2019-01-22 | 郑州云海信息技术有限公司 | Method for transformation, device and the equipment of a kind of piece of storing data snapshot type |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113157199A (en) * | 2020-01-22 | 2021-07-23 | 阿里巴巴集团控股有限公司 | Snapshot occupation space calculation method and device, electronic equipment and storage medium |
| CN113377706A (en) * | 2020-02-25 | 2021-09-10 | 阿里巴巴集团控股有限公司 | Data processing method, device and system |
| CN113377706B (en) * | 2020-02-25 | 2025-03-14 | 阿里巴巴集团控股有限公司 | Data processing method, device and system |
| CN111552437A (en) * | 2020-04-22 | 2020-08-18 | 上海天玑科技股份有限公司 | Snapshot method and snapshot device applied to distributed storage system |
| CN111552437B (en) * | 2020-04-22 | 2024-03-15 | 上海天玑科技股份有限公司 | Snapshot method and snapshot device applied to distributed storage system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110032474B (en) | 2020-03-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114925084B (en) | Distributed transaction processing method, system, device and readable storage medium | |
| US6618794B1 (en) | System for generating a point-in-time copy of data in a data storage system | |
| US11947489B2 (en) | Creating snapshots of a storage volume in a distributed storage system | |
| US11740980B2 (en) | Managing snapshot metadata following backup | |
| US9116852B2 (en) | Processing a copy command directed to a first storage architecture for data that is stored in a second storage architecture | |
| US8572309B2 (en) | Apparatus and method to protect metadata against unexpected power down | |
| US20130073819A1 (en) | Efficient file system metadata scanning using scoped snapshots | |
| US9015119B2 (en) | Performing a background copy process during a backup operation | |
| KR20100115818A (en) | Dynamic formulas for spreadsheet cells | |
| CN110032474B (en) | Method, system and related components for determining snapshot occupied capacity | |
| CN106484313B (en) | Data information backup method, data back up method and device | |
| US20130194279A1 (en) | Optimizing graph evaluation | |
| CN115576501B (en) | Node updating method, system and related device of RAID card | |
| US10282371B1 (en) | Object storage device with probabilistic data structure | |
| CN103729301B (en) | Data processing method and device | |
| CN110007858A (en) | Memory allocation method and device | |
| CN108140043B (en) | Read-write protocol for attaching only distributed database | |
| CN108897822A (en) | A kind of data-updating method, device, equipment and readable storage medium storing program for executing | |
| CN110209351B (en) | Distributed storage data processing method and device | |
| CN112379831B (en) | Data management method, device, computer equipment and storage medium | |
| US20190073270A1 (en) | Creating Snapshots Of A Storage Volume In A Distributed Storage System | |
| US9015404B2 (en) | Persistent log operations for non-volatile memory | |
| CN109815031B (en) | Information processing method, device, electronic equipment and medium | |
| CN107018163A (en) | A kind of resource allocation method and device | |
| CN107423165A (en) | A kind of data snapshot head writes copy method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Country or region after: China Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |