CN103064793A - Method and system for thin provisioning capacity recovery - Google Patents

Method and system for thin provisioning capacity recovery Download PDF

Info

Publication number
CN103064793A
CN103064793A CN2013100248623A CN201310024862A CN103064793A CN 103064793 A CN103064793 A CN 103064793A CN 2013100248623 A CN2013100248623 A CN 2013100248623A CN 201310024862 A CN201310024862 A CN 201310024862A CN 103064793 A CN103064793 A CN 103064793A
Authority
CN
China
Prior art keywords
request
recovery
file
host stores
configuration 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.)
Granted
Application number
CN2013100248623A
Other languages
Chinese (zh)
Other versions
CN103064793B (en
Inventor
梁志诚
温源
张宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201310024862.3A priority Critical patent/CN103064793B/en
Publication of CN103064793A publication Critical patent/CN103064793A/en
Application granted granted Critical
Publication of CN103064793B publication Critical patent/CN103064793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a system for thin provisioning capacity recovery and relates to the field of computer application. The method and system solve the problem of capacity recovery of a storage system. The method includes: collecting a file system block needed to be deleted for a file deleting operation when a server executes the file deleting operation; and sending a recovery request to a mainframe storage system by the server after the file deleting operation is completed to request the mainframe storage system for space recovery. The method and the system for thin provisioning capacity recovery are suitable for storage systems, and storage space recovery under control of file systems is realized.

Description

Simplify configuration capacity recovery method and system
Technical field
The present invention relates to computer application field, relate in particular to a kind of configuration capacity recovery method and system of simplifying.
Background technology
At present a lot of storage systems are all supported thin provisioning, automatically simplifying part the most key in the configuration is storage pool space allocation and recovery, why this part important be because these d/d storage spaces can be re-used as internal memory, increase the service efficiency of storage space, reduced the waste of resource.
Can reference for the storage mode of DAS: accompanying drawing 1.The configuration capacity of automatically simplifying for DAS reclaims, and the problem that mainly faces is: after the file system deletion data, how to notify the storage system of bottom to carry out the recovery of capacity.
Summary of the invention
Embodiments of the invention provide a kind of configuration capacity recovery method and system of simplifying, and have solved the problem that the storage system capacity reclaims.
A kind of configuration capacity recovery method of simplifying comprises:
When server is carried out delete file operation, collect the file system blocks of the required deletion of this delete file operation;
After delete file operation finished, described server sent the request of recovery to the host stores system, asked described host stores system to carry out space reclamation.
Preferably, described host stores system possesses the storage pool that capacity reclaims function.
Preferably, described recovery request is specially the IO 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 the recovery request to the host stores 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, and the number equipment of the logical block of request is the number of the logical block that occupies in file system of file that file system is deleted.
Preferably, described after delete file operation finishes, described server sends the request of recovery to the host stores system, asks described host stores system to carry out also comprising after the step of space reclamation:
The host stores system receives described recovery request, carries out the recovery of storage pool space.
The present invention also provides a kind of configuration capacity retracting device of simplifying, and comprising:
File system module is used for collecting the file system blocks of the required deletion of this delete file operation when server is carried out delete file operation;
The generic block EM equipment module is used for sending the request of recovery to the host stores system after delete file operation finishes, and asks described host stores system to carry out space reclamation.
Preferably, the above-mentioned configuration capacity retracting device of simplifying also comprises:
Simplify the pond module, be used for receiving described recovery request, carry out the recovery of storage pool space.
The invention provides a kind of configuration capacity recovery method and system of simplifying, when server is carried out delete file operation, collect the file system blocks of the required deletion of this delete file operation, after delete file operation finishes, described server sends the request of recovery to the host stores system, ask described host stores system to carry out space reclamation, realized that the lower storage space of file system control reclaims, and has solved the problem of storage system capacity recovery.
Description of drawings
Fig. 1 is DAS memory topology synoptic diagram;
Fig. 2 is a kind of structural representation of simplifying the configuration capacity retracting device that embodiments of the invention one provide;
Fig. 3 is a kind of process flow diagram of simplifying the configuration capacity recovery method that embodiments of the invention two provide.
Embodiment
Can reference for the storage mode of DAS: accompanying drawing 1.The configuration capacity of automatically simplifying for DAS reclaims, and the problem that mainly faces is: after the file system deletion data, how to notify the storage system of bottom to carry out the recovery of capacity.
In order to address the above problem, embodiments of the invention provide a kind of configuration capacity recovery method and device of simplifying, type is processed in the new request of definition between file system and host stores system: reclaim request (being DISCARD), system sends the DISCARD request when the backward host stores of host file system deletion data, and the host stores system carries out space reclamation according to the information that request is carried.
Hereinafter in connection with accompanying drawing embodiments of the invention are elaborated.Need to prove that in the situation of not conflicting, the embodiment among the application and the feature among the embodiment be combination in any mutually.
At first by reference to the accompanying drawings, embodiments of the invention one are described.
The embodiment of the invention provides a kind of configuration capacity recovery system of simplifying, and this system architecture comprises as shown in Figure 2:
File system module 201, generic block EM equipment module 202, simplify pond (Thin-Pool is designated hereinafter simply as TP) module 203(and be specially and possess distribution according to need, capacity reclaims the storage pool of function).
File system module 201 is used for collecting the file system blocks of the required deletion of this delete file operation when server is carried out delete file operation;
Generic block EM equipment module 202 is used for sending the request of recovery to the host stores system after delete file operation finishes, and asks described host stores system to carry out space reclamation.
Preferably, TP module 203 is used for receiving described recovery request, carries out the recovery of storage pool space.
Automatically simplifying in the configuration-system, owing to be that file system module is in the recovery that triggers the space, TP module 203 is carried out space reclamation again, therefore need to set up the communication mechanism between a kind of file system and the TP module 203, and realization file system layer notice TP module 203 is carried out the recovery in space.In the embodiment of the invention, solicit operation type to existing generic block equipment support is made expansion, define new request type: reclaim request (REQ_DISCARD), and providing call back function for host file system, the IO solicited message is filled in acting as of call back function: the number of the logical block start address of request type (being specially the request type marker bit), request, the logical block of request.When host deletes file, host file system is called the call back function that the generic block EM equipment module provides, the IO solicited message of filling: the number of the logical block start address of request type, request, the logical block of request, the request type mark position is DISCARD.Generic block EM equipment module 202 will be transmitted to TP module 203 from file system DISCARD request as a passage.
File system module 201, when the client user carries out delete file operation, file system is collected the file system block message that institute's deleted file takies, (determination methods is as follows: the read request data volume that the generic block EM equipment module is transmitted in the unit interval for IO pressure by judging current storage system, the write request data volume, space reclamation request data quantity and user expect that setting value makes comparisons, surpass user's setting value and think that then 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 satisfy to send the DISCARD request condition (when the IO of block device layer pressure less than the expection setting value, perhaps the storage pool active volume of TP module is lower than the expection setting value) time, file system is according to the file system block message of collecting, the call back function that calling the 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, the request of will reclaiming sends to generic block EM equipment module 202.
TP module 203, after receiving the request of recovery, whether the marker bit REQ_DISCARD that judges appointment in the request type arranges, if arrange, illustrate that then this request type is the DISCARD request, TP module 203 can be carried out space reclamation according to the logical block start address of carrying in the request, the information of number of logical block.
Preferably, but the configuration capacity recovery system installation portion of simplifying that the embodiment of the invention relates to be deployed on the server.
Below in conjunction with accompanying drawing, embodiments of the invention two are described.
The embodiment of the invention provides a kind of configuration capacity recovery method of simplifying, and in conjunction with the configuration capacity recovery system of simplifying shown in Figure 2, finishes flow process that storage space reclaims as shown in Figure 3, comprising:
Step 301, when server is carried out delete file operation, collect the file system blocks of the required deletion of this delete file operation;
In this step, when the user when server is carried out deleted file, file system is automatically simplified the configuration space piece and is reclaimed the collection task, and the file system blocks of needs deletion is collected.
Step 302, after delete file operation finishes, described server sends the request of recovery to the host stores system, asks described host stores system to carry out space reclamation;
In this step, the call back function that file system module calls the generic block mechanical floor to be provided sends DISCARD and asks to the generic block mechanical floor; The generic block mechanical floor is received after the request, and request is transmitted to the TP module.
Preferably, described host stores system possesses the storage pool that capacity reclaims function.
Preferably, described recovery request is specially the IO 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 the recovery request to the host stores 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, and the number equipment of the logical block of request is the number of the logical block that occupies in file system of file that file system is deleted.
Step 303, host stores system receive described recovery request, carry out the recovery of storage pool space;
In this step, the recovery of storage pool space is carried out in TP module reception ﹠ disposal DISCARD request.
Embodiments of the invention provide a kind of configuration capacity recovery method and system of simplifying, when server is carried out delete file operation, collect the file system blocks of the required deletion of this delete file operation, after delete file operation finishes, described server sends the request of recovery to the host stores system, ask described host stores system to carry out space reclamation, realized that the lower storage space of file system control reclaims, and has solved the problem of storage system capacity recovery.By expanding universal block device layer request type, increase new definition REQ_DISCARD, defined a kind of space reclamation communication mechanism, existing generic block EM equipment module is made simple extension, namely solved and automatically simplified communication mechanism problem in the configuration recovery, realized automatically simplifying configuration space and reclaim.
The all or part of step that one of ordinary skill in the art will appreciate that above-described embodiment can realize with the computer program flow process, described computer program can be stored in the computer-readable recording medium, described computer program (such as system, unit, device etc.) on corresponding hardware platform is carried out, when carrying out, comprise step of embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment can realize with integrated circuit that also these steps can be made into respectively one by one integrated circuit modules, perhaps a plurality of modules in them or step is made into the single integrated circuit module and realizes.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, they can concentrate on the single calculation element, also can be distributed on the network that a plurality of calculation elements form.
Each device/functional module/functional unit in above-described embodiment is realized with the form of software function module and during as independently production marketing or use, can be stored in the computer read/write memory medium.The above-mentioned computer read/write memory medium of mentioning 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, can expect easily changing or replacing, 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 described protection domain of claim.

Claims (8)

1. simplify the configuration capacity recovery method for one kind, it is characterized in that, comprising:
When server is carried out delete file operation, collect the file system blocks of the required deletion of this delete file operation;
After delete file operation finished, described server sent the request of recovery to the host stores system, asked described host stores system to carry out space reclamation.
2. the configuration capacity recovery method of simplifying according to claim 1 is characterized in that, described host stores system possesses the storage pool that capacity reclaims function.
3. the configuration capacity recovery method of simplifying according to claim 1 is characterized in that, described recovery request is specially the IO request REQ_DISCARD message of expansion.
4. the configuration capacity recovery method of simplifying according to claim 1 is characterized in that, described recovery request comprises following content:
The number of the logical block start address of request type, request, the logical block of request.
5. the configuration capacity recovery method of simplifying according to claim 4, it is characterized in that, when described server sends the recovery request to the host stores 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, and the number equipment of the logical block of request is the number of the logical block that occupies in file system of file that file system is deleted.
6. the configuration capacity recovery method of simplifying according to claim 1, it is characterized in that described after delete file operation finishes, described server sends the request of recovery to the host stores system, ask described host stores system to carry out also comprising after the step of space reclamation:
The host stores system receives described recovery request, carries out the recovery of storage pool space.
7. simplify the configuration capacity retracting device for one kind, it is characterized in that, comprising:
File system module is used for collecting the file system blocks of the required deletion of this delete file operation when server is carried out delete file operation;
The generic block EM equipment module is used for sending the request of recovery to the host stores system after delete file operation finishes, and asks described host stores system to carry out space reclamation.
8. the configuration capacity retracting device of simplifying according to claim 7 is characterized in that this device also comprises:
Simplify the pond module, be used for receiving described recovery request, carry out the recovery of storage pool space.
CN201310024862.3A 2013-01-23 2013-01-23 Simplify configuration capacity recovery method and system Active CN103064793B (en)

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 true CN103064793A (en) 2013-04-24
CN103064793B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345417A (en) * 2013-06-06 2013-10-09 华为技术有限公司 Method and device for recovering storage space
CN110502453A (en) * 2019-08-16 2019-11-26 北京浪潮数据技术有限公司 A kind of memory 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 (6)

* Cited by examiner, † Cited by third party
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
US20100082715A1 (en) * 2008-09-30 2010-04-01 Karl Dohm Reduced-Resource Block Thin Provisioning
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
US20120271870A1 (en) * 2011-04-22 2012-10-25 Symantec Corporation Method and system for reclaiming storage on a shared storage device or independent of the mount state of a file system

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
US20100082715A1 (en) * 2008-09-30 2010-04-01 Karl Dohm Reduced-Resource Block Thin Provisioning
CN101986284A (en) * 2010-11-04 2011-03-16 华中科技大学 Dynamic recovery system for waste space of virtual machine image file
US20120271870A1 (en) * 2011-04-22 2012-10-25 Symantec Corporation Method and system for reclaiming storage on a shared storage device or independent of the mount state of a file system
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345417A (en) * 2013-06-06 2013-10-09 华为技术有限公司 Method and device for recovering storage space
CN110502453A (en) * 2019-08-16 2019-11-26 北京浪潮数据技术有限公司 A kind of memory space recovery method and device
CN112765046A (en) * 2019-10-21 2021-05-07 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for reclaiming storage space

Also Published As

Publication number Publication date
CN103064793B (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN103984641B (en) A kind of memory space recovery method and its device based on simplify configuration technology
CN106357811B (en) A kind of delet method of Backup Data, apparatus and system
CN101980192B (en) Object-based cluster file system management method and cluster file system
CN105739924A (en) Cache cluster-based cache method and system
CN103138912B (en) Method of data synchronization and system
CN102402441B (en) System and method for configuring multiple computers
CN108197270B (en) Distributed file system data recovery method
CN102195815B (en) Network management method and device
CN108337315B (en) Dispositions method, device, computer equipment and the storage medium of monitoring system
CN103049327A (en) Method and device for mounting many storage devices on android system
CN106445414A (en) Available memory space extension method and available memory space extension system of terminal equipment
CN104023058A (en) Method and system for managing and allocating storage resources
CN102317914A (en) Methods, system and devices for managing virtual resources
CN103874051A (en) Internet of Things preset resource processing method and device
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN110399171A (en) A kind of hard disk management method, system and associated component
CN103064793B (en) Simplify configuration capacity recovery method and system
CN104516795A (en) Data access method and system
CN101516100B (en) Measuring collocation method, device and system
CN113885798A (en) Data operation method, device, equipment and medium
CN117290292A (en) Capacity expansion method, system and storage medium of file system inode
CN108959614A (en) A kind of snapshot management method, system, device, equipment and readable storage medium storing program for executing
CN110519346B (en) Data switching method, terminal, server and computer readable storage medium
CN111917588A (en) Edge device management method, device, edge gateway device and storage medium

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