CN103064793B - Simplify configuration capacity recovery method and system - Google Patents
Simplify configuration capacity recovery method and system Download PDFInfo
- Publication number
- CN103064793B CN103064793B CN201310024862.3A CN201310024862A CN103064793B CN 103064793 B CN103064793 B CN 103064793B CN 201310024862 A CN201310024862 A CN 201310024862A CN 103064793 B CN103064793 B CN 103064793B
- Authority
- CN
- China
- Prior art keywords
- request
- recovery
- storage system
- file
- file system
- 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.)
- Active
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 53
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000003860 storage Methods 0.000 claims abstract description 63
- 238000004883 computer application Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides one and simplify configuration capacity recovery method and system.Relate to computer application field; Solve the problem that storage system capacity reclaims.The method comprises: when server performs delete file operation, collects the required file system blocks of deleting of this delete file operation; After delete file operation terminates, described server sends to host storage system the request of recovery, asks described host storage system to carry out space reclamation.Technical scheme provided by the invention is applicable to storage system, and the storage space achieved under file system control reclaims.
Description
Technical field
The present invention relates to computer application field, particularly relate to one and simplify configuration capacity recovery method and system.
Background technology
A lot of storage system all supports thin provisioning at present, automatically simplifying part the most key in configuration is storage pool space allocation and recovery, why this part is important is because these d/d storage spaces can be re-used as internal memory, add the service efficiency of storage space, reduce the waste of resource.
Storage mode for DAS can reference: accompanying drawing 1.Configuration capacity of automatically simplifying for DAS reclaims, and main problems faced is: how file system notifies that the storage system of bottom carries out the recovery of capacity after deleting data.
Summary of the invention
The embodiment provides one and simplify configuration capacity recovery method and system, solve the problem that storage system capacity reclaims.
One simplifies configuration capacity recovery method, comprising:
When server performs delete file operation, collect the required file system blocks of deleting of this delete file operation;
After delete file operation terminates, described server sends to host storage system the request of recovery, asks described host storage system to carry out space reclamation.
Preferably, described host storage system is possess the storage pool that capacity reclaims function.
Preferably, the described request of reclaiming is specially the I/O request REQ_DISCARD message of expansion.
Preferably, described recovery request comprises following content:
The number of the logical block start address of request type, request, the logical block of request.
Preferably, when described server sends recovery request to host storage system, request type is set to DISCARD, the logical block start address of request is set to the start address of file in file system that file system is deleted, the number of the logical block that the number equipment of the logical block of request occupies in file system for file that file system is deleted.
Preferably, described after delete file operation terminates, described server sends to host storage system the request of recovery, asks after described host storage system carries out the step of space reclamation, also to comprise:
Host storage system receives described recovery request, carries out the recovery of storage pool space.
Present invention also offers one and simplify configuration capacity retracting device, comprising:
File system module, for when server performs delete file operation, collects the required file system blocks of deleting of this delete file operation;
Generic block EM equipment module, for after delete file operation terminates, sends to host storage system the request of recovery, asks described host storage system to carry out space reclamation.
Preferably, above-mentioned configuration capacity retracting device of simplifying also comprises:
Simplifying pond module, for receiving described recovery request, carrying out the recovery of storage pool space.
The invention provides one and simplify configuration capacity recovery method and system, when server performs delete file operation, collect the required file system blocks of deleting of this delete file operation, after delete file operation terminates, described server sends to host storage system the request of recovery, ask described host storage system to carry out space reclamation, the storage space achieved under file system control reclaims, and solves the problem that storage system capacity reclaims.
Accompanying drawing explanation
Fig. 1 is DAS memory topology schematic diagram;
Fig. 2 is a kind of structural representation of simplifying configuration capacity retracting device that embodiments of the invention one provide;
Fig. 3 is a kind of process flow diagram of simplifying configuration capacity recovery method that embodiments of the invention two provide.
Embodiment
Storage mode for DAS can reference: accompanying drawing 1.Configuration capacity of automatically simplifying for DAS reclaims, and main problems faced is: how file system notifies that the storage system of bottom carries out the recovery of capacity after deleting data.
In order to solve the problem, The embodiment provides one and simplify configuration capacity recovery method and device, new request process type is defined: reclaim request (i.e. DISCARD) between file system and host storage system, after host file system deletes data, send DISCARD request to host storage system, host storage system carries out space reclamation according to asking the information of carrying.
Hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
First by reference to the accompanying drawings, embodiments of the invention one are described.
Embodiments provide one and simplify configuration capacity recovery system, this system architecture as shown in Figure 2, comprising:
File system module 201, generic block EM equipment module 202, simplify pond (Thin-Pool, hereinafter referred to as TP) module 203(is specially and possess distribution according to need, capacity reclaims the storage pool of function).
File system module 201, for when server performs delete file operation, collects the required file system blocks of deleting of this delete file operation;
Generic block EM equipment module 202, for after delete file operation terminates, sends to host storage system the request of recovery, asks described host storage system to carry out space reclamation.
Preferably, TP module 203, for receiving described recovery request, carries out the recovery of storage pool space.
Automatically simplifying in configuration-system, owing to being the recovery of file system module at trigger either spatial, TP module 203 performs space reclamation again, therefore needs to set up the communication mechanism between a kind of file system and TP module 203, realizes the recovery that file system layer notice TP module 203 carries out space.In the embodiment of the present invention, expansion is made to the solicit operation type of existing generic block equipment support, define new request type: reclaim request (REQ_DISCARD), and providing call back function for host file system, I/O request information is filled in acting as of call back function: the number of request type (being specially request type marker bit), the logical block start address of request, the logical block of request.When host deletes file, host file system calls the call back function that generic block EM equipment module provides, the I/O request information of filling: the number of the logical block start address of request type, request, the logical block of request, request type mark position is DISCARD.Generic block EM equipment module 202, will from file system DISCARD request forward to TP module 203 as a passage.
File system module 201, when client user performs delete file operation, file system collects the file system block message that institute's deleted file takies, by judging the IO pressure of current storage system, (determination methods is as follows: the read request data volume that in the unit interval, generic block EM equipment module forwards, write request data volume, space reclamation request data quantity and user expect that setting value is made comparisons, exceed user's setting value and then think that current storage system IO pressure is excessive), the call back function that determining whether call generic block EM equipment module 202 provides sends DISCARD asks to TP module 203.When satisfied transmission DISCARD request condition is (when the IO pressure of block device layer is less than expection setting value, or the storage pool active volume of TP module is lower than expection setting value) time, file system is according to the file system block message collected, the call back function that calling generic block EM equipment module provides is filled: the number of the logical block start address of request type, request, the logical block of request, sends to generic block EM equipment module 202 by recovery request.
TP module 203, after receiving the request of recovery, judge whether the marker bit REQ_DISCARD specified in request type is arranged, if arranged, then illustrate that this request type is DISCARD request, TP module 203 can carry out space reclamation according to the information of number of the logical block start address of carrying in request, logical block.
Preferably, configuration capacity recovery system that what the embodiment of the present invention related to simplify can installation and deployment on the server.
Below in conjunction with accompanying drawing, embodiments of the invention two are described.
Embodiments provide one and simplify configuration capacity recovery method, shown in composition graphs 2, simplify configuration capacity recovery system, complete flow process that storage space reclaims as shown in Figure 3, comprising:
Step 301, when server performs delete file operation, collect the required file system blocks of deleting of this delete file operation;
In this step, when user performs deleted file on the server, file system is automatically simplified configuration space block and is reclaimed collection task, collects needing the file system blocks of deleting.
Step 302, after delete file operation terminates, described server to host storage system send reclaim request, ask described host storage system to carry out space reclamation;
In this step, the call back function that file system module calls generic block mechanical floor to be provided sends DISCARD asks to generic block mechanical floor; After generic block mechanical floor receives request, by request forward to TP module.
Preferably, described host storage system is possess the storage pool that capacity reclaims function.
Preferably, the described request of reclaiming is specially the I/O request REQ_DISCARD message of expansion.
Preferably, described recovery request comprises following content:
The number of the logical block start address of request type, request, the logical block of request.
Preferably, when described server sends recovery request to host storage system, request type is set to DISCARD, the logical block start address of request is set to the start address of file in file system that file system is deleted, the number of the logical block that the number equipment of the logical block of request occupies in file system for file that file system is deleted.
Step 303, host storage system receive described recovery request, carry out the recovery of storage pool space;
In this step, TP module receives process DISCARD request, carries out the recovery of storage pool space.
The embodiment provides one and simplify configuration capacity recovery method and system, when server performs delete file operation, collect the required file system blocks of deleting of this delete file operation, after delete file operation terminates, described server sends to host storage system the request of recovery, ask described host storage system to carry out space reclamation, the storage space achieved under file system control reclaims, and solves the problem that storage system capacity reclaims.By expanding universal block device layer request type, increase new definition REQ_DISCARD, define a kind of space reclamation communication mechanism, simple extension is made to existing generic block EM equipment module, namely solve and automatically simplify communication mechanism problem in configuration recovery, realize automatically simplifying configuration space and reclaim.
One of ordinary skill in the art will appreciate that all or part of step of above-described embodiment can use computer program flow process to realize, described computer program can be stored in a computer-readable recording medium, described computer program (as system, unit, device etc.) on corresponding hardware platform performs, when performing, step comprising embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment also can use integrated circuit to realize, and these steps can be made into integrated circuit modules one by one respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation element to realize, and they can concentrate on single calculation element, also can be distributed on network that multiple calculation element forms.
Each device/functional module/functional unit in above-described embodiment using the form of software function module realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.The above-mentioned computer read/write memory medium mentioned can be ROM (read-only memory), disk or CD etc.
Anyly be familiar with those skilled in the art in the technical scope that the present invention discloses, change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain described in claim.
Claims (3)
1. simplify a configuration capacity recovery method, it is characterized in that, expansion is made to the solicit operation type of generic block equipment support, defines new request type: reclaim request REQ_DISCARD, comprising:
When server performs delete file operation, collect the required file system blocks of deleting of this delete file operation;
After delete file operation terminates, described server sends to host storage system the request of recovery, asks described host storage system to carry out space reclamation; Described recovery request comprises following content: the number of the logical block start address of request type, request, the logical block of request; When described server sends recovery request to host storage system, request type is set to DISCARD, the logical block start address of request is set to the start address of file in file system that file system is deleted, the number of the logical block that the number equipment of the logical block of request occupies in file system for file that file system is deleted;
Host storage system receives described recovery request, carries out the recovery of storage pool space.
2. according to claim 1ly simplify configuration capacity recovery method, it is characterized in that, described host storage system is possess the storage pool that capacity reclaims function.
3. adopt simplify configuration capacity recovery method as claimed in claim 1 simplify a configuration capacity retracting device, it is characterized in that, comprising:
File system module, for when server performs delete file operation, collects the required file system blocks of deleting of this delete file operation;
Generic block EM equipment module, for after delete file operation terminates, sends to host storage system the request of recovery, asks described host storage system to carry out space reclamation;
Simplifying pond module, for receiving described recovery request, carrying out the recovery of storage pool space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310024862.3A CN103064793B (en) | 2013-01-23 | 2013-01-23 | Simplify configuration capacity recovery method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310024862.3A CN103064793B (en) | 2013-01-23 | 2013-01-23 | Simplify configuration capacity recovery method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103064793A CN103064793A (en) | 2013-04-24 |
CN103064793B true CN103064793B (en) | 2015-10-28 |
Family
ID=48107425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310024862.3A Active CN103064793B (en) | 2013-01-23 | 2013-01-23 | Simplify configuration capacity recovery method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103064793B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345417A (en) * | 2013-06-06 | 2013-10-09 | 华为技术有限公司 | Method and device for recovering storage space |
CN110502453B (en) * | 2019-08-16 | 2022-03-22 | 北京浪潮数据技术有限公司 | Storage space recovery method and device |
CN112765046A (en) * | 2019-10-21 | 2021-05-07 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer program product for reclaiming storage space |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013996A (en) * | 2007-02-16 | 2007-08-08 | 华为技术有限公司 | Block storage service method, block storage service system and block storage service client |
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN102591789A (en) * | 2011-12-26 | 2012-07-18 | 成都市华为赛门铁克科技有限公司 | Storage space recovery method and storage space recovery device |
CN102685219A (en) * | 2012-04-27 | 2012-09-19 | 浪潮电子信息产业股份有限公司 | Method for increasing use ratio of storage resources through dynamic expansion in SAN storage system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100082715A1 (en) * | 2008-09-30 | 2010-04-01 | Karl Dohm | Reduced-Resource Block Thin Provisioning |
US8954435B2 (en) * | 2011-04-22 | 2015-02-10 | Symantec Corporation | Method and system for reclaiming storage on a shared storage device or independent of the mount state of a file system |
-
2013
- 2013-01-23 CN CN201310024862.3A patent/CN103064793B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013996A (en) * | 2007-02-16 | 2007-08-08 | 华为技术有限公司 | Block storage service method, block storage service system and block storage service client |
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN102591789A (en) * | 2011-12-26 | 2012-07-18 | 成都市华为赛门铁克科技有限公司 | Storage space recovery method and storage space recovery device |
CN102685219A (en) * | 2012-04-27 | 2012-09-19 | 浪潮电子信息产业股份有限公司 | Method for increasing use ratio of storage resources through dynamic expansion in SAN storage system |
Also Published As
Publication number | Publication date |
---|---|
CN103064793A (en) | 2013-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103984641B (en) | A kind of memory space recovery method and its device based on simplify configuration technology | |
CN110311831B (en) | Container cloud-based system resource monitoring method and related equipment | |
CN103678337B (en) | Data clearing method, apparatus and system | |
CN104461744A (en) | Resource allocation method and device | |
CN101673243B (en) | Data storage device and method | |
CN101673192B (en) | Method for time-sequence data processing, device and system therefor | |
CN102262591B (en) | Garbage collection method and system for memory copy system | |
CN109582213B (en) | Data reconstruction method and device and data storage system | |
CN102195815B (en) | Network management method and device | |
CN110633325B (en) | Docker-based database cluster capacity expansion method and device | |
CN106919346A (en) | A kind of shared Storage Virtualization implementation method based on CLVM | |
CN101221485A (en) | Method for establishing redundant magnetic disk array and control device thereof | |
CN105095495B (en) | A kind of distributed file system buffer memory management method and system | |
CN104023058A (en) | Method and system for managing and allocating storage resources | |
CN102685245A (en) | Method and system for data social contact storage based on internet | |
CN102868727A (en) | Method for realizing high availability of logical volume | |
CN103064793B (en) | Simplify configuration capacity recovery method and system | |
CN105357042A (en) | High-availability cluster system, master node and slave node | |
CN103607429A (en) | Cloud computing service realization method and system thereof | |
CN104753992A (en) | Method, device and system for data storage and method and device for virtual platform failure recovery | |
CN104793981A (en) | Online snapshot managing method and device for virtual machine cluster | |
CN101937378A (en) | Method for carrying out back-up protection on data of storage equipment and computer system | |
CN113885798A (en) | Data operation method, device, equipment and medium | |
CN101516100B (en) | Measuring collocation method, device and system | |
CN108959614A (en) | A kind of snapshot management method, system, device, equipment and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |