CN108874320A - Simplification volume setting method, device, equipment and computer readable storage medium - Google Patents
Simplification volume setting method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108874320A CN108874320A CN201810689411.4A CN201810689411A CN108874320A CN 108874320 A CN108874320 A CN 108874320A CN 201810689411 A CN201810689411 A CN 201810689411A CN 108874320 A CN108874320 A CN 108874320A
- Authority
- CN
- China
- Prior art keywords
- thin volume
- volume
- data object
- thin
- space capacity
- 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.)
- Pending
Links
Classifications
-
- 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/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- 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/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- 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/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种精简卷设置方法、装置、设备及计算机可读存储介质;本方案在接收到设置指令后,便会创建一个与精简卷具有关联的空数据对象,该空数据对象已被填充,占有存储空间,即该精简卷实质上已经转换为普通卷;因此,后续再对原精简卷执行IO操作时,不需要分配空间,可直接对新创建的空数据对象执行对应操作。通过这种方式,就算整体存储用满,但是精简卷还是具有可用的剩余空间容量,不会出现超容量分配的情况。
The invention discloses a thin volume setting method, device, equipment and computer-readable storage medium; after receiving the setting instruction, the solution will create an empty data object associated with the thin volume, and the empty data object has been Filling, occupying storage space, that is, the thin volume has been converted into a normal volume in essence; therefore, when subsequent IO operations are performed on the original thin volume, there is no need to allocate space, and the corresponding operation can be directly performed on the newly created empty data object. In this way, even if the overall storage is full, the thin volume still has available free space capacity, and there will be no over-capacity allocation.
Description
技术领域technical field
本发明涉及精简卷配置技术领域,更具体地说,涉及一种精简卷设置方法、装置、设备及计算机可读存储介质。The present invention relates to the technical field of thin volume configuration, and more specifically, relates to a thin volume configuration method, device, equipment and computer-readable storage medium.
背景技术Background technique
精简卷,是带有自动精简配置的卷,而普通卷是无自动精简配置的卷。每个卷可以看作一个逻辑盘,可以是一个物理硬盘的逻辑盘,也就是我们直接看到的D盘、E盘这些盘符,也可以是两个硬盘或两个硬盘的部分空间组成的RAID 0或RAID 1阵列,或更多硬盘组成其他RAID 5阵列,但表面看来都是一个本地磁盘。自动精简配置是一项新的容量分配的技术,不会一次性的划分过大的空间给某项应用,而是根据该项应用实际所需要的容量,多次的少量的分配给应用程序,当该项应用所产生的数据增长,分配的容量空间已不够的时候,系统会再次从后端存储池中补充分配一部分存储空间。A thin volume is a volume with thin provisioning, and a normal volume is a volume without thin provisioning. Each volume can be regarded as a logical disk, which can be a logical disk of a physical hard disk, that is, the drive letters of D disk and E disk we see directly, or it can be composed of two hard disks or part of the space of two hard disks RAID 0 or RAID 1 arrays, or more hard disks to form other RAID 5 arrays, but all appear to be one local disk. Thin provisioning is a new capacity allocation technology. It does not allocate too much space to an application at one time, but allocates it to the application in small quantities multiple times according to the actual capacity required by the application. When the data generated by this application grows and the allocated capacity space is not enough, the system will allocate a part of the storage space again from the back-end storage pool.
由于精简卷是带有自动精简配置的卷,因此在初期分配卷的大小时,不会占用磁盘的物理空间,随着精简卷的使用,再逐步占用磁盘的物理空间。比如分配一个10TB的精简卷,此时,该卷实际占用的物理空间为0,而随着该卷的使用,该卷才会逐步的占用实际物理空间。而普通卷不带有自动精简配置,在初期分配卷的大小时,就已经占用了磁盘空间,所以,其空间占用可以在分配完成后就被感知。目前这两种卷是相对独立的,没有相互转化的能力。且大部分环境下,用户都使用精简卷。但是,自动精简配置虽然节省了空间,但在使用过程中极易超量分配,容易在集群已经没有实际空间的情况下,再分配空间出来,导致存储不可用。且在存储使用满时,很多精简卷都还没有写满,此时每个精简卷均不能再进行IO。Since a thin volume is a volume with automatic thin provisioning, the physical space of the disk will not be occupied when the size of the volume is initially allocated, and the physical space of the disk will be gradually occupied as the thin volume is used. For example, allocate a 10TB thin volume. At this time, the actual physical space occupied by the volume is 0, and as the volume is used, the volume will gradually occupy the actual physical space. However, ordinary volumes do not have thin provisioning. When the size of the volume is initially allocated, the disk space is already occupied. Therefore, its space occupation can be perceived after the allocation is completed. At present, these two volumes are relatively independent and have no ability to convert each other. And in most environments, users use thin volumes. However, although thin provisioning saves space, it is very easy to over-allocate during use. It is easy to re-allocate space when the cluster has no actual space, resulting in unavailable storage. And when the storage is full, many thin volumes are not yet full, and each thin volume can no longer perform IO.
发明内容Contents of the invention
本发明的目的在于提供一种精简卷设置方法、装置、设备及计算机可读存储介质,以避免精简卷超容量分配,导致存储用满时精简卷无法执行IO操作。The purpose of the present invention is to provide a thin volume setting method, device, equipment and computer-readable storage medium, so as to avoid excessive capacity allocation of the thin volume, resulting in that the thin volume cannot perform IO operations when the storage is full.
为实现上述目的,本发明实施例提供了如下技术方案:In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
一种精简卷设置方法,包括:A thin volume setting method, comprising:
接收将精简卷转换为普通卷的设置指令;Receive setup instructions to convert a thin volume to a normal volume;
根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象;Create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume;
填充所述空数据对象,以使对所述精简卷剩余空间容量的操作直接在填充后的空数据对象上执行。The empty data object is filled, so that operations on the remaining space capacity of the thin volume are directly performed on the filled empty data object.
其中,根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象,包括:Wherein, according to the remaining space capacity of the thin volume, an empty data object associated with the thin volume is created, including:
确定所述精简卷的总空间容量及已使用空间容量;Determine the total space capacity and the used space capacity of the thin volume;
根据所述总空间容量及所述已使用空间容量,计算所述精简卷的剩余空间容量;calculating the remaining space capacity of the thin volume according to the total space capacity and the used space capacity;
根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象。Create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume.
其中,根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象,包括:Wherein, according to the remaining space capacity of the thin volume, an empty data object associated with the thin volume is created, including:
根据所述精简卷的剩余空间容量,创建与所述精简卷的原数据对象相同命名方式的空数据对象。According to the remaining space capacity of the thin volume, create an empty data object named in the same manner as the original data object of the thin volume.
其中,所述填充所述空数据对象,包括:利用Truncate算法对空数据对象执行填充操作。Wherein, the filling the empty data object includes: performing a filling operation on the empty data object by using a Truncate algorithm.
一种精简卷设置装置,包括:A thin volume setting device, comprising:
指令接收模块,用于接收将精简卷转换为普通卷的设置指令;An instruction receiving module, configured to receive a setting instruction for converting a thin volume into an ordinary volume;
对象创建模块,用于根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象;An object creation module, configured to create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume;
填充模块,用于填充所述空数据对象,以使对所述精简卷剩余空间容量的操作直接在填充后的空数据对象上执行。A filling module, configured to fill the empty data object, so that operations on the remaining space capacity of the thin volume are directly performed on the filled empty data object.
其中,所述对象创建模块,包括:Wherein, the object creation module includes:
确定单元,用于确定所述精简卷的总空间容量及已使用空间容量;Determining a unit, used to determine the total space capacity and used space capacity of the thin volume;
计算单元,用于根据所述总空间容量及所述已使用空间容量,计算所述精简卷的剩余空间容量;a calculation unit, configured to calculate the remaining space capacity of the thin volume according to the total space capacity and the used space capacity;
创建单元,用于根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象。The creation unit is configured to create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume.
其中,所述创建单元具体用于根据所述精简卷的剩余空间容量,创建与所述精简卷的原数据对象相同命名方式的空数据对象。Wherein, the creation unit is specifically configured to create an empty data object named in the same manner as the original data object of the thin volume according to the remaining space capacity of the thin volume.
其中,所述填充模块具体用于利用Truncate算法对空数据对象执行填充操作。Wherein, the filling module is specifically configured to use the Truncate algorithm to perform filling operations on empty data objects.
一种精简卷设置设备,包括:A thin volume provisioning device comprising:
存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述精简卷设置方法的步骤。The memory is used to store the computer program; the processor is used to realize the steps of the above thin volume setting method when executing the computer program.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述精简卷设置方法的步骤。A computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above thin volume setting method are realized.
通过以上方案可知,本发明实施例提供的一种精简卷设置方法,包括:接收将精简卷转换为普通卷的设置指令;根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象;填充所述空数据对象,以使对所述精简卷剩余空间容量的操作直接在填充后的空数据对象上执行。It can be known from the above solutions that a method for setting a thin volume provided by an embodiment of the present invention includes: receiving a setting instruction to convert a thin volume into a normal volume; filling the empty data object, so that the operation on the remaining space capacity of the thin volume is directly performed on the filled empty data object.
可见,本方案接收到设置指令后,便会创建一个与精简卷具有关联的空数据对象,该空数据对象已被填充,占有存储空间,即该精简卷实质上已经转换为普通卷;因此,后续再对精简卷执行IO操作时,不需要分配空间,可直接对新创建的空数据对象执行对应操作。通过这种方式,就算整体存储用满,但是精简卷还是具有可用的剩余空间容量,不会出现超容量分配的情况。It can be seen that after receiving the setting instruction, this solution will create an empty data object associated with the thin volume. This empty data object has been filled and occupies storage space, that is, the thin volume has been converted into a normal volume in essence; therefore, When subsequent IO operations are performed on the thin volume, there is no need to allocate space, and the corresponding operations can be directly performed on the newly created empty data objects. In this way, even if the overall storage is full, the thin volume still has available free space capacity, and there will be no over-capacity allocation.
本发明还公开了一种精简卷设置装置、设备及计算机可读存储介质,同样能实现上述技术效果。The invention also discloses a thin volume setting device, equipment and computer-readable storage medium, which can also achieve the above-mentioned technical effects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例公开的一种精简卷设置方法结构示意图;FIG. 1 is a schematic structural diagram of a thin volume setting method disclosed in an embodiment of the present invention;
图2为本发明实施例公开的一种精简卷设置装置结构示意图。FIG. 2 is a schematic structural diagram of a thin volume setting device disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例公开了一种精简卷设置方法、装置、设备及计算机可读存储介质,以避免精简卷超容量分配,导致存储用满时精简卷无法执行IO操作。The embodiment of the present invention discloses a thin volume setting method, device, equipment and a computer-readable storage medium, so as to avoid excessive capacity allocation of the thin volume, causing the thin volume to be unable to perform IO operations when the storage is full.
参见图1,本发明实施例提供的一种精简卷设置方法,包括:Referring to Figure 1, a thin volume setting method provided by an embodiment of the present invention includes:
S101、接收将精简卷转换为普通卷的设置指令;S101. Receive a setting instruction for converting a thin volume into a normal volume;
具体的,本实施例中的设置指令,是用户触发的将精简卷设置为普通卷的动作,可包括开关或是指令,例如:开关主要是操作界面层的操作,只有ON/OFF的状态更改,而指令是指需要Linux命令行输入的指令。Specifically, the setting instruction in this embodiment is an action triggered by the user to set the thin volume as a normal volume, and may include a switch or an instruction, for example: the switch is mainly an operation of the operation interface layer, and only the state of ON/OFF is changed , and the command refers to the command that needs to be input from the Linux command line.
S102、根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象;S102. Create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume;
其中,根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象,包括:Wherein, according to the remaining space capacity of the thin volume, an empty data object associated with the thin volume is created, including:
确定所述精简卷的总空间容量及已使用空间容量;Determine the total space capacity and the used space capacity of the thin volume;
根据所述总空间容量及所述已使用空间容量,计算所述精简卷的剩余空间容量;calculating the remaining space capacity of the thin volume according to the total space capacity and the used space capacity;
根据所述精简卷的剩余空间容量,创建与所述精简卷的原数据对象相同命名方式的空数据对象。According to the remaining space capacity of the thin volume, create an empty data object named in the same manner as the original data object of the thin volume.
具体的,每一个精简卷在创建时,都是没有数据对象产生的,但是随着数据的写入,会产生数据对象,一般情况下每4M是一个对象。比如创建了一个10GB的精简卷,其实际容量只有0GB,这时向里面写1GB的数据,则产生了(1024MB/4MB)个对象,这时这个卷实际占用1GB空间。Specifically, when each thin volume is created, there is no data object generated, but as data is written, data objects will be generated, generally one object per 4M. For example, a 10GB thin volume is created, and its actual capacity is only 0GB. At this time, 1GB of data is written into it, and (1024MB/4MB) objects are generated. At this time, the volume actually occupies 1GB of space.
在本实施例中,创建空数据对象时,需要获取精简卷的总容量以及精简卷的已用容量,即总空间容量及已使用空间容量,通过计算得出精简卷的剩余空间容量;计算剩余空间容量的计算方式为:剩余空间容量=卷总容量-卷已用容量。可以理解是,在本实施例中只列举一种具体的获取剩余空间容量的方式,其他方式同样可以,例如:通过程序直接获取精简卷的剩余空间容量的方式等,在此并不具体限定。In this embodiment, when creating an empty data object, it is necessary to obtain the total capacity of the thin volume and the used capacity of the thin volume, that is, the total space capacity and the used space capacity, and calculate the remaining space capacity of the thin volume; The calculation method of space capacity is: remaining space capacity = total volume capacity - volume used capacity. It can be understood that, in this embodiment, only one specific method for obtaining the remaining space capacity is listed, and other methods are also possible, for example, a method of directly obtaining the remaining space capacity of the thin volume through a program, etc., which are not specifically limited here.
确定精简卷的剩余空间容量后,便可按照原精简卷的数据对象的命名方式以及卷的剩余空间创建空数据对象,即:新创建的空数据对象的命名方式为与原精简卷的数据对象的命名方式相同。通过这种命名方式,可以实现新创建的空数据对象与精简卷的关联关系,让新创建出的数据对象符合精简卷的查找规则,使其在后续对精简卷执行操作时可查找到新创建的数据对象。After determining the remaining space capacity of the thin volume, an empty data object can be created according to the naming method of the data object of the original thin volume and the remaining space of the volume, that is, the naming method of the newly created empty data object is the same as the data object of the original thin volume are named in the same way. Through this naming method, the association relationship between the newly created empty data object and the thin volume can be realized, so that the newly created data object complies with the search rules of the thin volume, so that it can find the newly created object when performing subsequent operations on the thin volume. data object.
S103、填充所述空数据对象,以使对所述精简卷剩余空间容量的操作直接在填充后的空数据对象上执行。S103. Fill the empty data object, so that operations on the remaining space capacity of the thin volume are directly performed on the filled empty data object.
其中,所述填充所述空数据对象,包括:利用Truncate算法对空数据对象执行填充操作。Wherein, the filling the empty data object includes: performing a filling operation on the empty data object by using a Truncate algorithm.
具体的,创建了空数据对象后,该空数据对象是没有容量,大小是0,为了让空数据对象占有存储空间,可以通过Truncate填充,将卷的剩余空间的逻辑容量填满。此时再去查看该卷,其性质就已经成为普通卷,也就是说原精简卷的总容量都被填满。需要说明的是,对空数据对象的填充,是为了将这部分空间先占用上,但实际没有数据,后续写数据时,可将这个数据对象进行覆盖写即可,这样填充后,精简卷的剩余空间就被看到了,也就不会再被管理员分配出去。Specifically, after an empty data object is created, the empty data object has no capacity and its size is 0. In order to allow the empty data object to occupy storage space, Truncate can be used to fill up the logical capacity of the remaining space of the volume. At this time, if you check the volume again, its nature has become a normal volume, that is to say, the total capacity of the original thin volume has been filled. It should be noted that the filling of the empty data object is to occupy this part of the space first, but there is no data in reality. When writing data later, this data object can be overwritten. After filling in this way, the volume will be reduced The remaining space is seen and will not be allocated by the administrator.
综上可以看出,在本实施例提供的一种精简卷设置方法,通过在分布式存储中,按照精简卷的对象的命名方式,在精简卷剩余容量中创建空对象,并将对象文件truncate,填充剩余空间,使精简卷的逻辑容量被填满(物理容量并未填满),为后续的IO预留空间。因为所创建的对象符合原精简卷对象的命名方式,所以后续的IO均是基于已经创建的对象进行覆盖写,从而防止精简卷卷写到一半而因为整体存储用满而不能再进行IO。To sum up, it can be seen that in the thin volume setting method provided in this embodiment, an empty object is created in the remaining capacity of the thin volume according to the naming method of the thin volume object in the distributed storage, and the object file is truncate , fill the remaining space, so that the logical capacity of the thin volume is filled (the physical capacity is not filled), and space is reserved for subsequent IO. Because the created object conforms to the naming method of the original thin volume object, the subsequent IO is overwritten based on the created object, so as to prevent the thin volume volume from being half written and unable to perform IO because the overall storage is full.
下面对本发明实施例提供的精简卷设置装置进行介绍,下文描述的精简卷设置装置与上文描述的精简卷设置方法可以相互参照。The thin volume setting device provided in the embodiment of the present invention is introduced below, and the thin volume setting device described below and the thin volume setting method described above may refer to each other.
参见图2,本发明实施例提供的一种精简卷设置装置,包括:Referring to Figure 2, a thin volume setting device provided by an embodiment of the present invention includes:
指令接收模块100,用于接收将精简卷转换为普通卷的设置指令;An instruction receiving module 100, configured to receive a setting instruction for converting a thin volume into an ordinary volume;
对象创建模块200,用于根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象;An object creation module 200, configured to create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume;
填充模块300,用于填充所述空数据对象,以使对所述精简卷剩余空间容量的操作直接在填充后的空数据对象上执行。The filling module 300 is configured to fill the empty data object, so that operations on the remaining space capacity of the thin volume are directly performed on the filled empty data object.
其中,所述对象创建模块,包括:Wherein, the object creation module includes:
确定单元,用于确定所述精简卷的总空间容量及已使用空间容量;Determining a unit, used to determine the total space capacity and used space capacity of the thin volume;
计算单元,用于根据所述总空间容量及所述已使用空间容量,计算所述精简卷的剩余空间容量;a calculation unit, configured to calculate the remaining space capacity of the thin volume according to the total space capacity and the used space capacity;
创建单元,用于根据所述精简卷的剩余空间容量,创建与所述精简卷具有关联的空数据对象。The creation unit is configured to create an empty data object associated with the thin volume according to the remaining space capacity of the thin volume.
其中,所述创建单元具体用于根据所述精简卷的剩余空间容量,创建与所述精简卷的原数据对象相同命名方式的空数据对象。Wherein, the creation unit is specifically configured to create an empty data object named in the same manner as the original data object of the thin volume according to the remaining space capacity of the thin volume.
其中,所述填充模块具体用于利用Truncate算法对空数据对象执行填充操作。Wherein, the filling module is specifically configured to use the Truncate algorithm to perform filling operations on empty data objects.
本发明实施例还提供一种精简卷设置设备,包括:The embodiment of the present invention also provides a thin volume setting device, including:
存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述精简卷设置方法实施例的步骤。The memory is used to store the computer program; the processor is used to implement the steps of the above embodiment of the thin volume setting method when executing the computer program.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述精简卷设置方法实施例的步骤。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above embodiments of the thin volume setting method are implemented.
其中,该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Wherein, the storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., which can store program codes. medium.
综上可以看出,在本实施例提供的一种精简卷设置装置、设备及计算机可读存储介质,可按照精简卷的对象的命名方式,在精简卷剩余容量中创建空对象,并将对象文件truncate,填充剩余空间。使精简卷的逻辑容量被填满(物理容量并未填满),为后续的IO预留空间。因为所创建的对象符合原精简卷对象的命名方式,所以后续的IO均是基于已经创建的对象进行覆盖写,从而防止精简卷卷写到一半而因为整体存储用满而不能再进行IO。To sum up, it can be seen that the thin volume setting device, equipment, and computer-readable storage medium provided in this embodiment can create empty objects in the remaining capacity of the thin volume according to the naming method of the thin volume objects, and store the objects File truncate, filling the remaining space. The logical capacity of the thin volume is filled (the physical capacity is not filled), and space is reserved for subsequent IO. Because the created object conforms to the naming method of the original thin volume object, the subsequent IO is overwritten based on the created object, so as to prevent the thin volume volume from being half written and unable to perform IO because the overall storage is full.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810689411.4A CN108874320A (en) | 2018-06-28 | 2018-06-28 | Simplification volume setting method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810689411.4A CN108874320A (en) | 2018-06-28 | 2018-06-28 | Simplification volume setting method, device, equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108874320A true CN108874320A (en) | 2018-11-23 |
Family
ID=64296363
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810689411.4A Pending CN108874320A (en) | 2018-06-28 | 2018-06-28 | Simplification volume setting method, device, equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108874320A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111176570A (en) * | 2019-12-27 | 2020-05-19 | 浪潮电子信息产业股份有限公司 | Thick backup roll creating method, device, equipment and medium |
| WO2021135284A1 (en) * | 2019-12-29 | 2021-07-08 | 浪潮电子信息产业股份有限公司 | Thick-provisioned volume creating method and apparatus, electronic device, and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102567215A (en) * | 2010-11-24 | 2012-07-11 | 微软公司 | Thin Provisioned Space Allocation |
| CN103631537A (en) * | 2013-11-29 | 2014-03-12 | 华为技术有限公司 | Method and device for managing virtual disk |
| CN103744622A (en) * | 2014-01-10 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for realizing asynchronous full allocation of automatic thin provisioning of storage system |
| US9558111B1 (en) * | 2010-09-27 | 2017-01-31 | EMC IP Holding Comapny LLC | Storage space reclaiming for virtual provisioning |
-
2018
- 2018-06-28 CN CN201810689411.4A patent/CN108874320A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9558111B1 (en) * | 2010-09-27 | 2017-01-31 | EMC IP Holding Comapny LLC | Storage space reclaiming for virtual provisioning |
| CN102567215A (en) * | 2010-11-24 | 2012-07-11 | 微软公司 | Thin Provisioned Space Allocation |
| CN103631537A (en) * | 2013-11-29 | 2014-03-12 | 华为技术有限公司 | Method and device for managing virtual disk |
| CN103744622A (en) * | 2014-01-10 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for realizing asynchronous full allocation of automatic thin provisioning of storage system |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111176570A (en) * | 2019-12-27 | 2020-05-19 | 浪潮电子信息产业股份有限公司 | Thick backup roll creating method, device, equipment and medium |
| CN111176570B (en) * | 2019-12-27 | 2021-07-16 | 浪潮电子信息产业股份有限公司 | A method, device, device and medium for creating a thick provisioned volume |
| WO2021135284A1 (en) * | 2019-12-29 | 2021-07-08 | 浪潮电子信息产业股份有限公司 | Thick-provisioned volume creating method and apparatus, electronic device, and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11714553B2 (en) | Namespaces allocation in non-volatile memory devices | |
| KR101930117B1 (en) | Volatile memory representation of nonvolatile storage device set | |
| US10635344B2 (en) | Dynamic spare storage allocation by creating logical volumes from unused space allocated for user data of a raid storage | |
| CN102255962B (en) | Distributive storage method, device and system | |
| JP5510556B2 (en) | Method and system for managing virtual machine storage space and physical hosts | |
| US9361034B2 (en) | Transferring storage resources between snapshot storage pools and volume storage pools in a distributed network | |
| JP4700459B2 (en) | Data processing system, data management method, and storage system | |
| US11262916B2 (en) | Distributed storage system, data processing method, and storage node | |
| US20130318134A1 (en) | Providing Storage Resources Upon Receipt of a Storage Service Request | |
| JP2011060119A (en) | Computer system performing capacity virtualization based on thin provisioning technology in both storage system and server computer | |
| CN110908609B (en) | Method, system and equipment for processing disk and readable storage medium | |
| CN109814805B (en) | Stripe reorganization method in storage system and stripe server | |
| JP2022034455A (en) | Computing system and method for management | |
| CN109960569B (en) | Virtualization processing method and device | |
| CN108874320A (en) | Simplification volume setting method, device, equipment and computer readable storage medium | |
| CN109739688B (en) | Snapshot resource space management method, device, and electronic device | |
| CN107544834A (en) | A kind of image file contraction method, device and machinable medium | |
| CN104426965B (en) | Self management storage method and system | |
| CN103744622B (en) | It is a kind of to realize the asynchronous method fully distributed of the automatic simplify configuration of storage system | |
| CN110809030A (en) | Network flow control method and device, coder-decoder and storage device | |
| US20190369897A1 (en) | Data management in a multitier storage system | |
| CN109324762A (en) | A construction method, device, device and storage medium for a storage system | |
| CN107728949A (en) | One kind simplifies volume test method, system, device and computer-readable storage medium automatically | |
| CN109002258A (en) | NameSpace distribution method, system and equipment and storage medium in solid state hard disk | |
| CN112269535A (en) | Space resource allocation method and device of storage system and readable storage medium |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |
|
| RJ01 | Rejection of invention patent application after publication |