CN109491598A - A kind of delet method and device of logical volume - Google Patents
A kind of delet method and device of logical volume Download PDFInfo
- Publication number
- CN109491598A CN109491598A CN201811223456.9A CN201811223456A CN109491598A CN 109491598 A CN109491598 A CN 109491598A CN 201811223456 A CN201811223456 A CN 201811223456A CN 109491598 A CN109491598 A CN 109491598A
- Authority
- CN
- China
- Prior art keywords
- volume
- target
- target logic
- logical volume
- recycle bin
- 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; CALCULATING OR 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/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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)
- 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
The embodiment of the invention discloses a kind of delet method of logical volume and devices, this method comprises: volume identification, erasing time and the logical volume for obtaining target logic volume recycle station identifications in response to the delete operation rolled up to target logic;Station identifications are recycled according to the volume identification of target logic volume, erasing time and logical volume, generates and saves target logic and roll up corresponding target recycle bin index;The deleted marker that target logic volume is arranged is deletion state, and target logic volume is hidden in storage pool to realize.In this way, without replicating, migrating the logical volume to be deleted, by way of establishing recycle bin index, realization that can be easy deletes logical volume to logical volume recycle bin, rather than directly carry out permanent deletion, possibility is provided to restore the deleted logical volume, is effectively avoided since accidentally the operations such as deletion lead to the risk that data are permanently lost in logical volume, to greatly improve the safety and reliability using distributed block storage system storing data.
Description
Technical field
The present invention relates to technical field of distributed memory, more particularly to the delet method and device of a kind of logical volume.
Background technique
Currently, the block storage service provided in distributed memory system, can store data in logical volume (English:
Logical Volume) on.Wherein, logical volume is the virtual disk formed by logic magnetic disc, alternatively referred to as disk partition, is
A kind of disk management mode of Windows system, it is therefore an objective to hard drive space is jumped out from the way to manage of physical hard disk, into
Row more easily unified management distribution.Such as: the hard disk of 8GB and the hard disk of a 20GB, it is desirable to be divided into a 12GB and
Two Logical Disks of one 16GB can be realized by the way to manage of logical volume.
The block storage service provided in distributed memory system has the advantage that first, can be by cheap hard of muti-piece
Disk combines, and becomes the Logical Disk of a large capacity, externally flexible to provide the service of large capacity;The second, due to being muti-piece
The Logical Disk that disk combination comes out, can be written in parallel to several pieces of disks when data are written, improve read-write efficiency;Third,
The division of logical volume is carried out to physical disk due to having passed through, therefore, improve the reliability of data storage.Based on so many excellent
Gesture, the block storage service that distributed memory system improves can be used more widely.
But after deleting some logical volume in block storage system, it is meant that the number stored in the logical volume
It loses, can not be restored according to permanent, it is most likely that occur leading to the risk of loss of data due to maloperation.
Summary of the invention
Above-mentioned in order to solve, the present invention provides a kind of delet method of logical volume and devices, so that even if having occurred
The delete operation of logical volume, also can be by the deleted logical volume in the logical volume recycle bin of the distributed block storage system
Retain, provide possibility to restore the deleted logical volume, effectively avoids since accidentally the operations such as deletion cause in logical volume
The risk that data are permanently lost, thus greatly improve using distributed block storage system storing data safety and can
By property.
In a first aspect, providing a kind of delet method of logical volume, comprising:
In response to the delete operation rolled up to target logic, obtains the volume identification of the target logic volume, erasing time and patrol
It collects rollback and receives station identifications;
Station identifications are recycled according to the volume identification of target logic volume, erasing time and the logical volume, generates and saves
The target logic rolls up corresponding target recycle bin index;
The deleted marker that the target logic volume is arranged is deletion state, to realize that hiding the target in storage pool patrols
Collect volume.
Optionally, the target recycle bin index is generated also according to the version number that the target logic is rolled up.
Optionally, the target recycle bin index is generated also according to the removing mark that the target logic is rolled up.
Optionally, the target recycle bin index is also according to the corresponding default clearance time of the logical volume recycle bin
It generates.
Optionally, if the erasing time is also without the default clearance time, in response to the target logic
The recovery operation of volume, it is not delete state that the deleted marker, which is arranged, and the target logic volume is shown in storage pool to realize,
And delete the target recycle bin index.
Optionally, if the erasing time passes through the default clearance time, start target logic described in complete deletion
Data in volume, and the mark of the removing in the target recycle bin index is modified, so that described in removing mark expression
Target logic volume is that can not be resumed state.
Optionally, if the data in target logic volume delete the target recycle bin index by complete deletion.
Second aspect additionally provides a kind of deletion device of logical volume, comprising:
Acquiring unit, for the delete operation in response to being rolled up to target logic, obtain the target logic volume volume identification,
Erasing time and logical volume recycle station identifications;
Generation unit, volume identification, erasing time and the logical volume recycle bin mark for being rolled up according to the target logic
Know, generates and save the target logic and roll up corresponding target recycle bin index;
Setting unit, the deleted marker for the target logic volume to be arranged is deletion state, to realize in storage pool
Hide the target logic volume.
Optionally, the target recycle bin index is generated also according to the version number that the target logic is rolled up.
Optionally, the target recycle bin index is generated also according to the removing mark that the target logic is rolled up.
Optionally, the target recycle bin index is also according to the corresponding default clearance time of the logical volume recycle bin
It generates.
Optionally, the device further include:
Recovery unit, if for the erasing time also without the default clearance time, in response to the mesh
The recovery operation for marking logical volume, it is not delete state that the deleted marker, which is arranged, and the target is shown in storage pool to realize
Logical volume, and delete the target recycle bin index.
Optionally, the device further include:
Unit is deleted, if passing through the default clearance time for the erasing time, start mesh described in complete deletion
The data in logical volume are marked, and modify the mark of the removing in the target recycle bin index, so that the removing identifies table
Show the target logic volume for state can not be resumed.
Optionally, the deletion unit, if the data being also used in the target logic volume delete institute by complete deletion
State target recycle bin index.
In embodiments of the present invention, a kind of delet method of logical volume is provided, this method comprises: in response to patrolling target
The delete operation for collecting volume obtains volume identification, erasing time and the logical volume recycling station identifications of the target logic volume;According to described
Volume identification, erasing time and the logical volume of target logic volume recycle station identifications, generate and save the target logic volume pair
The target recycle bin index answered;The deleted marker that the target logic volume is arranged is deletion state, hidden in storage pool to realize
Hide the target logic volume.In this way, being wanted using the delet method of logical volume provided in an embodiment of the present invention without replicating, migrating
The logical volume of deletion, by way of establishing recycle bin index, realization that can be easy deletes logical volume to logical volume recycling
Stand, rather than directly carry out permanent deletion, provide possibility to restore the deleted logical volume, effectively avoid due to
The accidentally operations such as deletion lead to the risk that data are permanently lost in logical volume, are stored to greatly improve using distributed block
The safety and reliability of system storing data.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations recorded in the present invention
Example, for those of ordinary skill in the art, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the delet method of logical volume provided in an embodiment of the present invention;
Fig. 2 be logical volume provided in an embodiment of the present invention deletion after restoration methods flow diagram;
Fig. 3 is the flow diagram of complete deletion method again after logical volume provided in an embodiment of the present invention is deleted;
Fig. 4 is a kind of structural schematic diagram of the deletion device of logical volume provided in an embodiment of the present invention.
Specific embodiment
Inventor has found that in the distributed block storage system that many aspects have a clear superiority,
Delete operation is irreversible, that is, after deleting some logical volume in block storage system, can not be restored to the logical volume
Operation, this means that the data stored in the logical volume are permanently lost.So, once being deleted due to maloperation useful
Data, be just very likely to cause useful data lose the problem of, to reduce the distributed block storage system storing data
Reliability.
Based on this, in embodiments of the present invention, after triggering the delete operation of delete target logical volume, the target is deleted
The process of logical volume includes: the delete operation firstly, in response to rolling up to target logic, obtains the label of the target logic volume
Know, erasing time and logical volume recycle station identifications;Then, according to the volume identification of target logic volume, erasing time and described
Logical volume recycles station identifications, generates and saves the target logic and rolls up corresponding target recycle bin index;Then, the mesh is set
The deleted marker for marking logical volume is deletion state, and the target logic volume is hidden in storage pool to realize.In this way, passing through foundation
Logical volume is deleted the effect to logical volume recycle bin by the mode of recycle bin index, realization that not only can be easy, moreover, because
Not by the logical volume complete deletion, possibility is provided to restore the deleted logical volume, is effectively avoided due to accidentally deleting
Equal operations lead to the risk that data are permanently lost in logical volume, are deposited to greatly improve using distributed block storage system
Store up the safety and reliability of data.
With reference to the accompanying drawing, by embodiment come the delet method of logical volume a kind of in the present invention will be described in detail embodiment and
The specific implementation of device.
Fig. 1 is a kind of flow diagram of the delet method of logical volume provided in an embodiment of the present invention.Referring to Fig. 1, the party
Method can specifically include:
Step 101, it in response to the delete operation rolled up to target logic, obtains the volume identification of the target logic volume, delete
Time and logical volume recycle station identifications.
It is understood that target logic is rolled up, refer to the operation object of delete operation, that is, logical volume to be deleted.The mesh
Mark logical volume can be one, is also possible to multiple, is not especially limited in the present embodiment.
The volume identification of target logic volume refers to that title, the address etc. of target logic volume can be used for uniquely indicating the mesh
Mark the mark of logical volume;The erasing time of target logic volume, target logic volume can be represented by, which referring to, is deleted to logic rollback
At the time of receiving station, it specifically can be the triggering moment of the delete operation to target logic volume, be also possible to the target logic
It at the response moment of the delete operation of volume, is not especially limited in the present embodiment;Logical volume recycles station identifications, refers to the logical volume
Title, number of recycle bin etc. can be used for uniquely indicating the mark of logical volume recycle bin.
It should be noted that the logical volume recycle bin determined is the Virtual Space of a foundation, it is not necessary being,
Establishing the logical volume recycle bin can be to play title or number to logical volume recycle bin, for example, user's first establishes logic
Recycle bin A and logical volume recycle bin B is rolled up, for another example user's second establishes No. 10 logical volume recycle bins and No. 20 logical volume recycling
It stands.So, logical volume recycling station identifications can use the title of the logical volume recycle bin, such as A, B, alternatively, can also use
The number of logical volume recycle bin, such as 10,20.
When specific implementation, the delete operation to target logic volume is triggered, it can be in response to the deletion rolled up to target logic
Operation, volume identification, erasing time and the logical volume that triggering obtains the target logic volume recycle station identifications.
In some implementations, in order to which more preferably user experience can be provided for user, the participation of user is improved, originally
Embodiment can also prompt user from " complete deletion " and " delete to logic in the delete operation that target logic is rolled up in triggering
Selection in volume recycle bin " just executes the step 101 in the embodiment of the present invention after selected " deleting to logical volume recycle bin ";When
After selected " complete deletion ", then the target logic is directly rolled up into permanent deletion.In this way, it is targetedly right to can satisfy user
Logical volume is deleted, for example, permanent deletion can be directly carried out for determining the logical volume for not needing to store again, with
Realize the timely cleaning to the distributed block storage system space;For another example for the uncertain logic for whether needing to store again
Volume, can delete in logical volume recycle bin, provide possibility to be subsequent to restore the deleted logical volume, effective to improve
The safety and reliability of the distributed block storage system storing data.
Wherein, logical volume recycle bin can with only one, there may also be multiple, then, in order to further increase user
Experience can also continue to prompt user and select from multiple logical volume recycle bins after selected " delete and arrive logical volume recycle bin "
One, it is determined as target logic rolling up the logical volume recycle bin deleted.
It is understood that logical volume recycling station identifications, which can be carried on, to be deleted after the logical volume recycle bin has been determined
Except in operation, then, step 101 specifically can obtain logical volume by parsing the delete operation and recycle station identifications;Similarly, target
The volume identification of logical volume can also be carried in delete operation, then, step 101 can specifically be obtained by parsing the delete operation
Obtain the volume identification of target logic volume;Erasing time can also be carried in delete operation, then, step 101 can specifically pass through
Parse the erasing time that the delete operation obtains target logic volume.Other acquisition modes also may belong to the embodiment of the present invention
Range is not especially limited in embodiments of the present invention.
In order to make the delet method of logical volume provided in an embodiment of the present invention can be adapted for upgrading front and back distributed block system
System, that is, improve the compatibility of the delet method of the logical volume, in response to the delete operation rolled up to target logic in step 101, also
The version number of the available target logic volume.Such as: it is only needed when version number 1 is for indicating that target logic volume 1 is deleted
Volume identification, erasing time and the logical volume for obtaining target logic volume recycle station identifications;Version number 2 is then for indicating the target logic
In addition to the volume identification, erasing time and the logical volume that need to obtain target logic volume recycle station identifications when volume 2 is deleted, it is also necessary to obtain
Its storage pool mark.It, still can be according in this way, in the distributed block system during edition upgrading or version switch
The version number of storage carries out the deletion of logical volume and accurately restores, and improves the reliability of data storage.
It, can be in time to the data in logical volume recycle bin in order to effectively clear up the space of the distributed block storage system
It is cleared up, then, in response to the delete operation rolled up to target logic in step 101, logical volume recycle bin pair can also be obtained
The default clearance time answered, such as 6 hours.The default clearance time, can be it is pre-set, for controlling the target
Logical volume is deleted to the time being temporarily stored after logical volume recycle bin.Once target logic volume is deleted to logical volume recycling
The time stood reaches the default clearance time, and target logic volume will be by complete deletion, to discharge its space occupied.
It should be noted that identical default checkout time can be arranged for multiple logical volume recycle bins in user, alternatively, being
Raising user experience, user may be that different default checkout times is respectively set in multiple logical volume recycle bins, to each
Logical volume recycle bin is targetedly managed.
Target logic volume biggish for some data volumes, target logic volume may by the time-consuming needed for complete deletion
It is longer, then, in order to which limited target logical volume is restored during by complete deletion, cause the data restored not complete enough
Whole or generation mistake, then, in response to the delete operation rolled up to target logic in step 101, target logic can also be obtained
The removing of volume identifies.Whether removing mark, the target logic volume for being used to indicate the logical volume recycle bin can be resumed, specifically
When the time that target logic volume is deleted to logical volume recycle bin being not up to the default clearance time, removing mark indicates institute
Target logic volume is stated as state can be resumed;It is preset clearly when the time that target logic volume is deleted to logical volume recycle bin reaches this
When managing the time and starting by complete deletion, removing mark indicates the target logic volume as that can not be resumed state.
Step 102, station identifications are recycled according to the volume identification of target logic volume, erasing time and the logical volume, it is raw
At and save the target logic and roll up corresponding target recycle bin index.
It is understood that target recycle bin index, is can serve to indicate that the deletion information aggregate of target logic volume
The object of deletion, the destination deleted and time of deletion etc. provide data and draw for subsequent deletion, recovery and cleaning
It leads.
When specific implementation, target logic rolls up corresponding target recycle bin index, can be an information aggregate, comprising: institute
State the volume identification and erasing time of logical volume recycling station identifications, target logic volume.Such as: assuming that the volume identification of target logic volume is
0001, erasing time 13:00, the logical volume recycle bin is identified as A, then, the target recycle bin index X of generation can be
A- (0001,13:00).
In some possible implementations, if the information got in step 101 not only includes the target logic
Volume identification, erasing time and the logical volume of volume recycle station identifications, further comprise version number, the target logic of target logic volume
The removing of volume identifies and default clearance time, then, in order to which the target recycle bin index of generation can provide more entirely for user
The information in face, and the reliability and accuracy of the logical volume delet method are improved, which can also basis
The volume identification of target logic volume, erasing time, logical volume recycling station identifications, target logic volume version number,
The removing mark of the target logic volume default clearance time corresponding with the logical volume recycle bin generates.
Such as: assuming that the volume identification of target logic volume is 0001, erasing time 13:00, the logical volume recycle bin mark
Knowing is A, and the version number of target logic volume be that the removing of 1.0, target logic volume is identified as 0 and (represents the target logic to roll up as can
It is resumed state), the corresponding default clearance time of logical volume recycle bin is 6 hours, then, the target recycle bin rope of generation
Drawing Y can be A- (6 hours, 1.0,0001,13:00,0).
It should be noted that according to actual needs and the version requirement of distributed block storage system, it can be flexible
Setting generate target recycle bin index in element, for example, target recycle bin index can also according to target logic roll up where
The title of storage pool generates.
Again for example: assuming that the volume identification of target logic volume is 0010, erasing time 06:00, the logical volume recycle bin
Be identified as B, the version number of target logic volume be the removing of 2.0, target logic volume be identified as 1 (represent the target logic roll up as
State can not be resumed), the corresponding default clearance time of logical volume recycle bin is 10 minutes, storage where target logic volume
The entitled DPM1 in pond, then, the target recycle bin index Z of generation can be B- (10 minutes, 2.0,0010,06:00,1,
DPM1)。
It should be noted that the sequencing of each element can carry out flexibly adjustment in target recycle bin index, only
It to be generated when generating target recycle bin index according to the sequence of current setting;Alternatively, can also be not provided with each
The sequence of element, if the corresponding element of the index value is indicated in target recycle bin index, such as: target recycle bin
Index the X { volume identification of target logic volume: 0001;Erasing time: 13:00;Logical volume recycles station identifications: A }.
Step 103, the deleted marker that the target logic volume is arranged is deletion state, and institute is hidden in storage pool to realize
State target logic volume.
It is understood that being respectively provided with a corresponding deletion for each logical volume in distributed block storage system
Mark, the deleted marker are used to indicate the current state of corresponding logical volume, specifically include deletion state and do not delete state, example
Such as: deleted marker can indicate that the deleted marker for not being performed the logical volume of delete operation is 0 by 0 and 1, indicate that this is patrolled
Volume is collected not delete state;The deleted marker for being performed the logical volume of delete operation is 1, indicates that the logical volume is deletion state.
When specific implementation, after generating the target recycle bin index for target logic volume, due to not to the target
Logical volume carries out substantial migration, can be deletion state by the way that the deleted marker of target logic volume is arranged, then, for
The target logic volume for being identified as deletion state is deleted, is hidden in the storage pool where target logic volume, user then can not
See the deleted target logic volume, realizes the deletion to target logic volume.
It should be noted that for the deleted marker of target logic volume, if the deleted marker is currently not delete state,
Then show that the target logic is rolled up in storage pool, that is, user can see target logic volume;If the deleted marker is currently
Deletion state then hides target logic volume in storage pool, that is, user can't see target logic volume, is regarded as the target and patrols
Volume is collected to be deleted.
As it can be seen that using a kind of delet method of logical volume provided in an embodiment of the present invention, by response to target logic
The delete operation of volume obtains volume identification, erasing time and the logical volume recycling station identifications of the target logic volume;According to the mesh
Volume identification, erasing time and the logical volume for marking logical volume recycle station identifications, generate and save the target logic volume correspondence
Target recycle bin index;The deleted marker that the target logic volume is arranged is deletion state, is hidden in storage pool with realizing
The target logic volume.In this way, without duplication, the logical volume to be deleted of migration, by way of establishing recycle bin index
Easy realization deletes logical volume to logical volume recycle bin, rather than directly carries out permanent deletion, is deleted to restore this
The logical volume removed provides possibility, effectively avoids since accidentally the operations such as deletion lead to the wind that data are permanently lost in logical volume
Danger, to greatly improve the safety and reliability using distributed block storage system storing data.
In some possible implementations, if target recycle bin index in addition to rolled up according to target logic volume identification,
Erasing time and logical volume recycling station identifications generate, when the default cleaning corresponding also according to the logical volume recycle bin
Between generate, herein under the premise of, in order to improve utilize distributed block storage system storing data safety and reliability, the present invention
Embodiment, which is additionally provided, carries out restoration methods to the target logic volume deleted to logical volume recycle bin, so that it is deleted to restore this
Logical volume becomes possibility, can effectively avoid since accidentally the operations such as deletion lead to the wind that data are permanently lost in logical volume
Danger.When specific implementation, as shown in Fig. 2, the embodiment of the present invention can specifically include:
Step 201, judge the erasing time in target recycle bin index to the time experienced at current time whether also not
More than default clearance time, if so, thening follow the steps 202.
It is understood that default clearance time, can be it is pre-set, it is extensive for indicating to carry out target logic volume
Maximum duration that is permitted, undergoing since the erasing time that target logic is rolled up is operated again.
As an example, step 201 can specifically include: firstly, obtaining in current time and target recycle bin index
Erasing time then calculate the interval time between current time and erasing time, then, comparison interval time and default
It is extensive to indicate that target logic volume has been over if interval time is greater than default clearance time for the size relation of clearance time
The multiple time can not carry out recovery operation to it;If interval time is not more than default clearance time, indicate that the target logic is rolled up
Also in the time interval that can restore, recovery operation can be carried out to it.
As another example, step 201 can specifically include: since the erasing time that target logic is rolled up, starting meter
When;At current time, judge whether timing time reaches default clearance time, if timing time has reached default cleaning
Between, it indicates that target logic volume has been over the time of recovery, recovery operation can not be carried out to it;If timing time is also not
Reach default clearance time, indicates that target logic volume also in the time interval that can restore, can carry out recovery behaviour to it
Make.
It should be noted that if user is not provided with default clearance time, it is possible to using default clearance time,
Such as 10 minutes.
Step 202, in response to the recovery operation rolled up to the target logic, it is not delete shape that the deleted marker, which is arranged,
State shows the target logic volume to realize in storage pool, and deletes the target recycle bin index.
It, can be to restoring target as long as meeting erasing time also without the default clearance time when specific implementation
The recovery operation of logical volume is responded, if triggering the recovery operation to target logic volume, specific recovery process can be with
Be: on the one hand, the deleted marker that target logic volume is arranged is not delete state, to show target logic volume in correspondence
Storage pool in, user seen in storage pool the target logic volume presence, be regarded as the target logic volume be resumed;It is another
Aspect deletes target recycle bin index, is equivalent to and rejects target logic volume from logical volume recycle bin.
As it can be seen that the delet method of the logical volume provided through the embodiment of the present invention, it can be right in the regular hour limits
The target logic volume for deleting logical volume recycle bin carries out recovery operation, not only increases distributed block storage system storing data
Flexibility and operability, and for restore the deleted logical volume provide possibility, effectively avoid due to accidentally deletion
Equal operations lead to the risk that data are permanently lost in logical volume, are deposited to greatly improve using distributed block storage system
Store up the safety and reliability of data.
In some possible implementations, if target recycle bin index in addition to rolled up according to target logic volume identification,
Erasing time and logical volume recycling station identifications generate, when the default cleaning corresponding also according to the logical volume recycle bin
Between and remove mark and generate, herein under the premise of, in order to can be timely to having deleted in distributed block storage system to logical volume
The target logic volume of recycle bin is cleared up, and to discharge the memory space of the distributed block storage system, improves the distributed block
The performance of storage system, the embodiment of the invention also provides what is cleared up the target logic volume deleted to logical volume recycle bin
Method, so that the data for deleting certain time length are thoroughly deleted from the distributed block storage system.When specific implementation, such as Fig. 3
Shown, the embodiment of the present invention can specifically include:
Step 301, judge the erasing time in target recycle bin index to the time experienced at current time whether
More than default clearance time, if so, thening follow the steps 302~step 303.
It is understood that the related description of step 301 may refer to embodiment shown in Fig. 2 to the correlation of step 201
Description, which is not described herein again.
Wherein, if meeting erasing time have passed through the default clearance time, then it is assumed that target logic volume is deleted
To the time long enough of logic recycle bin, substantially eliminate due to a possibility that accidentally useful data is deleted in the operation such as deletion,
Recovery operation is carried out at this point it is possible to limit and roll up to the target logic, and needs to roll up the target logic from the distributed block to deposit
Complete deletion in storage system, to discharge its space occupied.
Step 302, start the data in the volume of target logic described in complete deletion, and modify in the target recycle bin index
Removing mark so that removings mark indicates that target logic volume is that can not be resumed state.
Step 303, if the data in target logic volume delete the target recycle bin index by complete deletion.
It is understood that in order to guarantee that the distributed block storage system to the reliability of data processing, is avoided thorough
There is loss of data or the distributed block storage system to target logic volume progress recovery operation in user during deletion
Chaotic problem is stored, the erasing time in judgement target recycle bin index to time experienced at current time alreadys exceed
It, can be in starting the complete deletion target logic volume while data, in target recycle bin index after default clearance time
Removing mark modify so that removing mark indicates target logic volume as that can not be resumed state after modification.
Such as: after target logic volume is deleted to logical volume recycle bin, to the erasing time in target recycle bin index to current time
Before time experienced reaches default clearance time, removing mark is equal to 0, indicates target logic volume as that can restore state;
When the erasing time in target recycle bin index alreadys exceed default clearance time to the time experienced at current time, should be somebody's turn to do
It removes mark and is revised as 1, indicate target logic volume not restore state.
As an example, if the data volume stored in target logic volume is greater than preset data-quantity threshold, that is, the mesh
It, can be when starting the data in complete deletion target logic volume, in order to keep away when the data volume stored in mark logical volume is larger
Exempt from the conflict operation for occurring restoring target logic volume, the removing mark in target recycle bin index is modified, with
The removing mark is set to indicate the target logic volume as state can not be resumed;Until the data in target logic volume are thorough
After deletion, the target recycle bin index is just deleted, is recycled at this point, being regarded as rolling up the target logic from storage pool and logical volume
Complete deletion in standing, the data in target logic volume permanent in the distributed block storage system can not be resumed.
As another example, if the data volume stored in target logic volume is no more than preset data-quantity threshold, that is,
When the data volume stored in target logic volume is smaller, since complete deletion target logic volume time used is shorter,
The removing in target recycle bin index can not be identified and be modified;Number in can rolling up target logic in short time
According to by complete deletion, in this manner it is possible to delete the target recycle bin index, be regarded as rolling up the target logic from storage pool and
Complete deletion in logical volume recycle bin, the target logic volume in data it is permanent in the distributed block storage system can not
It is resumed.
It should be noted that using the mesh when by target logic volume deletion to logical volume recycle bin in order to avoid subsequent
The file label of logical volume is marked, the file label which can be rolled up is revised as " reel name+erasing time ", such as: it is incited somebody to action in 13:00
When 0001 deletion of target logic volume to logical volume recycle bin, the file label of target logic volume 0001 is revised as " 0001+ from " 0001 "
13:00”。
Correspondingly, the storage can also be monitored when carrying out recovery operation to the target logic volume in logical volume recycle bin
It is the logical volume that the target logic rolls up reel name that file label whether is had existed in pond, if it is present prompt user carries out more
Change the file label, alternatively, user is prompted to restore to fail due to the logical volume of existing reel name;If it does not exist, then by target
The file label of logical volume is modified back " reel name " from " reel name+erasing time ", such as: by target logic volume 0001 file label from
" 0001+13:00 " is revised as " 0001 ", to realize complete recovery, user is facilitated to search and call the target logic to roll up.
Correspondingly, the embodiment of the invention also provides a kind of deletion devices of logical volume, as shown in figure 4, the device is specific
May include:
Acquiring unit 401 obtains the label of the target logic volume for the delete operation in response to rolling up to target logic
Know, erasing time and logical volume recycle station identifications;
Generation unit 402, volume identification, erasing time and the logical volume recycle bin for being rolled up according to the target logic
Mark generates and saves the target logic and rolls up corresponding target recycle bin index;
Setting unit 403, the deleted marker for the target logic volume to be arranged is deletion state, to realize in storage pool
In hide target logic volume.
Optionally, the target recycle bin index is generated also according to the version number that the target logic is rolled up.
Optionally, the target recycle bin index is generated also according to the removing mark that the target logic is rolled up.
Optionally, the target recycle bin index is also according to the corresponding default clearance time of the logical volume recycle bin
It generates.
Optionally, the device further include:
Recovery unit, if for the erasing time also without the default clearance time, in response to the mesh
The recovery operation for marking logical volume, it is not delete state that the deleted marker, which is arranged, and the target is shown in storage pool to realize
Logical volume, and delete the target recycle bin index.
Optionally, the device further include:
Unit is deleted, if passing through the default clearance time for the erasing time, start mesh described in complete deletion
The data in logical volume are marked, and modify the mark of the removing in the target recycle bin index, so that the removing identifies table
Show the target logic volume for state can not be resumed.
Optionally, the deletion unit, if the data being also used in the target logic volume delete institute by complete deletion
State target recycle bin index.
Foregoing description is a kind of associated description of the deletion device of logical volume, wherein specific implementation and is reached
Effect may refer to a kind of description of the delet method embodiment of logical volume shown in FIG. 1, and which is not described herein again.
As seen through the above description of the embodiments, those skilled in the art can be understood that above-mentioned implementation
All or part of the steps in example method can add the mode of general hardware platform to realize by software.Based on this understanding,
Technical solution of the present invention can be embodied in the form of software products, which can store is situated between in storage
In matter, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, CD etc., including some instructions to
So that a computer equipment (can be the network communication equipments such as personal computer, server, or router) executes
Method described in certain parts of each embodiment of the present invention or embodiment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein mould as illustrated by the separation member
Block may or may not be physically separated, and the component shown as module may or may not be physics
Module, it can it is in one place, or may be distributed over multiple network units.It can select according to the actual needs
Some or all of the modules therein achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creation
Property labour in the case where, it can understand and implement.
The above is only a preferred embodiment of the present invention, it is not intended to limit the scope of the present invention.It should refer to
Out, for those skilled in the art, under the premise of not departing from the present invention, can also make several improvements
And retouching, these modifications and embellishments should also be considered as the scope of protection of the present invention.
Claims (14)
1. a kind of delet method of logical volume characterized by comprising
In response to the delete operation rolled up to target logic, volume identification, erasing time and the logical volume of the target logic volume are obtained
Recycle station identifications;
Station identifications are recycled according to the volume identification of target logic volume, erasing time and the logical volume, generate and are saved is described
Target logic rolls up corresponding target recycle bin index;
The deleted marker that the target logic volume is arranged is deletion state, and the target logic is hidden in storage pool to realize
Volume.
2. the method according to claim 1, wherein the target recycle bin index is also according to the target logic
The version number of volume generates.
3. the method according to claim 1, wherein the target recycle bin index is also according to the target logic
The removing of volume, which identifies, to be generated.
4. according to the method described in claim 3, it is characterized in that, the target recycle bin index is also according to the logic rollback
The corresponding default clearance time in station is received to generate.
5. according to the method described in claim 4, it is characterized in that,
If the erasing time also without the default clearance time, grasped in response to the recovery rolled up to the target logic
Make, it is not delete state that the deleted marker, which is arranged, the target logic volume is shown in storage pool to realize, and described in deletion
Target recycle bin index.
6. according to the method described in claim 4, it is characterized in that,
If the erasing time passes through the default clearance time, start the data in the volume of target logic described in complete deletion,
And the mark of the removing in the target recycle bin index is modified, so that the removing mark expression target logic volume is
State can not be resumed.
7. according to the method described in claim 6, it is characterized in that, if the data in target logic volume by complete deletion,
Then delete the target recycle bin index.
8. a kind of deletion device of logical volume characterized by comprising
Acquiring unit obtains the volume identification of the target logic volume, deletes for the delete operation in response to rolling up to target logic
Time and logical volume recycle station identifications;
Generation unit, volume identification, erasing time and the logical volume for being rolled up according to the target logic recycle station identifications, raw
At and save the target logic and roll up corresponding target recycle bin index;
Setting unit, the deleted marker for the target logic volume to be arranged is deletion state, is hidden in storage pool with realizing
The target logic volume.
9. device according to claim 8, which is characterized in that the target recycle bin index is also according to the target logic
The version number of volume generates.
10. device according to claim 8, which is characterized in that the target recycle bin index is patrolled also according to the target
The removing for collecting volume, which identifies, to be generated.
11. device according to claim 10, which is characterized in that the target recycle bin index is also according to the logical volume
The corresponding default clearance time of recycle bin generates.
12. device according to claim 11, which is characterized in that further include:
Recovery unit, if for the erasing time also without the default clearance time, in response to patrolling the target
The recovery operation for collecting volume, it is not delete state that the deleted marker, which is arranged, and the target logic is shown in storage pool to realize
Volume, and delete the target recycle bin index.
13. device according to claim 11, which is characterized in that further include:
Unit is deleted, if passing through the default clearance time for the erasing time, start target described in complete deletion and patrol
The data in volume are collected, and modify the mark of the removing in the target recycle bin index, so that removing mark indicates institute
Target logic volume is stated as state can not be resumed.
14. device according to claim 13, which is characterized in that the deletion unit, if being also used to the target logic
Data in volume then delete the target recycle bin index by complete deletion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223456.9A CN109491598A (en) | 2018-10-19 | 2018-10-19 | A kind of delet method and device of logical volume |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223456.9A CN109491598A (en) | 2018-10-19 | 2018-10-19 | A kind of delet method and device of logical volume |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109491598A true CN109491598A (en) | 2019-03-19 |
Family
ID=65692389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811223456.9A Pending CN109491598A (en) | 2018-10-19 | 2018-10-19 | A kind of delet method and device of logical volume |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491598A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381121A (en) * | 2019-06-26 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of data processing method and device |
CN111124306A (en) * | 2019-12-20 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Data deleting method, system, equipment and computer readable storage medium |
CN111309437A (en) * | 2020-02-13 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Asynchronous deletion method, system and device for logical volume |
CN116088770A (en) * | 2023-03-20 | 2023-05-09 | 苏州浪潮智能科技有限公司 | Data management method, device, system, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103473296A (en) * | 2013-09-04 | 2013-12-25 | 国云科技股份有限公司 | Recycle bin mechanism and recycle bin system applicable to cloud computing |
US20170286213A1 (en) * | 2016-03-29 | 2017-10-05 | Shu Li | Protecting data stored on a solid state drive |
CN107395429A (en) * | 2017-08-15 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data center |
CN107924291A (en) * | 2015-10-19 | 2018-04-17 | 株式会社日立制作所 | Storage system |
CN108369599A (en) * | 2015-12-15 | 2018-08-03 | 微软技术许可有限责任公司 | Duplication control between redundant data center |
CN108491264A (en) * | 2018-03-05 | 2018-09-04 | 国云科技股份有限公司 | A kind of unified resource retrieval management method suitable for isomery cloud |
CN108595244A (en) * | 2017-12-05 | 2018-09-28 | 北京神州绿盟信息安全科技股份有限公司 | Communication means, virtual machine, physical host and virtual machine system inside and outside virtual machine |
-
2018
- 2018-10-19 CN CN201811223456.9A patent/CN109491598A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103473296A (en) * | 2013-09-04 | 2013-12-25 | 国云科技股份有限公司 | Recycle bin mechanism and recycle bin system applicable to cloud computing |
CN107924291A (en) * | 2015-10-19 | 2018-04-17 | 株式会社日立制作所 | Storage system |
CN108369599A (en) * | 2015-12-15 | 2018-08-03 | 微软技术许可有限责任公司 | Duplication control between redundant data center |
US20170286213A1 (en) * | 2016-03-29 | 2017-10-05 | Shu Li | Protecting data stored on a solid state drive |
CN107395429A (en) * | 2017-08-15 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data center |
CN108595244A (en) * | 2017-12-05 | 2018-09-28 | 北京神州绿盟信息安全科技股份有限公司 | Communication means, virtual machine, physical host and virtual machine system inside and outside virtual machine |
CN108491264A (en) * | 2018-03-05 | 2018-09-04 | 国云科技股份有限公司 | A kind of unified resource retrieval management method suitable for isomery cloud |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381121A (en) * | 2019-06-26 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of data processing method and device |
CN110381121B (en) * | 2019-06-26 | 2022-03-22 | 苏州浪潮智能科技有限公司 | Data processing method and device |
CN111124306A (en) * | 2019-12-20 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Data deleting method, system, equipment and computer readable storage medium |
CN111309437A (en) * | 2020-02-13 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Asynchronous deletion method, system and device for logical volume |
CN116088770A (en) * | 2023-03-20 | 2023-05-09 | 苏州浪潮智能科技有限公司 | Data management method, device, system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491598A (en) | A kind of delet method and device of logical volume | |
CN104166606B (en) | File backup method and main storage device | |
CN109189546B (en) | Method and device for making online snapshot of virtual machine | |
CN103092700A (en) | Internal memory cleaning method and cleaning device and terminal device | |
CN103092687B (en) | A kind of application program management apparatus and method | |
US7577808B1 (en) | Efficient backup data retrieval | |
CN109428913A (en) | A kind of storage expansion method and device | |
CN105324757A (en) | Deduplicated data storage system having distributed manifest | |
CN107102914B (en) | Method for backing up and recovering data, its implementing system and backing up equipment | |
CN107817950B (en) | Data processing method and device | |
CN109583222A (en) | Distributed file system metadata service device recycles client jurisdiction method and device | |
CN104750738B (en) | A kind of method for updating the data information, back end, management node and system | |
CN105872797A (en) | Live broadcast time shifting method and device | |
CN105069617A (en) | Method and device for recovering incomplete transaction | |
CN103346898A (en) | Method for processing configuration information of hot plug board card, and network communication device | |
CN103559098B (en) | Smart card test number control, Apparatus and system | |
CN107770207A (en) | The method of data syn-chronization between multi-terminal equipment | |
CN108776579A (en) | A kind of distributed storage cluster expansion method, device, equipment and storage medium | |
CN109165175A (en) | Device identification generation method and device | |
CN110737389B (en) | Method and device for storing data | |
CN104462148B (en) | A kind of data storage and management method and device | |
CN103699681B (en) | The treating method and apparatus of data rewind | |
CN106844236A (en) | The date storage method and device of terminal device | |
CN101799820B (en) | Flash memory, file system mounted method and device, data management method and device | |
CN106959906B (en) | Information processing method, information processing device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |